Skip to main content

swept_disk_solid_polygonal

Function swept_disk_solid_polygonal 

Source
pub fn swept_disk_solid_polygonal(
    tx: &mut Transaction,
    directrix: EntityId,
    radius: f64,
    inner_radius: Option<f64>,
    trim: SweepTrim,
    fillet_radius: Option<f64>,
) -> Result<EntityId, GeometryError>
Expand description

Stage an IfcSweptDiskSolidPolygonal.

The polygonal form approximates the directrix with straight segments; fillet_radius rounds the joints between them.

Only IFC4 and later declare it, and there StartParam/EndParam are OPTIONAL IfcParameterValue in every release, so the record does not depend on the release and this writer needs no model.

ยงErrors

Everything swept_disk_solid_in refuses for the radii and trim values, plus a negative fillet radius. Zero is legal: IfcNonNegativeLengthMeasure means a sharp joint, not an error.