#[non_exhaustive]pub enum RemeshError {
InvalidTarget(Scalar),
InvalidFeatureAngle(Scalar),
InvalidMesh(HalfedgeBuildError),
NonFinitePosition {
vertex: usize,
},
DegenerateTriangle {
triangle: usize,
},
BudgetExceeded {
produced: usize,
limit: usize,
},
Internal(HalfedgeEditError),
}Expand description
Why a remeshing could not be performed.
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.
InvalidTarget(Scalar)
The target edge length must be a positive, finite length.
InvalidFeatureAngle(Scalar)
The feature angle must lie in [0, pi] radians.
InvalidMesh(HalfedgeBuildError)
The input is not an oriented 2-manifold triangle mesh: the halfedge structure names the configuration it cannot represent.
NonFinitePosition
A vertex position is NaN or infinite.
DegenerateTriangle
An input triangle has no area, so it has no normal to keep.
BudgetExceeded
The output would exceed the triangle budget.
Internal(HalfedgeEditError)
A local edit refused a configuration the remesher had checked; this indicates a defect, not a property of the input.
Trait Implementations§
Source§impl Clone for RemeshError
impl Clone for RemeshError
Source§fn clone(&self) -> RemeshError
fn clone(&self) -> RemeshError
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 RemeshError
impl Debug for RemeshError
Source§impl Display for RemeshError
impl Display for RemeshError
Source§impl Error for RemeshError
impl Error for RemeshError
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 RemeshError
impl From<HalfedgeBuildError> for RemeshError
Source§fn from(source: HalfedgeBuildError) -> Self
fn from(source: HalfedgeBuildError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RemeshError
impl PartialEq for RemeshError
impl StructuralPartialEq for RemeshError
Auto Trait Implementations§
impl Freeze for RemeshError
impl RefUnwindSafe for RemeshError
impl Send for RemeshError
impl Sync for RemeshError
impl Unpin for RemeshError
impl UnsafeUnpin for RemeshError
impl UnwindSafe for RemeshError
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