pub struct Subedge<'m> { /* private fields */ }Expand description
IfcSubedge: an edge carved from a longer parent edge.
The subedge states its own EdgeStart/EdgeEnd; ParentEdge supplies
the carrier geometry the subedge is a piece of. The parent may itself be
a subedge, so resolving the carrier is a walk, not a single hop.
Implementations§
Source§impl<'m> Subedge<'m>
impl<'m> Subedge<'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 IfcSubedge.
Sourcepub fn start(&self) -> GeometryResult<EntityId>
pub fn start(&self) -> GeometryResult<EntityId>
EdgeStart, the vertex the carved piece starts at.
Sourcepub fn end(&self) -> GeometryResult<EntityId>
pub fn end(&self) -> GeometryResult<EntityId>
EdgeEnd, the vertex the carved piece ends at.
Sourcepub fn parent_edge(&self) -> GeometryResult<EntityId>
pub fn parent_edge(&self) -> GeometryResult<EntityId>
ParentEdge, mandatory: without it a subedge carves nothing.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Subedge<'m>
impl<'m> RefUnwindSafe for Subedge<'m>
impl<'m> Send for Subedge<'m>
impl<'m> Sync for Subedge<'m>
impl<'m> Unpin for Subedge<'m>
impl<'m> UnsafeUnpin for Subedge<'m>
impl<'m> UnwindSafe for Subedge<'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