pub fn compile_sweep_directrix_with<B: PolylineCompiler>(
backend: &B,
model: &Model,
sweep: EntityId,
frame: Transform,
tolerance: Tolerance,
) -> GeometryResult<CompiledPolyline>Expand description
sweep’s directrix as a polyline in frame, sampled by backend within
tolerance.
Accepts IfcSweptDiskSolid, IfcSweptDiskSolidPolygonal,
IfcFixedReferenceSweptAreaSolid,
IfcDirectrixDerivedReferenceSweptAreaSolid and
IfcSurfaceCurveSweptAreaSolid. StartParam/EndParam are applied in
the directrix’s own parameterisation, as the sweep’s lowering applies them;
an IfcCompositeCurve directrix is cut structurally. The result’s
curve is the directrix and its deviation the backend’s certified bound.
The FilletRadius of an IfcSweptDiskSolidPolygonal is not applied: the
polyline is the authored directrix, with sharp corners.
The directrix of a swept-area sweep is placed by the sweep’s Position
(identity when absent) and then by frame; a swept disk has no Position.
A ranged directrix that is a curve relation is trimmed again by the
kernel.
Refused, each naming the sweep:
- any other entity, as
GeometryError::Unsupported; - an IFC4X3
IfcLengthMeasureStartParam/EndParam, which is a distance along the directrix, asUnsupported; - one of
StartParam/EndParamwithout the other, asDegenerate; - a dangling directrix or
Position, asMissingEntity; - a directrix the backend refuses, as
CompilationRefused.
§Errors
As above, plus whatever lowering the directrix and unit resolution refuse.