Skip to main content

make_parallelepiped

Function make_parallelepiped 

Source
pub fn make_parallelepiped(
    model: &mut Model,
    origin: Point,
    edges: [Vector; 3],
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

A parallelepiped: the solid spanned at origin by three edge vectors.

A box whose edges need not be square to each other: a corner tool’s block at an oblique vertex, a sheared block to stand one on. The three vectors may come in either handedness; the layout is wound so the faces look outward whichever way they came.

§Errors

OgeomError::Construction if a vector is not finite or the three are coplanar.