pub enum OffsetError {
Topology(TopologyError),
Math(MathError),
InvalidInput {
reason: String,
},
AnalysisFailed {
edge: EdgeId,
reason: String,
},
IntersectionFailed {
face_a: FaceId,
face_b: FaceId,
reason: String,
},
SelfIntersection {
reason: String,
},
AssemblyFailed {
reason: String,
},
CollapsedSolid,
}Expand description
Errors from solid offset operations.
Variants§
Topology(TopologyError)
A topology operation failed.
Math(MathError)
A math operation failed.
InvalidInput
The input parameters are invalid.
AnalysisFailed
Edge analysis could not determine convexity.
Fields
IntersectionFailed
Intersection of two offset faces failed.
Fields
SelfIntersection
A self-intersection was detected in the offset shell.
AssemblyFailed
Final shell assembly failed.
CollapsedSolid
The offset distance exceeds the local curvature, collapsing the solid.
Trait Implementations§
Source§impl Debug for OffsetError
impl Debug for OffsetError
Source§impl Display for OffsetError
impl Display for OffsetError
Source§impl Error for OffsetError
impl Error for OffsetError
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 OffsetError
impl From<MathError> for OffsetError
Source§impl From<TopologyError> for OffsetError
impl From<TopologyError> for OffsetError
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 OffsetError
impl RefUnwindSafe for OffsetError
impl Send for OffsetError
impl Sync for OffsetError
impl Unpin for OffsetError
impl UnsafeUnpin for OffsetError
impl UnwindSafe for OffsetError
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