#[non_exhaustive]pub enum HoleFillError {
RemovedHalfedge {
halfedge: HalfedgeId,
},
NotBoundary {
halfedge: HalfedgeId,
},
HoleTooLarge {
boundary_vertices: usize,
limit: usize,
},
DegenerateBoundary,
SelfIntersectingBoundary {
first: usize,
second: usize,
},
NoValidTriangulation,
InvalidOption {
name: &'static str,
reason: &'static str,
},
BudgetExceeded {
limit: usize,
},
Fair(FairError),
Edit(HalfedgeEditError),
}Expand description
Why fill_hole refused. On every refusal the mesh is unchanged.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RemovedHalfedge
The halfedge id names no live halfedge.
Fields
halfedge: HalfedgeIdThe halfedge.
NotBoundary
The halfedge has a face, so it bounds no hole.
Fields
halfedge: HalfedgeIdThe halfedge.
HoleTooLarge
The hole has more boundary vertices than allowed.
DegenerateBoundary
The boundary loop spans no area (its Newell normal is zero or not finite), so it has no mean plane.
SelfIntersectingBoundary
The boundary loop, projected onto its mean plane, crosses or touches itself. Positions are indices into the loop starting at the given halfedge.
NoValidTriangulation
Every triangulation of the loop needs a degenerate triangle or an edge the mesh already has.
InvalidOption
An option is outside its valid range.
BudgetExceeded
Refinement would add more vertices than allowed.
Fair(FairError)
Fairing refused.
Edit(HalfedgeEditError)
A connectivity edit refused. Not expected on a valid mesh; reported rather than unwrapped.
Trait Implementations§
Source§impl Clone for HoleFillError
impl Clone for HoleFillError
Source§fn clone(&self) -> HoleFillError
fn clone(&self) -> HoleFillError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HoleFillError
impl Debug for HoleFillError
Source§impl Display for HoleFillError
impl Display for HoleFillError
Source§impl Error for HoleFillError
impl Error for HoleFillError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()