Type Alias parry3d::shape::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_outline(&self, nsubdivs: u32) -> (Vec<Point<Real>>, Vec<[u32; 2]>)

Outlines this round cuboid’s surface with polylines.