pub struct OffsetCurve3D<'m> { /* private fields */ }Expand description
A borrowed view of an IfcOffsetCurve3D.
Implementations§
Source§impl<'m> OffsetCurve3D<'m>
impl<'m> OffsetCurve3D<'m>
Sourcepub fn new(id: EntityId, entity: &'m Entity) -> Self
pub fn new(id: EntityId, entity: &'m Entity) -> Self
Wrap an entity known to be an IfcOffsetCurve3D.
Sourcepub fn basis_curve_ref(&self) -> GeometryResult<EntityId>
pub fn basis_curve_ref(&self) -> GeometryResult<EntityId>
The curve being offset.
Sourcepub fn distance(&self) -> GeometryResult<f64>
pub fn distance(&self) -> GeometryResult<f64>
The offset distance; the sign selects which side.
Sourcepub fn self_intersect(&self) -> Option<bool>
pub fn self_intersect(&self) -> Option<bool>
The asserted SelfIntersect flag; None for .U. or absent.
Sourcepub fn ref_direction_ref(&self) -> GeometryResult<EntityId>
pub fn ref_direction_ref(&self) -> GeometryResult<EntityId>
The IfcDirection fixing which perpendicular the offset uses.
Required by the schema and genuinely required by the geometry: without it the offset direction is only known up to rotation about the tangent.
Sourcepub fn ref_direction<'v>(
&self,
model: &'v Model,
) -> GeometryResult<Direction<'v>>
pub fn ref_direction<'v>( &self, model: &'v Model, ) -> GeometryResult<Direction<'v>>
The reference direction as a typed view, resolved from the model.
Left unnormalized: call Direction::unit, which rejects a zero
direction rather than producing NaN.
Trait Implementations§
Source§impl<'m> Clone for OffsetCurve3D<'m>
impl<'m> Clone for OffsetCurve3D<'m>
Source§fn clone(&self) -> OffsetCurve3D<'m>
fn clone(&self) -> OffsetCurve3D<'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 OffsetCurve3D<'m>
Auto Trait Implementations§
impl<'m> Freeze for OffsetCurve3D<'m>
impl<'m> RefUnwindSafe for OffsetCurve3D<'m>
impl<'m> Send for OffsetCurve3D<'m>
impl<'m> Sync for OffsetCurve3D<'m>
impl<'m> Unpin for OffsetCurve3D<'m>
impl<'m> UnsafeUnpin for OffsetCurve3D<'m>
impl<'m> UnwindSafe for OffsetCurve3D<'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