#[non_exhaustive]pub enum DegenerateFacePolicy {
Refuse,
DropAndReport,
}Expand description
What lowering does with an IfcPolyLoop face bound that collapses (#46).
A poly loop “collapses” when fewer than three of its implied edges join
two different points, e.g. (A, A, B, B): it encloses no area, so it
cannot bound a face. Authoring tools emit such sliver faces routinely.
The test is exactly the one the refusal applies, so
DropAndReport drops precisely the faces that
Refuse would have refused over, and nothing else.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Refuse
Refuse the whole representation item with
GeometryError::Degenerate naming
the loop. The default: a file that says a face exists is not silently
contradicted.
DropAndReport
Leave the face out and record it in
ProvenanceMap::dropped_faces.
Only a face whose OUTER bound (or only bound) collapses is dropped: that face covers no area, so omitting it removes no surface. A collapsed inner bound of a face that still has a valid outer bound is still refused, because dropping the face there would remove real area.
Dropping a face can leave a shell open; the backend’s own closure check still decides whether the result is a solid.
Trait Implementations§
Source§impl Clone for DegenerateFacePolicy
impl Clone for DegenerateFacePolicy
Source§fn clone(&self) -> DegenerateFacePolicy
fn clone(&self) -> DegenerateFacePolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more