pub struct SectionedSpine<'m> { /* private fields */ }Expand description
IfcSectionedSpine: cross sections positioned along a composite curve.
§Not a swept area solid
Despite the family resemblance it subtypes IfcGeometricRepresentationItem
directly, not IfcSolidModel. Slot 0 is SpineCurve, and there is no
inherited SweptArea or Position.
§The pairing invariant
CrossSections and CrossSectionPositions are parallel lists that the
schema requires to be the same length. Exporters do get this wrong, and a
plain zip silently truncates to the shorter one, producing a solid missing
its tail. Self::checked_sections reports the mismatch instead.
Implementations§
Source§impl<'m> SectionedSpine<'m>
impl<'m> SectionedSpine<'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 IfcSectionedSpine.
Sourcepub fn spine_curve(&self) -> GeometryResult<EntityId>
pub fn spine_curve(&self) -> GeometryResult<EntityId>
The IfcCompositeCurve reference forming the spine.
Sourcepub fn cross_sections(&self) -> GeometryResult<Vec<EntityId>>
pub fn cross_sections(&self) -> GeometryResult<Vec<EntityId>>
The IfcProfileDef references, in spine order.
Sourcepub fn cross_section_positions(&self) -> GeometryResult<Vec<EntityId>>
pub fn cross_section_positions(&self) -> GeometryResult<Vec<EntityId>>
The IfcAxis2Placement3D references locating each cross section.
Sourcepub fn checked_sections(&self) -> GeometryResult<Vec<(EntityId, EntityId)>>
pub fn checked_sections(&self) -> GeometryResult<Vec<(EntityId, EntityId)>>
Sections paired with their positions, rejecting a length mismatch.
Trait Implementations§
Source§impl<'m> Clone for SectionedSpine<'m>
impl<'m> Clone for SectionedSpine<'m>
Source§fn clone(&self) -> SectionedSpine<'m>
fn clone(&self) -> SectionedSpine<'m>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more