pub struct TessellatedFaceSet<'m> { /* private fields */ }Expand description
IfcTessellatedFaceSet: the abstract face set, giving access to
Coordinates.
Usable over either concrete face set, since Coordinates is slot 0 in both.
Implementations§
Source§impl<'m> TessellatedFaceSet<'m>
impl<'m> TessellatedFaceSet<'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 IfcTessellatedFaceSet subtype.
Sourcepub fn coordinates(&self) -> GeometryResult<EntityId>
pub fn coordinates(&self) -> GeometryResult<EntityId>
The IfcCartesianPointList3D reference holding the vertices.
Self::coordinate_list resolves it through resource::point, which
owns the point-list view; this module does not define a competing one.
Sourcepub fn coordinate_list<'v>(
&self,
model: &'v Model,
) -> GeometryResult<CartesianPointList3D<'v>>
pub fn coordinate_list<'v>( &self, model: &'v Model, ) -> GeometryResult<CartesianPointList3D<'v>>
The vertex list as a typed view, resolved from the model.
The schema narrows Coordinates to the 3D list, so a 2D list is a
wrong-type error rather than a mesh padded with z = 0. Its
CartesianPointList3D::point takes the 1-based indices of this
module’s faces directly.
Trait Implementations§
Source§impl<'m> Clone for TessellatedFaceSet<'m>
impl<'m> Clone for TessellatedFaceSet<'m>
Source§fn clone(&self) -> TessellatedFaceSet<'m>
fn clone(&self) -> TessellatedFaceSet<'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 TessellatedFaceSet<'m>
Auto Trait Implementations§
impl<'m> Freeze for TessellatedFaceSet<'m>
impl<'m> RefUnwindSafe for TessellatedFaceSet<'m>
impl<'m> Send for TessellatedFaceSet<'m>
impl<'m> Sync for TessellatedFaceSet<'m>
impl<'m> Unpin for TessellatedFaceSet<'m>
impl<'m> UnsafeUnpin for TessellatedFaceSet<'m>
impl<'m> UnwindSafe for TessellatedFaceSet<'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