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 a face, edge or vertex falls outside the analytic vocabulary this rebuild speaks (see the module documentation), or the offset collapses the solid.