Skip to main content

revolve_profile_with_holes

Function revolve_profile_with_holes 

Source
pub fn revolve_profile_with_holes(
    outer: &[NurbsCurve],
    holes: &[Vec<NurbsCurve>],
    axis_point: Vec3,
    axis_direction: Vec3,
    angle: f64,
) -> Result<BrepSolid, KernelRefusal>
Expand description

Revolve a planar profile with holes about the axis through axis_point along axis_direction by angle (radians, up to a full turn): the outer loop revolved (as crate::revolve_profile_brep revolves one loop, touching the axis if it must), less each hole revolved. A full turn makes each hole a closed void inside the solid; a part turn opens the holes through the end caps. Holes must lie off the axis and inside the outer loop. Every face is the profile curve revolved or a cap plane: exact.