@pascal-app/ifc-converter 1.0.3 → 1.0.5

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.
Files changed (43) hide show
  1. package/README.md +63 -4
  2. package/dist/beam-geometry.d.ts.map +1 -1
  3. package/dist/beam-geometry.js +3 -2
  4. package/dist/cleanup.d.ts +8 -1
  5. package/dist/cleanup.d.ts.map +1 -1
  6. package/dist/cleanup.js +13 -4
  7. package/dist/collections.d.ts +4 -0
  8. package/dist/collections.d.ts.map +1 -0
  9. package/dist/collections.js +66 -0
  10. package/dist/export/door-operation.d.ts +13 -0
  11. package/dist/export/door-operation.d.ts.map +1 -0
  12. package/dist/export/door-operation.js +45 -0
  13. package/dist/export/guid.d.ts +15 -0
  14. package/dist/export/guid.d.ts.map +1 -0
  15. package/dist/export/guid.js +80 -0
  16. package/dist/export/ifc-model.d.ts +91 -0
  17. package/dist/export/ifc-model.d.ts.map +1 -0
  18. package/dist/export/ifc-model.js +184 -0
  19. package/dist/export/index.d.ts +3 -0
  20. package/dist/export/index.d.ts.map +1 -0
  21. package/dist/export/index.js +2 -0
  22. package/dist/export/scene-to-ifc.d.ts +45 -0
  23. package/dist/export/scene-to-ifc.d.ts.map +1 -0
  24. package/dist/export/scene-to-ifc.js +1175 -0
  25. package/dist/export/step.d.ts +64 -0
  26. package/dist/export/step.d.ts.map +1 -0
  27. package/dist/export/step.js +158 -0
  28. package/dist/export/wall-base.d.ts +25 -0
  29. package/dist/export/wall-base.d.ts.map +1 -0
  30. package/dist/export/wall-base.js +91 -0
  31. package/dist/ids.d.ts +3 -0
  32. package/dist/ids.d.ts.map +1 -0
  33. package/dist/ids.js +35 -0
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +570 -151
  37. package/dist/room-first.d.ts +35 -0
  38. package/dist/room-first.d.ts.map +1 -0
  39. package/dist/room-first.js +885 -0
  40. package/dist/wall-joins.d.ts +21 -0
  41. package/dist/wall-joins.d.ts.map +1 -0
  42. package/dist/wall-joins.js +367 -0
  43. package/package.json +10 -6
@@ -0,0 +1,35 @@
1
+ import { type AnyNode } from '@pascal-app/core';
2
+ /**
3
+ * Maps IFC floors, finishes, ceilings and open-plan spaces onto Pascal's
4
+ * room-first structure. The importer only writes intent — room zones with
5
+ * seeds, separators, floor-plate templates, floor/ceiling links — and the
6
+ * scene load migrations (M3 room adoption, M4 plates) plus the structure
7
+ * kernel derive the actual rooms, plates and ceilings from it. Room faces are
8
+ * previewed with the same M3 migration the loader runs, so decisions here are
9
+ * made on the rooms the scene will actually have.
10
+ */
11
+ type SceneNodes = Record<string, AnyNode>;
12
+ type Point = [number, number];
13
+ export type RoomFirstStats = {
14
+ separators: number;
15
+ floorPlates: number;
16
+ manualFloors: number;
17
+ roomFinishes: number;
18
+ linkedCeilings: number;
19
+ floorOpenings: number;
20
+ };
21
+ /**
22
+ * Walls are processed on their body centrelines; an IFC reference line on a
23
+ * wall face comes back here as Pascal `justification` (a = body left of the
24
+ * directed line, b = right), with start/end on that face line.
25
+ *
26
+ * The wall graph joins walls where their reference endpoints meet, so each
27
+ * junction the centrelines made is rebuilt on the reference lines: an L at the
28
+ * two lines' intersection, a T where the stem's line meets the host's. A
29
+ * junction whose reference lines cannot meet in one point (three or more ends,
30
+ * or in-line walls offset differently) keeps its walls centred.
31
+ */
32
+ export declare function applyWallReferenceLines(nodes: SceneNodes, bodySides: ReadonlyMap<string, Point>): void;
33
+ export declare function applyRoomFirstStructure(nodes: SceneNodes, wallBodySides: ReadonlyMap<string, Point>): RoomFirstStats;
34
+ export {};
35
+ //# sourceMappingURL=room-first.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"room-first.d.ts","sourceRoot":"","sources":["../src/room-first.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EAeb,MAAM,kBAAkB,CAAA;AAIzB;;;;;;;;GAQG;AAEH,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AACzC,KAAK,KAAK,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAE7B,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AA4DD;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,QAgH/F;AA4uBD,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,UAAU,EACjB,aAAa,EAAE,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,GACxC,cAAc,CAoChB"}