pub struct SurfaceOfLinearExtrusion<'m> { /* private fields */ }Expand description
A borrowed view of an IfcSurfaceOfLinearExtrusion.
Implementations§
Source§impl<'m> SurfaceOfLinearExtrusion<'m>
impl<'m> SurfaceOfLinearExtrusion<'m>
Sourcepub fn new(id: EntityId, entity: &'m Entity) -> Self
pub fn new(id: EntityId, entity: &'m Entity) -> Self
Wrap an entity known to be an IfcSurfaceOfLinearExtrusion.
Sourcepub fn swept_curve_ref(&self) -> GeometryResult<EntityId>
pub fn swept_curve_ref(&self) -> GeometryResult<EntityId>
The IfcProfileDef whose outer curve is swept.
A profile, not a curve, despite the attribute name. Only its outer curve contributes; see the module docs.
Stays a reference: profiles are read by
crate::describe_profile, the one owner of IfcProfileDef
families, so this module does not define a competing profile view.
Sourcepub fn position_ref(&self) -> Option<EntityId>
pub fn position_ref(&self) -> Option<EntityId>
The optional placement of the profile’s coordinate system.
None means the identity in the containing representation’s space,
which is a legal and common encoding, not a missing attribute.
Sourcepub fn position<'v>(
&self,
model: &'v Model,
) -> GeometryResult<Option<Axis2Placement3D<'v>>>
pub fn position<'v>( &self, model: &'v Model, ) -> GeometryResult<Option<Axis2Placement3D<'v>>>
The placement as a typed view, resolved from the model.
Ok(None) when absent (the identity, see Self::position_ref); a
present but dangling or mistyped reference is an error, never None.
Sourcepub fn extruded_direction_ref(&self) -> GeometryResult<EntityId>
pub fn extruded_direction_ref(&self) -> GeometryResult<EntityId>
The IfcDirection the profile is swept along.
Given in the profile’s own coordinate system, so it must be transformed
by Position before use in model space.
Sourcepub fn extruded_direction<'v>(
&self,
model: &'v Model,
) -> GeometryResult<Direction<'v>>
pub fn extruded_direction<'v>( &self, model: &'v Model, ) -> GeometryResult<Direction<'v>>
The sweep direction as a typed view, resolved from the model.
Still in the profile’s coordinate system and unnormalized; call
Direction::unit before scaling it by Self::depth.
Sourcepub fn depth(&self) -> GeometryResult<f64>
pub fn depth(&self) -> GeometryResult<f64>
The extrusion depth, guaranteed non-zero.
A zero depth collapses the surface to its generating curve. IFC4
declares this IfcLengthMeasure rather than the positive variant, so a
negative depth is legal and means the sweep runs the other way; only
zero is rejected.
Trait Implementations§
Source§impl<'m> Clone for SurfaceOfLinearExtrusion<'m>
impl<'m> Clone for SurfaceOfLinearExtrusion<'m>
Source§fn clone(&self) -> SurfaceOfLinearExtrusion<'m>
fn clone(&self) -> SurfaceOfLinearExtrusion<'m>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more