#[non_exhaustive]pub enum FairError {
RemovedVertex {
vertex: VertexId,
},
Unanchored {
vertex: VertexId,
},
NotATriangle {
face: FaceId,
degree: usize,
},
DegenerateTriangle {
face: FaceId,
},
InvalidTolerance(Scalar),
NotConverged {
coordinate: usize,
relative_residual: Scalar,
},
Numeric(NumericError),
}Expand description
Why fair refused. On every refusal the mesh is unchanged.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RemovedVertex
The vertex id names no live vertex.
Unanchored
The vertex is free and so is every vertex connected to it through free vertices: nothing fixes where that group goes.
NotATriangle
Cotangent weights need triangles here.
DegenerateTriangle
A triangle near the faired region has (numerically) zero area, so its cotangent weights are undefined.
InvalidTolerance(Scalar)
The relative tolerance is negative or not finite.
NotConverged
A coordinate’s system did not reach the tolerance within the budget.
Numeric(NumericError)
The linear solve refused its system, which happens only with cotangent weights on badly shaped triangles that make it indefinite to working precision.
Trait Implementations§
Source§impl Error for FairError
impl Error for FairError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<FairError> for HoleFillError
impl From<FairError> for HoleFillError
impl StructuralPartialEq for FairError
Auto Trait Implementations§
impl Freeze for FairError
impl RefUnwindSafe for FairError
impl Send for FairError
impl Sync for FairError
impl Unpin for FairError
impl UnsafeUnpin for FairError
impl UnwindSafe for FairError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more