pub struct PolyLoop<'m> { /* private fields */ }Expand description
IfcPolyLoop: a closed wire given as an ordered point list.
Implementations§
Source§impl<'m> PolyLoop<'m>
impl<'m> PolyLoop<'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 IfcPolyLoop.
Sourcepub fn polygon(&self) -> GeometryResult<Vec<EntityId>>
pub fn polygon(&self) -> GeometryResult<Vec<EntityId>>
The polygon point references in file order.
The schema requires at least three unique points; a shorter list bounds no area and is rejected rather than silently skipped.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for PolyLoop<'m>
impl<'m> RefUnwindSafe for PolyLoop<'m>
impl<'m> Send for PolyLoop<'m>
impl<'m> Sync for PolyLoop<'m>
impl<'m> Unpin for PolyLoop<'m>
impl<'m> UnsafeUnpin for PolyLoop<'m>
impl<'m> UnwindSafe for PolyLoop<'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