pub struct SweptDiskSolid<'m> { /* private fields */ }Expand description
IfcSweptDiskSolid: a circular disk swept along a curve.
This is how pipes, ducts, cable trays and reinforcement bars are modelled.
§Radii
InnerRadius is optional and turns the solid into a tube. It must be
strictly smaller than Radius; a file that violates that describes a solid
with non-positive wall thickness, which is why Self::checked_radii
exists.
§Slot warning
This entity subtypes IfcSolidModel directly, so it has no SweptArea
and no Position. The directrix is absolute slot 0, not slot 2 – assuming
the IfcSweptAreaSolid layout here shifts every attribute by two.
Implementations§
Source§impl<'m> SweptDiskSolid<'m>
impl<'m> SweptDiskSolid<'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 IfcSweptDiskSolid.
Sourcepub fn directrix(&self) -> GeometryResult<EntityId>
pub fn directrix(&self) -> GeometryResult<EntityId>
The IfcCurve reference the disk is swept along.
Sourcepub fn radius(&self) -> GeometryResult<f64>
pub fn radius(&self) -> GeometryResult<f64>
The outer radius, in file length units.
Sourcepub fn inner_radius(&self) -> Option<f64>
pub fn inner_radius(&self) -> Option<f64>
The inner radius, when the solid is a tube rather than a rod.
Sourcepub fn start_param(&self) -> Option<f64>
pub fn start_param(&self) -> Option<f64>
The parameter at which the sweep starts, if trimmed.
Sourcepub fn checked_radii(&self) -> GeometryResult<(f64, Option<f64>)>
pub fn checked_radii(&self) -> GeometryResult<(f64, Option<f64>)>
The radii, rejecting a tube whose bore is at least its outside.
Trait Implementations§
Source§impl<'m> Clone for SweptDiskSolid<'m>
impl<'m> Clone for SweptDiskSolid<'m>
Source§fn clone(&self) -> SweptDiskSolid<'m>
fn clone(&self) -> SweptDiskSolid<'m>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more