Function revolve_profile_exact

Source
pub fn revolve_profile_exact(
    profile: &Profile,
    axis_origin: DVec3,
    axis_direction: DVec3,
    angle: f64,
    tolerance: Tolerance,
) -> Result<ExactBRep, GeomError>
Expand description

Revolve a supported profile into an exact, closed analytic B-rep.

Supported: a sharp filled rectangle, revolved a full turn about an axis parallel to the profile’s local y and offset from it, so the profile does not cross the axis. The result is an annular tube of two cylinders and two annular planar caps.

Every other case – partial turns, profiles crossing the axis, rounded or hollow rectangles, other profile families – returns a typed refusal.