Skip to main content

feature_prism

Function feature_prism 

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

Sweep profile along vector and add or remove the result.

The profile is a face (a wire is not a tool, it is the boundary of one), and the sweep is the ordinary prism, so the feature’s walls are ruled exactly as its profile’s edges are. A pocket deeper than the material simply cuts through; a pad shorter than nothing is refused.

§Errors

OgeomError::Construction if the profile is not a face, the vector has no length, or the boolean refuses the configuration.