brepjs-bim 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,10 +21,17 @@ useful downstream (psets, classification, materials, quantities), with import, e
21
21
  validation. Geometry is produced by brepjs (OCCT); each element carries a `ValidSolid` (or, for
22
22
  curtain walls, a panel/mullion grid). Element geometry is **unplaced template geometry** in local
23
23
  coordinates — placement (`origin` / `axisX` / `axisZ`) is applied by the IFC layer via
24
- `IfcLocalPlacement`, not baked into the brepjs solid.
24
+ `IfcLocalPlacement`, not baked into the brepjs solid. Use `placedSolids(element)` to read an
25
+ element's geometry already transformed to its world placement as fresh, caller-owned solids
26
+ (stairs return one solid per flight) — handy for display so the on-screen scene matches the IFC
27
+ export.
25
28
 
26
29
  - Units default to mm; IFC export emits SI metres.
27
30
  - Stable identity: deterministic IFC GUIDs (`deriveIfcGuid`) and local id counters.
31
+ - Shaped geometry: roofs build real shed/gable/hip/dome solids when `pitch` is set (flat slab
32
+ otherwise); railings build posts + top/bottom rails with `infill: 'POSTED'` (a single swept panel
33
+ otherwise). Shaped roofs and posted railings serialize to IFC as tessellated bodies; flat roofs
34
+ and panel railings keep their parametric `IfcExtrudedAreaSolid`.
28
35
 
29
36
  ## Status
30
37