Struct ChordDeviation
#[non_exhaustive]pub struct ChordDeviation {
pub requested: f64,
pub bound: f64,
}Expand description
How far the exact curve may lie from its polyline, reported the way a compiled mesh’s deviation is: the chord budget asked for, and a certified upper bound on the distance from every point of the exact curve to the nearest point of the polyline, both in world units.
The bound is one-sided, exact curve to polyline, and it is always present: a compiler that cannot bound a curve refuses it rather than returning a polyline with no bound.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.requested: f64The chord budget the compilation was asked for:
ExecutionOptions::chord_error, else the linear tolerance.
bound: f64An upper bound on the distance from every point of the exact curve to the polyline.
Implementations§
§impl ChordDeviation
impl ChordDeviation
pub const fn new(requested: f64, bound: f64) -> ChordDeviation
pub const fn new(requested: f64, bound: f64) -> ChordDeviation
A bound against the budget it was asked for.
pub fn meets_requested(&self) -> bool
pub fn meets_requested(&self) -> bool
Whether the polyline is certified within the requested budget.
false means “not certified”, not “missed”: the bound is an upper
bound, and the true deviation may still be below the budget.
Trait Implementations§
§impl Clone for ChordDeviation
impl Clone for ChordDeviation
§fn clone(&self) -> ChordDeviation
fn clone(&self) -> ChordDeviation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more