#[non_exhaustive]pub struct ChordDeviation {
pub requested: Scalar,
pub bound: Scalar,
}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: ScalarThe chord budget the compilation was asked for:
ExecutionOptions::chord_error, else the linear tolerance.
bound: ScalarAn upper bound on the distance from every point of the exact curve to the polyline.
Implementations§
Source§impl ChordDeviation
impl ChordDeviation
Sourcepub const fn new(requested: Scalar, bound: Scalar) -> Self
pub const fn new(requested: Scalar, bound: Scalar) -> Self
A bound against the budget it was asked for.
Sourcepub 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§
Source§impl Clone for ChordDeviation
impl Clone for ChordDeviation
Source§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