Skip to main content

offset_freeform_face

Function offset_freeform_face 

Source
pub fn offset_freeform_face(
    solid: &BrepSolid,
    face_id: u64,
    distance: f64,
) -> Result<BrepSolid, KernelRefusal>
Expand description

Offset a free-form NURBS face whose boundaries have no other incident face. The fitted offset must pass a dense same-parameter residual check. Intrinsic iso boundaries use exact iso-curves; other self-incident trims use crate::image_curve. Rebuilt topology and volume orientation are validated. Neighbour-trimmed faces require general intersection and are refused.

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_freeform_face_unchecked is the re-solve alone, for a caller that runs its own acceptance on the result.