pub fn compile_profile_outline_with<B: PolylineCompiler>(
backend: &B,
model: &Model,
profile: EntityId,
tolerance: Tolerance,
) -> GeometryResult<SampledProfileOutline>Expand description
Read an arbitrary profile’s outline in metres, sampling each arc with
backend within tolerance.
Accepts IfcArbitraryClosedProfileDef and
IfcArbitraryProfileDefWithVoids whose boundaries are IfcPolylines or
IfcIndexedPolyCurves. Refused, each naming the entity:
- any other profile family, and any other boundary curve family, as
GeometryError::Unsupported; - what
crate::profile_outlinerefuses asDegenerate: a 3D point, a ring of fewer than three distinct vertices, segments that do not join, an open indexed curve, and anIfcArcIndexof coincident points; - a sampled arc vertex off the profile plane by more than the linear
tolerance, as
GeometryError::Degenerate; - an arc the backend refuses, returns fewer than two vertices for,
runs backwards, or ends more than the linear tolerance from the
authored end points, as
GeometryError::CompilationRefusednaming the boundary curve.
§Errors
As above, plus whatever crate::describe_profile and unit resolution
refuse.