Skip to main content

Module curves

Module curves 

Source
Expand description

Polylines per product for the hosts (#458): the curves of a curve representation (Axis, FootPrint, an annotation’s curves), compiled by the reference backend. The facade’s product_curves.

One product is one record and one f32 array: every polyline’s vertices back to back, x, y, z in metres relative to the product’s world placement, as a mesh’s are, so a host draws them with the same matrix. Each ProductPolyline names its slice (first_vertex, vertex_count), whether it is closed (its last vertex repeats its first), and the certified bound on how far the exact curve lies from it. Trimmed, composite, offset and intrinsic curves compile (#506). A product the backend refuses carries a typed GeometryRefusal: a curve the reference compiler has no certified polyline for (an implicit curve, an offset of an offset) is unsupported, naming the product, its message the compiler’s reason. A representation that also holds text or a fill area (a dimension and its value) gives its curves: each IfcTextLiteral, IfcTextLiteralWithExtent and IfcAnnotationFillArea among its items is not drawn and is listed by id in ProductCurves::skipped (#512).

Structs§

ProductCurves
One product’s curves as polylines.
ProductPolyline
One curve of a product, as a slice of its positions.