#[non_exhaustive]pub enum MeshOp {
RemoveIslands {
smaller_than: f64,
},
Delete {
region: MeshRegion,
},
Flip {
region: MeshRegion,
},
Fill {
holes_up_to: f64,
near: Option<[f64; 3]>,
fairing: MeshFairing,
},
Smooth {
region: MeshRegion,
bumps_up_to: f64,
move_at_most: f64,
keep_edges_deg: Option<f64>,
},
Offset {
region: MeshRegion,
distance: f64,
},
Boolean {
operand: MeshOperand,
operation: BooleanOp,
chord: f64,
},
Shell {
thickness: f64,
side: MeshSide,
},
Reduce {
tolerance: f64,
triangle_limit: usize,
},
Cut {
origin: [f64; 3],
normal: [f64; 3],
keep_above: bool,
close: bool,
bridge: f64,
},
}Expand description
One step of a mesh’s history, in the mesh’s own frame.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RemoveIslands
Pieces whose bounding box’s diagonal is shorter than this removed.
Delete
The region’s faces removed, the hole left open.
Fields
region: MeshRegionFlip
The region’s faces turned over.
Fields
region: MeshRegionFill
Fill open rims whose longest span is at most holes_up_to, or the
nearest such rim to near when given. Existing vertices stay fixed.
Smooth
Project the region onto local quadrics, with a bounded movement.
Offset
Move faces by a normal distance; a marking gets a joining wall.
Boolean
The boolean operation of the closed mesh (first) and a bounded
solid in the mesh’s frame, the solid meshed to chord first. An
open mesh, and an operand it does not meet, are refused.
Shell
A closed mesh hollowed: its surface kept, an inner wall thickness
inside it bounding a sealed cavity. An open sheet thickened to the
side given, rim walls closing it.
Reduce
Decimate and measure both ways at the 99.9th percentile. The triangle limit takes priority over the tolerance; the report says how far the resulting surface lies from its input.
Cut
Cut by the plane through origin square to normal, the side
normal points to kept when keep_above; with close, every loop
of the cut capped flat, gaps in its rim up to bridge closed.