pub struct CylindricalSurface<'m> { /* private fields */ }Expand description
A borrowed view of an IfcCylindricalSurface.
Implementations§
Source§impl<'m> CylindricalSurface<'m>
impl<'m> CylindricalSurface<'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 IfcCylindricalSurface.
Sourcepub fn position_ref(&self) -> GeometryResult<EntityId>
pub fn position_ref(&self) -> GeometryResult<EntityId>
The placement; local Z is the cylinder axis.
Sourcepub fn position<'v>(
&self,
model: &'v Model,
) -> GeometryResult<Axis2Placement3D<'v>>
pub fn position<'v>( &self, model: &'v Model, ) -> GeometryResult<Axis2Placement3D<'v>>
The placement as a typed view, resolved from the model.
Self::position_ref returns the raw reference; this resolves it
so callers read location/axis/RefDirection without re-entering the
model themselves.
Sourcepub fn radius(&self) -> GeometryResult<f64>
pub fn radius(&self) -> GeometryResult<f64>
The radius, guaranteed positive.
Sourcepub fn parameter_kinds(&self) -> (ParameterKind, ParameterKind)
pub fn parameter_kinds(&self) -> (ParameterKind, ParameterKind)
u is an angle about the axis, v a length along it.
Trait Implementations§
Source§impl<'m> Clone for CylindricalSurface<'m>
impl<'m> Clone for CylindricalSurface<'m>
impl<'m> Copy for CylindricalSurface<'m>
Auto Trait Implementations§
impl<'m> Freeze for CylindricalSurface<'m>
impl<'m> RefUnwindSafe for CylindricalSurface<'m>
impl<'m> Send for CylindricalSurface<'m>
impl<'m> Sync for CylindricalSurface<'m>
impl<'m> Unpin for CylindricalSurface<'m>
impl<'m> UnsafeUnpin for CylindricalSurface<'m>
impl<'m> UnwindSafe for CylindricalSurface<'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