pub struct ConnectionGeometry<'m> { /* private fields */ }Expand description
A borrowed view of any IfcConnectionGeometry subtype.
Implementations§
Source§impl<'m> ConnectionGeometry<'m>
impl<'m> ConnectionGeometry<'m>
Sourcepub fn new(id: EntityId, entity: &'m Entity) -> Option<Self>
pub fn new(id: EntityId, entity: &'m Entity) -> Option<Self>
Wrap an entity, or None if it is not a connection geometry.
Sourcepub fn kind(&self) -> ConnectionKind
pub fn kind(&self) -> ConnectionKind
Which kind of connection this is.
Sourcepub fn at_relating(&self) -> GeometryResult<EntityId>
pub fn at_relating(&self) -> GeometryResult<EntityId>
Geometry in the relating element’s coordinate system.
Geometry in the related element’s coordinate system, if given.
Optional because the two ends often coincide, in which case the file states the geometry once.
Sourcepub fn eccentricity(&self) -> Option<[f64; 3]>
pub fn eccentricity(&self) -> Option<[f64; 3]>
Eccentricity offsets, for IfcConnectionPointEccentricity only.
Returns None for every other kind rather than silently reporting
zeros, because “no eccentricity modelled” and “eccentricity of zero”
are different statements about a structural joint.
Trait Implementations§
Source§impl<'m> Clone for ConnectionGeometry<'m>
impl<'m> Clone for ConnectionGeometry<'m>
impl<'m> Copy for ConnectionGeometry<'m>
Auto Trait Implementations§
impl<'m> Freeze for ConnectionGeometry<'m>
impl<'m> RefUnwindSafe for ConnectionGeometry<'m>
impl<'m> Send for ConnectionGeometry<'m>
impl<'m> Sync for ConnectionGeometry<'m>
impl<'m> Unpin for ConnectionGeometry<'m>
impl<'m> UnsafeUnpin for ConnectionGeometry<'m>
impl<'m> UnwindSafe for ConnectionGeometry<'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