Skip to main content

offset_solid

Function offset_solid 

Source
pub fn offset_solid(
    topo: &mut Topology,
    solid: SolidId,
    distance: f64,
    options: OffsetOptions,
) -> Result<SolidId, OffsetError>
Expand description

Offset all faces of a solid by the given signed distance.

Positive distance offsets outward (enlarges), negative inward (shrinks).

ยงErrors

Returns OffsetError if the offset collapses the solid, any intersection fails, or the result cannot be assembled into a valid solid.