pub struct IndexedPolygonalFace<'m> { /* private fields */ }Expand description
IfcIndexedPolygonalFace: one planar n-gon, as indices.
A face is a separate entity rather than an inline list precisely so that
IndexedPolygonalFaceWithVoids can extend it with holes.
Implementations§
Source§impl<'m> IndexedPolygonalFace<'m>
impl<'m> IndexedPolygonalFace<'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 IfcIndexedPolygonalFace or subtype.
Sourcepub fn outer_loop_1based(&self) -> GeometryResult<Vec<i64>>
pub fn outer_loop_1based(&self) -> GeometryResult<Vec<i64>>
The outer loop, as the file wrote it: 1-based indices.
Sourcepub fn outer_loop_0based(&self) -> GeometryResult<Vec<usize>>
pub fn outer_loop_0based(&self) -> GeometryResult<Vec<usize>>
The outer loop as 0-based indices, ready to index a vertex Vec.
Does not apply PnIndex: that lives on the containing
IfcPolygonalFaceSet and a face has no way to reach it. A caller
holding both must apply the mapping itself.
Trait Implementations§
Source§impl<'m> Clone for IndexedPolygonalFace<'m>
impl<'m> Clone for IndexedPolygonalFace<'m>
Source§fn clone(&self) -> IndexedPolygonalFace<'m>
fn clone(&self) -> IndexedPolygonalFace<'m>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'m> Copy for IndexedPolygonalFace<'m>
Auto Trait Implementations§
impl<'m> Freeze for IndexedPolygonalFace<'m>
impl<'m> RefUnwindSafe for IndexedPolygonalFace<'m>
impl<'m> Send for IndexedPolygonalFace<'m>
impl<'m> Sync for IndexedPolygonalFace<'m>
impl<'m> Unpin for IndexedPolygonalFace<'m>
impl<'m> UnsafeUnpin for IndexedPolygonalFace<'m>
impl<'m> UnwindSafe for IndexedPolygonalFace<'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