pub enum BlendError {
StartSolutionFailure {
edge: EdgeId,
t: f64,
},
WalkingFailure {
edge: EdgeId,
t: f64,
residual: f64,
},
TwistedSurface {
stripe_idx: usize,
},
RadiusTooLarge {
edge: EdgeId,
max_radius: f64,
},
TrimmingFailure {
face: FaceId,
},
CornerFailure {
vertex: VertexId,
},
UnsupportedSurface {
face: FaceId,
surface_tag: String,
},
Topology(TopologyError),
Math(MathError),
}Expand description
Error type for blend operations.
Variants§
StartSolutionFailure
No initial solution found at the spine start.
Fields
WalkingFailure
Walker diverged during marching.
Fields
TwistedSurface
Generated surface is twisted or self-intersecting.
RadiusTooLarge
Radius too large for the edge geometry.
Fields
TrimmingFailure
Face trimming failed.
CornerFailure
Corner solver failed at vertex.
UnsupportedSurface
Surface type not supported.
Fields
Topology(TopologyError)
Topology error from underlying operations.
Math(MathError)
Math error from underlying computations.
Trait Implementations§
Source§impl Debug for BlendError
impl Debug for BlendError
Source§impl Display for BlendError
impl Display for BlendError
Source§impl Error for BlendError
impl Error for BlendError
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<MathError> for BlendError
impl From<MathError> for BlendError
Source§impl From<TopologyError> for BlendError
impl From<TopologyError> for BlendError
Source§fn from(source: TopologyError) -> Self
fn from(source: TopologyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlendError
impl RefUnwindSafe for BlendError
impl Send for BlendError
impl Sync for BlendError
impl Unpin for BlendError
impl UnsafeUnpin for BlendError
impl UnwindSafe for BlendError
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