parry2d::shape

Type Alias RoundCuboid

Source
pub type RoundCuboid = RoundShape<Cuboid>;
Expand description

A cuboid dilated by a sphere (so it has round corners).

Aliased Type§

struct RoundCuboid {
    pub inner_shape: Cuboid,
    pub border_radius: f32,
}

Fields§

§inner_shape: Cuboid

The shape being rounded.

§border_radius: f32

The radius of the rounded border.

Implementations§

Source§

impl RoundCuboid

Source

pub fn to_polyline(&self, border_subdivs: u32) -> Vec<Point2<f32>>

Discretize the boundary of this round cuboid as a polygonal line.