#[non_exhaustive]pub struct DeviationReport {
pub requested: Scalar,
pub bound: Option<Scalar>,
pub contributions: Vec<DeviationContribution>,
}Expand description
A certified bound on the distance from the exact surface to a compiled mesh (#232).
The bound is one-sided: it limits how far the exact surface lies from
the mesh, and does not detect extra material in the mesh. Only a
measured all-planar boolean also bounds the mesh’s distance to the exact
result (MESH_TO_EXACT, #329).
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, in world units:
ExecutionOptions::chord_error, else the linear tolerance.
bound: Option<Scalar>An upper bound on the distance from every point of the exact
surface to the mesh’s triangles, in world units; None when any
contribution is unbounded. It does not bound material the mesh has
beyond the exact surface, except for a measured all-planar
boolean’s (MESH_TO_EXACT).
contributions: Vec<DeviationContribution>Each path that contributed, with the worst bound it reached, in first-seen order.
Implementations§
Source§impl DeviationReport
impl DeviationReport
Sourcepub fn meets_requested(&self) -> bool
pub fn meets_requested(&self) -> bool
Whether the mesh is certified within the requested chord budget.
false means “not certified”, not “missed”: an unbounded path, or a
bound above the budget whose true deviation may still be below it.
true is about the exact surface’s distance to the mesh: a mesh
with extra material can still meet the request, except where a
measured all-planar boolean bounds that too (MESH_TO_EXACT).
Sourcepub fn unbounded(&self) -> impl Iterator<Item = &DeviationContribution>
pub fn unbounded(&self) -> impl Iterator<Item = &DeviationContribution>
The contributions with no certified bound.
Trait Implementations§
Source§impl Clone for DeviationReport
impl Clone for DeviationReport
Source§fn clone(&self) -> DeviationReport
fn clone(&self) -> DeviationReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more