pub enum TSplineRefusal {
Show 18 variants
Degree {
direction: char,
degree: usize,
},
Knots {
direction: char,
index: usize,
},
KnotSpan {
direction: char,
index: usize,
span: f64,
},
NotClamped {
direction: char,
},
Multiplicity {
direction: char,
value: f64,
},
Extent {
direction: char,
lines: usize,
},
Segment {
segment: TMeshSegment,
},
Dangling {
i: usize,
j: usize,
},
Corner {
i: usize,
j: usize,
},
Ray {
i: usize,
j: usize,
},
NotAnalysisSuitable {
horizontal: (usize, usize),
vertical: (usize, usize),
},
PointCount {
expected: usize,
found: usize,
},
NonFinite {
index: usize,
},
Magnitude {
index: usize,
},
Weight {
index: usize,
weight: f64,
},
WeightRatio {
min: f64,
max: f64,
},
Parameter {
u: f64,
v: f64,
},
Conversion {
reason: String,
},
}Expand description
Why a T-mesh or T-spline was refused.
Variants§
Degree
Only odd degrees 1, 3, 5 have vertex anchors.
Knots
Knot values not finite, beyond [MAX_T_SPLINE_VALUE], or decreasing.
KnotSpan
Two distinct knot values at most [MIN_KNOT_SPAN] apart: the converted
NURBS evaluator treats such a span as empty.
NotClamped
The first or last degree + 1 knots differ, or nothing is left between them.
Multiplicity
An interior knot value repeated more than degree times.
Extent
Too few or too many index lines.
Segment
A segment outside the index range or of zero length.
Fields
segment: TMeshSegmentDangling
An interior point where a segment ends without meeting a perpendicular edge.
Corner
An interior L corner: the faces around it are not rectangles.
Ray
A ray from an anchor left the mesh before collecting its knots.
NotAnalysisSuitable
A horizontal and a vertical T-junction extension intersect.
PointCount
The number of control points does not match the anchors.
NonFinite
A control point or weight that is not finite.
Magnitude
A control point farther than [MAX_T_SPLINE_VALUE] from the origin: the
derivative arithmetic would overflow.
Weight
A weight that is not positive.
WeightRatio
Weights spanning more than [MIN_T_SPLINE_WEIGHT_RATIO].
Parameter
A parameter outside the domain.
Conversion
The tensor constructor refused the converted net.
Trait Implementations§
Source§impl Clone for TSplineRefusal
impl Clone for TSplineRefusal
Source§impl Debug for TSplineRefusal
impl Debug for TSplineRefusal
Source§impl Display for TSplineRefusal
impl Display for TSplineRefusal
Source§impl Error for TSplineRefusal
impl Error for TSplineRefusal
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()