pub struct SurfaceOfRevolution<'m> { /* private fields */ }Expand description
A borrowed view of an IfcSurfaceOfRevolution.
Implementations§
Source§impl<'m> SurfaceOfRevolution<'m>
impl<'m> SurfaceOfRevolution<'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 IfcSurfaceOfRevolution.
Sourcepub fn swept_curve_ref(&self) -> GeometryResult<EntityId>
pub fn swept_curve_ref(&self) -> GeometryResult<EntityId>
The IfcProfileDef whose outer curve is revolved.
Stays a reference for the same reason as
SurfaceOfLinearExtrusion::swept_curve_ref:
crate::describe_profile owns profile reading.
Sourcepub fn position_ref(&self) -> Option<EntityId>
pub fn position_ref(&self) -> Option<EntityId>
The optional placement of the profile’s coordinate system.
Sourcepub fn position<'v>(
&self,
model: &'v Model,
) -> GeometryResult<Option<Axis2Placement3D<'v>>>
pub fn position<'v>( &self, model: &'v Model, ) -> GeometryResult<Option<Axis2Placement3D<'v>>>
The placement as a typed view; Ok(None) when absent.
Sourcepub fn axis_position_ref(&self) -> GeometryResult<EntityId>
pub fn axis_position_ref(&self) -> GeometryResult<EntityId>
The IfcAxis1Placement giving the axis of revolution.
Carries a location and a direction. Both are needed: the offset between the axis and the profile is what makes the surface a torus rather than a sphere.
Sourcepub fn axis_position<'v>(
&self,
model: &'v Model,
) -> GeometryResult<Axis1Placement<'v>>
pub fn axis_position<'v>( &self, model: &'v Model, ) -> GeometryResult<Axis1Placement<'v>>
The axis of revolution as a typed view, resolved from the model.
An IfcAxis1Placement only: a 2D or 3D axis-2 placement is not what
the schema declares, and reading its RefDirection as the axis would
revolve about the wrong line.
Trait Implementations§
Source§impl<'m> Clone for SurfaceOfRevolution<'m>
impl<'m> Clone for SurfaceOfRevolution<'m>
Source§fn clone(&self) -> SurfaceOfRevolution<'m>
fn clone(&self) -> SurfaceOfRevolution<'m>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more