Skip to main content

revolved_area_solid

Function revolved_area_solid 

Source
pub fn revolved_area_solid(
    tx: &mut Transaction,
    swept_area: EntityId,
    position: Option<EntityId>,
    axis: EntityId,
    angle: f64,
) -> Result<EntityId, GeometryError>
Expand description

Stage an IfcRevolvedAreaSolid.

angle is in radians, matching the unit-normalised form the reader produces. A caller working in degrees converts before this point.

ยงErrors

Refuses a non-finite angle, and one outside (0, 2*pi]. Zero sweeps nothing; beyond a full turn the solid would self-overlap, which IFC does not define.