#[non_exhaustive]pub enum RepairAction {
WeldVertices,
UnifyOrientation,
DropDegenerateElements,
OrientOutward,
SplitTJunctions,
}Expand description
One opt-in repair. There is deliberately no All variant.
No action removes self-intersections. crate::self_intersections
detects them, but removing them cuts and re-triangulates faces, and that
is deliberately not offered as a repair.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
WeldVertices
Merge vertices within tolerance.
UnifyOrientation
Make connected-face orientation consistent.
DropDegenerateElements
Remove degenerate elements.
OrientOutward
Flip a closed shell that encloses negative volume.
Separate from Self::UnifyOrientation: that one makes neighbours
agree, this one decides which way round the agreed shell faces.
SplitTJunctions
Split triangle edges at vertices lying on them within tolerance (T-junctions).
Opt-in: it turns a mesh closed up to T-junctions into a closed
oriented cycle, and adds no vertex. A triangle is declined, not split,
when a vertex it would reuse carries per-vertex data that differs from
interpolating the side’s endpoints, so no value is invented. See
crate::split_t_junctions.
Trait Implementations§
Source§impl Clone for RepairAction
impl Clone for RepairAction
Source§fn clone(&self) -> RepairAction
fn clone(&self) -> RepairAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more