pub struct PolygonalFaceSet<'m> { /* private fields */ }Expand description
IfcPolygonalFaceSet: n-gon faces indexed into a shared point list.
§Winding
When Closed is TRUE the schema requires outer loops to wind
counter-clockwise seen from outside the shell, and inner loops (holes) to
wind clockwise. A consumer computing face normals from winding must respect
that, or every hole’s normal points into the material.
Implementations§
Source§impl<'m> PolygonalFaceSet<'m>
impl<'m> PolygonalFaceSet<'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 IfcPolygonalFaceSet.
Sourcepub fn base(&self) -> TessellatedFaceSet<'m>
pub fn base(&self) -> TessellatedFaceSet<'m>
The inherited IfcTessellatedFaceSet attributes.
Sourcepub fn coordinates(&self) -> GeometryResult<EntityId>
pub fn coordinates(&self) -> GeometryResult<EntityId>
The IfcCartesianPointList3D reference holding the vertices.
Sourcepub fn closed(&self) -> Option<bool>
pub fn closed(&self) -> Option<bool>
Whether the face set bounds a solid. None means the file did not say.
Note this is slot 1 here but slot 2 on IfcTriangulatedFaceSet.
Sourcepub fn faces(&self) -> GeometryResult<Vec<EntityId>>
pub fn faces(&self) -> GeometryResult<Vec<EntityId>>
The IfcIndexedPolygonalFace references making up the set.
Sourcepub fn pn_index_1based(&self) -> Option<Vec<i64>>
pub fn pn_index_1based(&self) -> Option<Vec<i64>>
PnIndex exactly as written: 1-based positions in Coordinates.
Sourcepub fn pn_index_0based(&self) -> GeometryResult<Option<Vec<usize>>>
pub fn pn_index_0based(&self) -> GeometryResult<Option<Vec<usize>>>
PnIndex converted to 0-based, or None when absent.
The same indirection as on IfcTriangulatedFaceSet: with PnIndex
present, a face’s CoordIndex addresses PnIndex, not Coordinates.
Trait Implementations§
Source§impl<'m> Clone for PolygonalFaceSet<'m>
impl<'m> Clone for PolygonalFaceSet<'m>
Source§fn clone(&self) -> PolygonalFaceSet<'m>
fn clone(&self) -> PolygonalFaceSet<'m>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more