pub struct OrientedEdge<'m> { /* private fields */ }Expand description
IfcOrientedEdge: a reuse of an edge, possibly reversed.
This is the entity that makes edge sharing explicit. Two faces meeting at
one edge each hold an oriented edge pointing at the SAME IfcEdgeCurve,
with opposite Orientation. Resolving through to the underlying edge is
what preserves the manifold; treating each use as its own edge silently
disconnects the solid.
Implementations§
Source§impl<'m> OrientedEdge<'m>
impl<'m> OrientedEdge<'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 IfcOrientedEdge.
Sourcepub fn edge_element(&self) -> GeometryResult<EntityId>
pub fn edge_element(&self) -> GeometryResult<EntityId>
The underlying edge this use points at.
Sourcepub fn orientation(&self) -> bool
pub fn orientation(&self) -> bool
Does this use run along the underlying edge, or against it?
Trait Implementations§
Source§impl<'m> Clone for OrientedEdge<'m>
impl<'m> Clone for OrientedEdge<'m>
Source§fn clone(&self) -> OrientedEdge<'m>
fn clone(&self) -> OrientedEdge<'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 OrientedEdge<'m>
Auto Trait Implementations§
impl<'m> Freeze for OrientedEdge<'m>
impl<'m> RefUnwindSafe for OrientedEdge<'m>
impl<'m> Send for OrientedEdge<'m>
impl<'m> Sync for OrientedEdge<'m>
impl<'m> Unpin for OrientedEdge<'m>
impl<'m> UnsafeUnpin for OrientedEdge<'m>
impl<'m> UnwindSafe for OrientedEdge<'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