@pascal-app/ifc-converter 1.0.1 → 1.0.4
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 +64 -4
- package/dist/beam-geometry.d.ts.map +1 -1
- package/dist/beam-geometry.js +3 -2
- package/dist/cleanup.d.ts +8 -1
- package/dist/cleanup.d.ts.map +1 -1
- package/dist/cleanup.js +13 -4
- package/dist/collections.d.ts +4 -0
- package/dist/collections.d.ts.map +1 -0
- package/dist/collections.js +66 -0
- package/dist/export/door-operation.d.ts +13 -0
- package/dist/export/door-operation.d.ts.map +1 -0
- package/dist/export/door-operation.js +45 -0
- package/dist/export/guid.d.ts +15 -0
- package/dist/export/guid.d.ts.map +1 -0
- package/dist/export/guid.js +80 -0
- package/dist/export/ifc-model.d.ts +87 -0
- package/dist/export/ifc-model.d.ts.map +1 -0
- package/dist/export/ifc-model.js +183 -0
- package/dist/export/index.d.ts +3 -0
- package/dist/export/index.d.ts.map +1 -0
- package/dist/export/index.js +2 -0
- package/dist/export/scene-to-ifc.d.ts +45 -0
- package/dist/export/scene-to-ifc.d.ts.map +1 -0
- package/dist/export/scene-to-ifc.js +1123 -0
- package/dist/export/step.d.ts +64 -0
- package/dist/export/step.d.ts.map +1 -0
- package/dist/export/step.js +158 -0
- package/dist/export/wall-base.d.ts +25 -0
- package/dist/export/wall-base.d.ts.map +1 -0
- package/dist/export/wall-base.js +91 -0
- package/dist/ids.d.ts +3 -0
- package/dist/ids.d.ts.map +1 -0
- package/dist/ids.js +35 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +570 -151
- package/dist/room-first.d.ts +35 -0
- package/dist/room-first.d.ts.map +1 -0
- package/dist/room-first.js +885 -0
- package/dist/wall-joins.d.ts +21 -0
- package/dist/wall-joins.d.ts.map +1 -0
- package/dist/wall-joins.js +367 -0
- package/package.json +9 -5
|
@@ -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"}
|