Skip to main content

offset_shell_closed

Function offset_shell_closed 

Source
pub fn offset_shell_closed(
    source: &BrepSolid,
    distance: f64,
) -> Result<OffsetShellResultRecord, KernelRefusal>
Expand description

Lane O row 34: the CLOSED hollow, a shell with no openings. The offset body, the whole source grown or shrunk with sharp joins, against the source: source − body inward and body − source outward, so the result is the outer shell and the inner void’s shell, with the walls of the band between them. distance carries offset_shell’s sign (positive inward). face_images are read back from the operands by surface as in offset_shell_by_boolean: Offset for the body’s faces, Source for the source’s.

The construction checks itself: the result is exactly two shells and its volume is the difference of the operands’ volumes.