Skip to main content

cube_solid

Function cube_solid 

Source
pub fn cube_solid<S: Scalar>(
    part: &mut Part<S>,
    name: &str,
    min: Vector3<S>,
    max: Vector3<S>,
) -> GeopResult<SolidId>
Expand description

A box solid spanning [min, max], built as extrude’s start cap (the unit square in (u, v), at z = max.z) swept down to min.z.

Named as the operation cube(name), after that square: its corners p0..p3 (counter-clockwise from min as seen from above) and sides c0..c3, see ExtrudeNames.