Skip to main content

make_prism

Function make_prism 

Source
pub fn make_prism(
    model: &mut Model,
    profile: &Shape,
    vector: Vector,
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

Extrude a shape along vector.

A face becomes a solid, a wire becomes a shell, an edge becomes a face. The result’s history reports each input as generating what it swept out, and the profile itself as surviving into the near end.

§Errors

OgeomError::Construction if vector has no length, if the shape is of a kind that cannot be swept, or if an edge of the profile has no 3D curve to sweep.