Skip to main content

offset_shape

Function offset_shape 

Source
pub fn offset_shape(
    model: &mut Model,
    solid: &Shape,
    offset: f64,
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

Offset a solid by offset: positive grows it, negative shrinks it, and the topology is preserved one-for-one.

§Errors

OgeomError::Construction if an edge or vertex falls outside what this rebuild re-derives, a free-form face is moved past its radius of curvature (see the module documentation), or the offset collapses the solid; OgeomError::NotDone if a free-form face’s parallel does not fit within its bound.