#[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§
Source§impl ChordDeviation
impl ChordDeviation
Sourcepub 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.
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 moreimpl Copy for ChordDeviation
Source§impl Debug for ChordDeviation
impl Debug for ChordDeviation
Source§impl PartialEq for ChordDeviation
impl PartialEq for ChordDeviation
impl StructuralPartialEq for ChordDeviation
Auto Trait Implementations§
impl Freeze for ChordDeviation
impl RefUnwindSafe for ChordDeviation
impl Send for ChordDeviation
impl Sync for ChordDeviation
impl Unpin for ChordDeviation
impl UnsafeUnpin for ChordDeviation
impl UnwindSafe for ChordDeviation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more