pub struct ExtrudedAreaSolid<'m> { /* private fields */ }Expand description
IfcExtrudedAreaSolid: a profile swept along a straight direction.
The overwhelming majority of walls, slabs, columns and beams in a real model are one of these, so this is the hot path of IFC geometry.
§The oblique-extrusion trap
ExtrudedDirection is expressed in the Position coordinate system and
is not required to be +Z. The schema only forbids it from being
perpendicular to the local Z axis. Assuming [0, 0, 1] produces a solid of
the right volume in the wrong place for every sheared extrusion in the file,
and sheared extrusions are common in roof and ramp geometry.
Depth is measured along ExtrudedDirection, not along Z, and is a
positive length measure: a zero or negative depth is a degenerate file.
Implementations§
Source§impl<'m> ExtrudedAreaSolid<'m>
impl<'m> ExtrudedAreaSolid<'m>
Sourcepub fn new(id: EntityId, entity: &'m Entity) -> Self
pub fn new(id: EntityId, entity: &'m Entity) -> Self
Wrap an entity assumed to be an IfcExtrudedAreaSolid.
Sourcepub fn base(&self) -> SweptAreaSolid<'m>
pub fn base(&self) -> SweptAreaSolid<'m>
The inherited IfcSweptAreaSolid attributes.
Sourcepub fn extruded_direction(&self) -> GeometryResult<EntityId>
pub fn extruded_direction(&self) -> GeometryResult<EntityId>
The IfcDirection reference giving the sweep direction.
Expressed in the Position coordinate system. See the type docs: it is
not necessarily +Z.
Sourcepub fn depth(&self) -> GeometryResult<f64>
pub fn depth(&self) -> GeometryResult<f64>
The sweep distance along ExtrudedDirection, in file length units.
Sourcepub fn checked_depth(&self) -> GeometryResult<f64>
pub fn checked_depth(&self) -> GeometryResult<f64>
The depth, rejecting the non-positive values the schema forbids.
Separate from Self::depth so a caller inspecting a file can still
see the raw value while a caller building geometry gets a located error
instead of a zero-volume solid.
Trait Implementations§
Source§impl<'m> Clone for ExtrudedAreaSolid<'m>
impl<'m> Clone for ExtrudedAreaSolid<'m>
Source§fn clone(&self) -> ExtrudedAreaSolid<'m>
fn clone(&self) -> ExtrudedAreaSolid<'m>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more