Skip to main content

compile_product_curves_with

Function compile_product_curves_with 

Source
pub fn compile_product_curves_with<B: PolylineCompiler>(
    backend: &B,
    model: &Model,
    product: EntityId,
    purpose: RepresentationPurpose,
    tolerance: Tolerance,
) -> GeometryResult<Option<ProductPolylines>>
Expand description

The curves of one product’s representation for purpose as polylines, leaving its text literals and fill areas to their readers (#512), with a caller-supplied backend.

As compile_product_polylines_with, except that each IfcTextLiteral, IfcTextLiteralWithExtent and IfcAnnotationFillArea among the representation’s own Items is not lowered but listed in ProductPolylines::skipped: a dimension (polylines and its value as text) gives its polylines. Ok(None) when the product has no representation for purpose.

§Errors

Any lowering error of an item not skipped, and GeometryError::CompilationRefused for a curve the backend refuses. One refused curve refuses the product.