pub enum DeformRefusal {
Show 24 variants
InvalidSurface(String),
InvalidWeights {
row: usize,
column: usize,
},
UnclampedKnots {
direction: KnotDirection,
},
NoPicks,
TooManyPicks {
count: usize,
limit: usize,
},
NetTooLarge {
poles: usize,
limit: usize,
},
InvalidSpec(String),
InvalidPick {
index: usize,
reason: String,
},
DuplicatePicks {
first: usize,
second: usize,
},
PickOnHeldRegion {
index: usize,
},
DependentConstraints {
index: usize,
},
IllConditioned {
estimate: f64,
limit: f64,
},
DisplacementTooLarge {
index: usize,
displacement: f64,
limit: f64,
},
ClosedDirectionNotHeld {
direction: KnotDirection,
},
CollapsedSideNotHeld {
side: DeformSide,
},
Folded {
u: f64,
v: f64,
},
Amplified {
ratio: f64,
limit: f64,
},
InvalidTie {
tie: usize,
reason: String,
},
EdgeRowsDisagree {
tie: usize,
gap: f64,
},
EdgeNotUniformlyTangent {
tie: usize,
reason: String,
},
DependentTie {
tie: usize,
},
TooManyConstraints {
rows: usize,
limit: usize,
},
EdgeFoldedThrough {
tie: usize,
t: f64,
},
Refinement(KnotRefinementRefusal),
}Variants§
InvalidSurface(String)
InvalidWeights
A weight is not finite and positive.
UnclampedKnots
Held rows need clamped ends: an unclamped side’s boundary curve is not its first row.
Fields
direction: KnotDirectionNoPicks
TooManyPicks
NetTooLarge
InvalidSpec(String)
min_degree below 2 or a split count of 0.
InvalidPick
A pick parameter outside the domain, or a non-finite target or normal, or a zero normal.
DuplicatePicks
Two picks at the same parameters.
PickOnHeldRegion
The pick asks for a change where every control point that reaches it is held.
DependentConstraints
The pick’s constraints are implied by (or contradict) earlier ones on this net: picks too close for the net to separate, or more than its free control points can meet. Split spans to give it room.
IllConditioned
DisplacementTooLarge
ClosedDirectionNotHeld
A closed (seam) direction needs both seam sides held with their tangents, or the seam opens (free) or creases (position only).
Fields
direction: KnotDirectionCollapsedSideNotHeld
A side whose boundary row is collapsed to one point (a pole) must be held with its tangent, or the pole splits or kinks.
Fields
side: DeformSideFolded
The result’s normal turns over (or vanishes) at (u, v).
Amplified
The net had to move a control point ratio times further than the
largest change asked for: the picks ask for more bending than the free
region can give smoothly (a pick right next to a held edge, or picks
pulling hard against each other). Split spans or move the pick.
InvalidTie
Shell deformation: a tie between two surfaces is malformed (an index out of range, a surface tied to itself on one side).
EdgeRowsDisagree
The two boundary rows a tie joins do not coincide after the exact elevation and knot merging that make them comparable.
EdgeNotUniformlyTangent
A shared edge that is smooth (G1) in the base but whose rows cannot keep it so by the linear frozen-ratio rows (a ratio that varies along the edge, or rational rows): refused rather than creased.
DependentTie
A tie’s rows are implied by (or contradict) the other constraints.
TooManyConstraints
A tied system with more constraint rows than its bound.
EdgeFoldedThrough
Two surfaces meeting at a sharp shared edge have swung through each
other there (the dihedral turned over) at edge parameter t.
Refinement(KnotRefinementRefusal)
Trait Implementations§
Source§impl Clone for DeformRefusal
impl Clone for DeformRefusal
Source§impl Debug for DeformRefusal
impl Debug for DeformRefusal
Source§impl Display for DeformRefusal
impl Display for DeformRefusal
Source§impl Error for DeformRefusal
impl Error for DeformRefusal
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()