Skip to main content

offset_faces

Function offset_faces 

Source
pub fn offset_faces(
    solid: &BrepSolid,
    face_points: &[Vec3],
    distance: f64,
) -> Result<BrepSolid, KernelRefusal>
Expand description

solid with the faces face_points lie on each moved distance along its outward normal onto its offset surface (inward where it is negative), the faces round them extended or trimmed to meet them: Push Face’s push (a plane translated, a cylinder, cone, sphere or torus offset exactly, a general revolution or free-form carrier within a bounded residual), then its acceptance. A plane landed exactly on a neighbour (two tops merged, a slot closed) is the boolean the push defines; a plane carried past one (an edge between them turned over) is refused as ill-posed. Exact to the push’s tolerance, max(1e-7 of the model’s scale, 1e-9); a nonzero distance below it is refused by name.