pub struct Tolerance<'m> { /* private fields */ }Expand description
Implementations§
Source§impl<'m> Tolerance<'m>
impl<'m> Tolerance<'m>
Sourcepub fn magnitude(&self) -> Option<f64>
pub fn magnitude(&self) -> Option<f64>
The nominal magnitude (the tolerance-zone size).
The number is raw, in the model’s length unit — interpret it via
Scene::units, exactly as point coordinates and dimension values are
read. None when the tolerance carries no magnitude, or its magnitude is
a complex measure instance the walk cannot resolve (reported via
Scene::warnings).
Source§impl<'m> Tolerance<'m>
impl<'m> Tolerance<'m>
Sourcepub fn datums(&self) -> Vec<Datum<'m>>
pub fn datums(&self) -> Vec<Datum<'m>>
The datum reference frame this tolerance is controlled against, in precedence order (primary → secondary → tertiary).
Empty for a form tolerance (flatness, straightness, …) that references no
datum. A common datum (A-B) is flattened to its constituent datums; a
reference the walk cannot resolve (a complex facet) is reported via
Scene::warnings.
Source§impl<'m> Tolerance<'m>
impl<'m> Tolerance<'m>
Sourcepub fn feature(&self) -> Option<Feature<'m>>
pub fn feature(&self) -> Option<Feature<'m>>
The shape feature this tolerance applies to (its toleranced_shape_aspect).
None when the target is not a named shape aspect — a tolerance placed on
a dimension or on the whole part (PRODUCT_DEFINITION_SHAPE) — or when the
target is a complex instance the walk cannot resolve (reported via
Scene::warnings).