pub fn swept_disk_solid_in(
tx: &mut Transaction,
model: &Model,
directrix: EntityId,
radius: f64,
inner_radius: Option<f64>,
trim: SweepTrim,
) -> Result<EntityId, GeometryError>Expand description
Stage an IfcSweptDiskSolid in model’s declared release: a disk swept
along a curve.
Note the slot layout: this subtypes IfcSolidModel directly, so
Directrix is slot 0 and there is no SweptArea or Position.
The trim parameters are IfcParameterValue, written bare, in every
release; what changes is whether they may be left out:
IFC2X3 StartParam : IfcParameterValue (required)
IFC4 StartParam : OPTIONAL IfcParameterValue
IFC4X3 StartParam : OPTIONAL IfcParameterValueAn IFC2X3 swept disk therefore needs both trim values; the writer does
not invent the directrix’s full range, which only an evaluator knows. A
model without FILE_SCHEMA binds IFC4.
§Errors
GeometryError::InvalidAuthoredValue for a non-positive radius or
inner radius, an inner radius that is not smaller than the outer one (a
bore wider than its tube leaves no solid), a non-finite trim parameter,
or, in IFC2X3, an unset StartParam or EndParam.
GeometryError::AuthoringSchemaUnbound if FILE_SCHEMA names an
unknown release or several. Nothing is staged on error.