pub fn compile_product_polylines_with<B: PolylineCompiler>(
backend: &B,
model: &Model,
product: EntityId,
purpose: RepresentationPurpose,
tolerance: Tolerance,
) -> GeometryResult<Option<Vec<CompiledPolyline>>>Expand description
The curves of one product’s representation for purpose as
polylines, one per curve in authored order, with a caller-supplied
backend.
Ok(None) when the product has no representation for purpose; an
empty list when it has one with no curves (a solid Body). The chord
budget is tolerance, in metres as for the meshes.
§Errors
Any lowering error, and GeometryError::CompilationRefused, with the
backend’s reason, for a curve the backend refuses. One refused curve
refuses the product: a partial outline is not returned as the whole.