Skip to main content

make_sphere_brep_framed

Function make_sphere_brep_framed 

Source
pub fn make_sphere_brep_framed(
    center: Vec3,
    radius: f64,
    polar_axis: Vec3,
    seam_direction: Option<Vec3>,
) -> Result<BrepSolid, String>
Expand description

A sphere solid whose SEAM direction is chosen as well as its polar axis — see make_sphere_surface_framed. The topology is identical either way (one face, one pole-to-pole seam edge, two degenerate pole edges); only WHERE on the ball the seam and the poles sit changes. A caller that will trim the ball uses it to hide both inside the removed region, so the surviving face has no edge bordering itself.