#[non_exhaustive]pub enum CachedPositionPolicy {
Verify,
Trust,
}Expand description
What lowering does with an IfcLinearPlacement’s cached
CartesianPosition when the caller supplies a [CurveEvaluator] (#354).
Without an evaluator nothing changes: the cache is used as it is, and a placement without one is refused. With one, an uncached placement is derived, and a cached one is handled by this policy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Verify
Derive the position from the linear expression and compare the cache with it. The default.
- The cache’s location within the model’s tolerance (see
cached_position_tolerance) of the derived origin: the DERIVED frame is used, because the linear expression is authoritative. - Beyond it:
GeometryError::CachedPlacementMismatchnaming the placement and both positions. A stale cache, e.g. after the alignment was edited, would otherwise place the product silently wrong, and a caller who supplied an evaluator can derive the truth. - A derivation the bridge refuses (an
IfcParameterValueon an alignment, a basis curve it cannot lower) is that refusal: a cache that cannot be checked is not checked.
Only the location is compared. The cache’s axes are not: IFC defaults
Axis to the curve normal in the vertical plane, tilted with the
grade, and exporters that write the cache with a plumb Z are not
stale.
Trust
Use a cached position as it is, without deriving or comparing; derive only placements that have no cache.
For a model whose caches are trusted, or whose linear expressions
this bridge cannot derive (an IfcParameterValue on an alignment is
refused by name, #347) while the cache still places the product as
the exporter computed it.
Trait Implementations§
Source§impl Clone for CachedPositionPolicy
impl Clone for CachedPositionPolicy
Source§fn clone(&self) -> CachedPositionPolicy
fn clone(&self) -> CachedPositionPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more