pub struct TriangulatedIrregularNetwork<'m> { /* private fields */ }Expand description
IfcTriangulatedIrregularNetwork: a triangulated face set with per-triangle flags.
Implementations§
Source§impl<'m> TriangulatedIrregularNetwork<'m>
impl<'m> TriangulatedIrregularNetwork<'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 IfcTriangulatedIrregularNetwork.
Sourcepub fn face_set(&self) -> TriangulatedFaceSet<'m>
pub fn face_set(&self) -> TriangulatedFaceSet<'m>
The inherited IfcTriangulatedFaceSet attributes.
Sourcepub fn flags(&self) -> GeometryResult<Vec<i64>>
pub fn flags(&self) -> GeometryResult<Vec<i64>>
Flags exactly as written, one value per triangle.
Sourcepub fn admit(&self, triangles: usize) -> GeometryResult<()>
pub fn admit(&self, triangles: usize) -> GeometryResult<()>
Admit the network for lowering as its triangle surface, or refuse it.
Breakline codes (0 to 7) are admitted: they mark existing edges and
leave the surface unchanged. Voids and holes are refused because the
surface excludes those triangles. Undocumented codes are refused.
§Errors
Degenerate when Flags does not hold one value per triangle;
Unsupported for a void, a hole or an undocumented code.
Trait Implementations§
Source§impl<'m> Clone for TriangulatedIrregularNetwork<'m>
impl<'m> Clone for TriangulatedIrregularNetwork<'m>
Source§fn clone(&self) -> TriangulatedIrregularNetwork<'m>
fn clone(&self) -> TriangulatedIrregularNetwork<'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 TriangulatedIrregularNetwork<'m>
Auto Trait Implementations§
impl<'m> Freeze for TriangulatedIrregularNetwork<'m>
impl<'m> RefUnwindSafe for TriangulatedIrregularNetwork<'m>
impl<'m> Send for TriangulatedIrregularNetwork<'m>
impl<'m> Sync for TriangulatedIrregularNetwork<'m>
impl<'m> Unpin for TriangulatedIrregularNetwork<'m>
impl<'m> UnsafeUnpin for TriangulatedIrregularNetwork<'m>
impl<'m> UnwindSafe for TriangulatedIrregularNetwork<'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