pub struct EdgeCurve<'m> { /* private fields */ }Expand description
IfcEdge and its IfcEdgeCurve subtype: a bounded piece of a curve.
EdgeStart/EdgeEnd are IfcVertex references, not points. An
IfcEdgeCurve adds the supporting curve and a sense flag saying whether
the edge runs along the curve or against it.
Implementations§
Source§impl<'m> EdgeCurve<'m>
impl<'m> EdgeCurve<'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 IfcEdge or IfcEdgeCurve.
Sourcepub fn start(&self) -> GeometryResult<EntityId>
pub fn start(&self) -> GeometryResult<EntityId>
The start vertex reference.
Sourcepub fn end(&self) -> GeometryResult<EntityId>
pub fn end(&self) -> GeometryResult<EntityId>
The end vertex reference.
Sourcepub fn edge_geometry(&self) -> Option<EntityId>
pub fn edge_geometry(&self) -> Option<EntityId>
The supporting curve, absent on a plain IfcEdge.
A plain edge is straight between its vertices, so None is a complete
description rather than a missing value.
Sourcepub fn same_sense(&self) -> bool
pub fn same_sense(&self) -> bool
Does the edge run along the curve’s own direction?
Defaults to true when absent. A false flag reverses the edge relative to its curve, which matters for any parameterised traversal.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for EdgeCurve<'m>
impl<'m> RefUnwindSafe for EdgeCurve<'m>
impl<'m> Send for EdgeCurve<'m>
impl<'m> Sync for EdgeCurve<'m>
impl<'m> Unpin for EdgeCurve<'m>
impl<'m> UnsafeUnpin for EdgeCurve<'m>
impl<'m> UnwindSafe for EdgeCurve<'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