#[non_exhaustive]pub enum SubdivisionError {
NotATriangle {
face: FaceId,
degree: usize,
},
NotAQuad {
face: FaceId,
degree: usize,
},
BudgetExceeded {
faces: usize,
limit: usize,
},
Build(HalfedgeBuildError),
}Expand description
Why subdivision refused.
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.
NotATriangle
Loop subdivision needs triangles.
NotAQuad
Catmull-Clark limit positions need quads (subdivide once first).
BudgetExceeded
A level would produce more faces than allowed.
Build(HalfedgeBuildError)
Building a level’s mesh failed. Not expected: every level of a valid mesh is valid. Reported rather than unwrapped.
Trait Implementations§
Source§impl Clone for SubdivisionError
impl Clone for SubdivisionError
Source§fn clone(&self) -> SubdivisionError
fn clone(&self) -> SubdivisionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubdivisionError
impl Debug for SubdivisionError
Source§impl Display for SubdivisionError
impl Display for SubdivisionError
Source§impl Error for SubdivisionError
impl Error for SubdivisionError
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<HalfedgeBuildError> for SubdivisionError
impl From<HalfedgeBuildError> for SubdivisionError
Source§fn from(source: HalfedgeBuildError) -> Self
fn from(source: HalfedgeBuildError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SubdivisionError
impl PartialEq for SubdivisionError
impl StructuralPartialEq for SubdivisionError
Auto Trait Implementations§
impl Freeze for SubdivisionError
impl RefUnwindSafe for SubdivisionError
impl Send for SubdivisionError
impl Sync for SubdivisionError
impl Unpin for SubdivisionError
impl UnsafeUnpin for SubdivisionError
impl UnwindSafe for SubdivisionError
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