Skip to main content

swept_disk_along_pieces

Function swept_disk_along_pieces 

Source
pub fn swept_disk_along_pieces(
    pieces: &[PathPiece],
    radius: Scalar,
    inner_radius: Option<Scalar>,
    fillet_radius: Option<Scalar>,
    chord: Scalar,
) -> GeomResult<TriMesh>
Expand description

Sweep a disk, optionally hollow, along a chain of segments and arcs so that every point of the exact tube lies within chord of the mesh.

fillet_radius rounds each corner between two segments; without it, each corner is mitred at half angle (#245, beside an arc #248). See the module notes for the bound, the joint rule, the mitres, and what is refused; a corner beside an arc is not proven but certified by the caller (pipe_plan). The pieces run in the direction of travel, each starting where the last ended.