pub struct RevolvedAreaSolid<'m> { /* private fields */ }Expand description
IfcRevolvedAreaSolid: a profile swept about an axis.
§The angle-unit trap
Angle is an IfcPlaneAngleMeasure, expressed in the file’s declared
angle unit. That is very often degrees: IFC exporters routinely declare
the plane angle unit as DEGREE through a conversion-based unit. Treating a
90 as radians yields fourteen full turns.
This view returns the raw number deliberately. Converting is
crate::units’s responsibility and must be applied exactly once.
Implementations§
Source§impl<'m> RevolvedAreaSolid<'m>
impl<'m> RevolvedAreaSolid<'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 IfcRevolvedAreaSolid.
Sourcepub fn base(&self) -> SweptAreaSolid<'m>
pub fn base(&self) -> SweptAreaSolid<'m>
The inherited IfcSweptAreaSolid attributes.
Sourcepub fn axis(&self) -> GeometryResult<EntityId>
pub fn axis(&self) -> GeometryResult<EntityId>
The IfcAxis1Placement reference giving the axis of revolution.
Expressed in the Position coordinate system, and its own Axis
attribute is itself optional, defaulting to +Z of that placement.
Sourcepub fn angle_raw(&self) -> GeometryResult<f64>
pub fn angle_raw(&self) -> GeometryResult<f64>
The sweep angle in the file’s angle unit, unconverted.
Trait Implementations§
Source§impl<'m> Clone for RevolvedAreaSolid<'m>
impl<'m> Clone for RevolvedAreaSolid<'m>
Source§fn clone(&self) -> RevolvedAreaSolid<'m>
fn clone(&self) -> RevolvedAreaSolid<'m>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more