pub struct Plane<'m> { /* private fields */ }Expand description
A borrowed view of an IfcPlane.
Infinite in both parameters. A file that means a finite patch wraps this in
an IfcCurveBoundedPlane or an IfcRectangularTrimmedSurface; a consumer
that renders a bare IfcPlane will fill the world.
Implementations§
Source§impl<'m> Plane<'m>
impl<'m> Plane<'m>
Sourcepub fn position_ref(&self) -> GeometryResult<EntityId>
pub fn position_ref(&self) -> GeometryResult<EntityId>
The IfcAxis2Placement3D whose Z axis is the plane normal.
The normal direction matters beyond orientation: it decides which side of a half-space solid is solid.
Sourcepub fn position<'v>(
&self,
model: &'v Model,
) -> GeometryResult<Axis2Placement3D<'v>>
pub fn position<'v>( &self, model: &'v Model, ) -> GeometryResult<Axis2Placement3D<'v>>
The placement as a typed view, resolved from the model.
Self::position_ref returns the raw reference; this resolves it
so callers read location/axis/RefDirection without re-entering the
model themselves. A dangling reference is MissingEntity naming this
surface; any target other than an IfcAxis2Placement3D is
WrongEntityType naming the target.
Sourcepub fn parameter_kinds(&self) -> (ParameterKind, ParameterKind)
pub fn parameter_kinds(&self) -> (ParameterKind, ParameterKind)
Both parameters of a plane are lengths.