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.
Sourcepub fn parameter_kinds(&self) -> (ParameterKind, ParameterKind)
pub fn parameter_kinds(&self) -> (ParameterKind, ParameterKind)
Both parameters of a plane are lengths.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Plane<'m>
impl<'m> RefUnwindSafe for Plane<'m>
impl<'m> Send for Plane<'m>
impl<'m> Sync for Plane<'m>
impl<'m> Unpin for Plane<'m>
impl<'m> UnsafeUnpin for Plane<'m>
impl<'m> UnwindSafe for Plane<'m>
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
Mutably borrows from an owned value. Read more