pub enum SurfaceOp {
Show 16 variants
Extrude {
curves: Vec<CurveSource>,
direction: [f64; 3],
length: f64,
symmetric: bool,
},
Revolve {
curves: Vec<CurveSource>,
origin: [f64; 3],
axis: [f64; 3],
angle_deg: f64,
},
PlanarFill {
curves: Vec<CurveSource>,
},
Fill {
boundary: Vec<CurveSource>,
continuity: Continuity,
},
Ruled {
first: CurveSource,
second: CurveSource,
},
Loft {
sections: Vec<CurveSource>,
closed: bool,
},
Sweep {
profile: Vec<CurveSource>,
path: Vec<CurveSource>,
frame: PipeFrame,
},
Offset {
faces: Vec<FaceProbe>,
distance: f64,
},
Extend {
edges: Vec<EdgeProbe>,
length: f64,
continuity: Continuity,
},
Blend {
first: EdgeProbe,
second: EdgeProbe,
continuity: Continuity,
},
Split {
faces: Vec<FaceProbe>,
curves: Vec<CurveSource>,
},
Sew {
gap: f64,
},
Fillet {
edges: Vec<EdgeProbe>,
radius: f64,
},
Thicken {
thickness: f64,
both_sides: bool,
},
TrimByPlane {
origin: [f64; 3],
normal: [f64; 3],
},
Mirror {
origin: [f64; 3],
normal: [f64; 3],
},
}Expand description
The steps of surface modelling. A constructive step (every one but
Sew, TrimByPlane and Mirror) adds its sheet to the body beside
what is there; the rest act on all of the body’s shape.
Variants§
Extrude
Each curve swept straight along direction by length, both ways
by half of it when symmetric.
Revolve
Each curve turned by angle_deg about the axis through origin
along axis.
PlanarFill
The flat face closed planar loops bound, a loop inside another a hole in it.
Fields
curves: Vec<CurveSource>Fill
The surface curves meeting end to end bound, meeting the faces the
boundary edges belong to with continuity.
Ruled
The surface of straight lines between two curves, end to end.
Loft
A surface through section curves in order, closing back to the first
when closed.
Sweep
A profile curve swept along a path.
Offset
Faces carried off along their normals by distance, as new faces.
Extend
Faces carried past picked edges of their boundary by length.
Blend
A surface bridging two edges, meeting each edge’s face with
continuity.
Split
Picked faces split along curves projected onto them.
Sew
The body’s faces joined where their edges meet, or come within
gap of each other (0 for exactly); a shell that closes becomes a
solid.
Fillet
A round of radius along picked edges where two faces of a sheet
meet.
Thicken
The body’s sheets given thickness along their normals (both ways
by half when both_sides): a solid.
TrimByPlane
The body’s sheets cut by the plane through origin, the side
normal points to kept.
Mirror
The body’s shape and its reflection in the plane through origin
square to normal.