pub enum NSidedRefusal {
SideCount {
sides: usize,
},
TangentCount {
sides: usize,
tangents: usize,
},
DegenerateSide {
side: usize,
extent: f64,
},
CornerGap {
side: usize,
gap: f64,
band: f64,
},
TangentDomain {
side: usize,
},
TangentAlongSide {
side: usize,
sine: f64,
},
Centre {
detail: String,
},
AdjacentReentrant {
corner: usize,
},
ReentrantTangent {
corner: usize,
},
Patch {
patch: usize,
refusal: CoonsRefusal,
},
StandIn {
side: usize,
deviation: f64,
},
Geometry {
detail: String,
},
}Expand description
Why an N-sided fill was refused.
Variants§
SideCount
The loop has sides sides; 3 to 6 are filled.
TangentCount
The tangent fields are not one per side.
DegenerateSide
Side side has no length.
CornerGap
The end of side side misses the next side by gap (band band).
TangentDomain
Side side’s tangent field is over another domain than the side.
TangentAlongSide
Side side’s tangent field runs along the side at its midpoint (the
sine of its angle to the side is sine), so it gives no direction
across it.
Centre
The centre the spokes meet at is not a point the patches can share.
AdjacentReentrant
Corners corner and the next are both re-entrant: the side between
them would be a patch with no convex corner.
ReentrantTangent
A tangent fill across a loop with a re-entrant corner (corner).
Patch
Patch patch’s Coons construction refused.
StandIn
Side side is rational and no cubic stand-in within
[STAND_IN_DEVIATION] was found (the best was deviation off).
Geometry
A curve operation failed (verbatim).
Trait Implementations§
Source§impl Clone for NSidedRefusal
impl Clone for NSidedRefusal
Source§fn clone(&self) -> NSidedRefusal
fn clone(&self) -> NSidedRefusal
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NSidedRefusal
impl Debug for NSidedRefusal
Source§impl Display for NSidedRefusal
impl Display for NSidedRefusal
Source§impl Error for NSidedRefusal
impl Error for NSidedRefusal
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()