pub enum ExtrudeTermination {
Blind {
distance: f64,
},
ThroughAll,
UpToPlane {
point: [f64; 3],
normal: [f64; 3],
offset: f64,
},
UpToFace {
point: [f64; 3],
normal: [f64; 3],
offset: f64,
name: TopoName,
},
ToFirst,
ToLast,
UpToShape {
faces: Vec<FaceProbe>,
offset: f64,
},
UpToFaceOf {
shape: Vec<u8>,
transform: Option<Box<[[f64; 4]; 4]>>,
point: [f64; 3],
offset: f64,
},
UpToShapeOf {
faces: Vec<FaceProbe>,
others: Vec<FacesOf>,
offset: f64,
},
}Expand description
Where a one-directional extrusion stops.
Variants§
Blind
Fixed length in millimetres.
ThroughAll
Extend well past the base solid’s bounding box in this direction.
UpToPlane
Stop on the given world-space plane, shifted by offset along its
normal (a picked planar face plus an offset-to-face value).
UpToFace
Stop on the base solid’s face named name, else the one nearest
point (a picked face, where it was picked), exactly on its surface
whatever its shape, pushed offset out along its outward normal.
With no base solid, or no face of it there, the plane through
point square to normal.
ToFirst
Stop at the first face of the base solid hit along the extrusion direction, on its surface.
ToLast
Stop at the last face of the base solid hit along the extrusion direction, on its surface.
UpToShape
Stop on a set of the base solid’s faces: every line of the sweep
ends at the first of them it meets, moved offset further along the
sweep (a negative offset stops short).
UpToFaceOf
Stop on a face of another shape: the face of shape (a native-format
snapshot, moved by transform, a rigid row-major 4×4 matrix, into
the body’s frame) nearest point, exactly on its surface whatever
its shape, pushed offset out along its outward normal.
UpToShapeOf
Stop on a set of faces as UpToShape does, some of them the base
solid’s (faces) and some of other shapes (others, faces other
bodies lend this one). Needs no base solid when every face is
another shape’s.