Skip to main content

swept_disk_along_line_exact

Function swept_disk_along_line_exact 

Source
pub fn swept_disk_along_line_exact(
    start: DVec3,
    end: DVec3,
    radius: f64,
    inner_radius: Option<f64>,
    tolerance: Tolerance,
) -> Result<ExactBRep, GeomError>
Expand description

A disk of radius, with an optional bore of inner_radius, swept along the straight segment from start to end: an exact capped cylinder (#223).

ยงErrors

Invalid input for a non-positive radius, a bore not strictly inside the disk, and a segment shorter than the tolerance or not finite.