Skip to main content

compile_sweep_directrix_with

Function compile_sweep_directrix_with 

Source
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 IfcLengthMeasure StartParam/EndParam, which is a distance along the directrix, as Unsupported;
  • one of StartParam/EndParam without the other, as Degenerate;
  • a dangling directrix or Position, as MissingEntity;
  • a directrix the backend refuses, as CompilationRefused.

§Errors

As above, plus whatever lowering the directrix and unit resolution refuse.