pub fn profile_outline(
model: &Model,
units: &UnitScale,
profile: EntityId,
) -> GeometryResult<ProfileOutline>Expand description
Read an arbitrary closed profile’s outline, in metres.
Accepts IfcArbitraryClosedProfileDef and
IfcArbitraryProfileDefWithVoids whose boundaries are IfcPolylines or
line-only IfcIndexedPolyCurves. Refused, each naming the entity:
- any other profile family, and any other boundary curve family, as
GeometryError::Unsupported; - an
IfcArcIndexsegment, asGeometryError::Unsupported: the outline states straight edges only; - a 3D point, a ring of fewer than three distinct vertices, indexed
segments that do not join, or an open
IfcIndexedPolyCurve, asGeometryError::Degenerate; - whatever
describe_profilerefuses for the profile itself.
Kernel-free.