Skip to main content

offset_ruled_face

Function offset_ruled_face 

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

Push a CYLINDER or CONE face along its outward normal by distance (positive grows the solid) by OFFSETTING its carrier surface and re-deriving the trim as the intersection of that offset surface with the neighbour carriers.

Slice-1 scope (honest refusal, never a bad solid): a full-revolution cylinder/cone SIDE face whose neighbour across every non-seam boundary edge is PLANAR (its end caps). The pushed face’s own periodic SEAM edge rides the offset carrier’s meridian; each rim edge re-intersects its cap (intersect_analytic_pair, exact circle); the caps re-trim as planar faces. Ruled/curved neighbours and non-full-revolution ruled faces are deferred.