Skip to main content

make_wedge

Function make_wedge 

Source
pub fn make_wedge(
    model: &mut Model,
    frame: Frame,
    size: (f64, f64, f64),
    top: (f64, f64),
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

Build a wedge: a box whose top face is inset.

size is the box at the frame’s origin; top is the (x, y) extent of the upper face, over the same corner. Equal extents give a box.

A top extent may be zero. A top collapsed to a ridge (one extent zero) or to a point (both) is built as its own topology, five faces either way, rather than as a box with a face of no area.

§Errors

OgeomError::Construction if a size is not finite and positive, or a top extent is not finite and non-negative.