Expand description
Analysis-ready geometry-data export.
A per-entity geometry dump distinct from the render-oriented GLB. Where the GLB is glTF Y-up, recentred, and vertex-duplicated for flat shading, this export is what an analysis consumer wants:
- IFC Z-up (no Y-up rotation — we read
MeshDatabefore the wasm boundary applies it), - absolute world coordinates in metres:
vertex = position + origin + rtc_offset(the per-element local-frameoriginand the modelrtc_offsetare folded back in, and the offset is recorded so geo-referenced consumers can recover or re-localise), - welded / indexed triangles straight from the kernel mesh (the GLB’s per-face duplication happens later, in the glTF exporter),
- occurrences only (
geometry_class == 0); type-product RepresentationMap geometry is omitted, matching what occurrence-based tessellators emit.
Keyed by IFC STEP/express id. Submeshes of one element (per-material splits) are merged into a single triangle soup per id. f64 throughout so building- and geo-referenced-scale coordinates keep full precision.
Structs§
- Exported
Element - One IFC entity’s merged geometry, in IFC Z-up absolute-world metres.
- Geometry
Data Export - Top-level geometry-data document. Serializes to the
ifc-lite-geometry-dataJSON contract.
Functions§
- build_
geometry_ data_ export - Build the geometry-data export from a processed model’s meshes.