pub struct GeometricSet<'m> { /* private fields */ }Expand description
IfcGeometricSet: a heterogeneous collection of points, curves and
surfaces.
Elements is an IfcGeometricSetSelect, whose members may be IfcPoint,
IfcCurve or IfcSurface. The schema requires every member to share the
same dimensionality, but nothing more: a set may mix a curve and a surface
freely. Consumers must dispatch per element rather than sampling the first.
Implementations§
Source§impl<'m> GeometricSet<'m>
impl<'m> GeometricSet<'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 IfcGeometricSet or subtype.
Sourcepub fn elements(&self) -> GeometryResult<Vec<EntityId>>
pub fn elements(&self) -> GeometryResult<Vec<EntityId>>
The IfcGeometricSetSelect references in the set.
Returned unresolved and unsorted: each may be a point, a curve or (on the base type only) a surface.
Sourcepub fn is_curve_set(&self) -> bool
pub fn is_curve_set(&self) -> bool
Is this the curves-and-points-only specialisation?
Trait Implementations§
Source§impl<'m> Clone for GeometricSet<'m>
impl<'m> Clone for GeometricSet<'m>
impl<'m> Copy for GeometricSet<'m>
Auto Trait Implementations§
impl<'m> Freeze for GeometricSet<'m>
impl<'m> RefUnwindSafe for GeometricSet<'m>
impl<'m> Send for GeometricSet<'m>
impl<'m> Sync for GeometricSet<'m>
impl<'m> Unpin for GeometricSet<'m>
impl<'m> UnsafeUnpin for GeometricSet<'m>
impl<'m> UnwindSafe for GeometricSet<'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