pub fn offset_sphere_face(
solid: &BrepSolid,
face_id: u64,
distance: f64,
) -> Result<BrepSolid, KernelRefusal>Expand description
Push a SPHERICAL face along its outward normal by distance (positive grows
the solid) by replacing its carrier with the concentric offset sphere and
re-trimming its neighbours: planar caps through the centre keep their exact-
scale great-circle rim, while off-centre planes, spheres, and coaxial ruled
neighbours have their rim re-derived as S′ ∩ neighbour.
An OPEN rim (several arcs, as a pocket in a box corner has) is supported on the exact-scale path, with the fixed edges that end on its corners re-trimmed to follow them.
Refused cleanly (never a bad solid): non-coaxial cylinder/cone neighbours, general-revolution/torus/free-form neighbours, seam-crossing oblique or sphere-neighbour rims, non-closed RECOMPUTED rims, a rim corner that leaves its own fixed edge or collapses that edge’s trim, a vanished cap, and a push that collapses/inverts the solid.
A re-solve looks only at the faces the selection borders, so a result that
meets a face it does not border can close incidence-clean on a body that
passes through itself. crate::accept_sound is the floor on the way out
of this entry, as it is for crate::move_faces: it repairs where the
crossing can be proved and refuses by name where it cannot.
offset_sphere_face_unchecked is the re-solve alone, for a caller that runs its own
acceptance on the result.