@bitbybit-dev/ifc 1.5.0-rc.0 → 1.6.0-rc.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.
Files changed (97) hide show
  1. package/README.md +11 -5
  2. package/lib/api/dto-registry.js +3 -1
  3. package/lib/api/ifc-service.d.ts +10 -5
  4. package/lib/api/ifc-service.js +7 -5
  5. package/lib/api/inputs/ifc-inputs.d.ts +121 -5
  6. package/lib/api/inputs/ifc-inputs.js +162 -5
  7. package/lib/api/resolved-inputs/index.d.ts +6 -3
  8. package/lib/api/services/doors.js +4 -1
  9. package/lib/api/services/elements.d.ts +28 -0
  10. package/lib/api/services/elements.js +60 -0
  11. package/lib/api/services/geometry.js +3 -3
  12. package/lib/api/services/index.d.ts +1 -0
  13. package/lib/api/services/index.js +1 -0
  14. package/lib/api/services/member-support.js +2 -2
  15. package/lib/api/services/model.js +3 -3
  16. package/lib/api/services/openings.js +16 -11
  17. package/lib/api/services/properties.js +4 -3
  18. package/lib/api/services/site.js +3 -1
  19. package/lib/api/services/spaces.js +1 -0
  20. package/lib/api/services/walls.d.ts +7 -5
  21. package/lib/api/services/walls.js +15 -7
  22. package/lib/api/services/windows.js +5 -2
  23. package/lib/build/assemblies.js +1 -1
  24. package/lib/build/bodied-elements.d.ts +5 -0
  25. package/lib/build/bodied-elements.js +35 -0
  26. package/lib/build/build-types.d.ts +29 -2
  27. package/lib/build/checks.d.ts +2 -0
  28. package/lib/build/checks.js +14 -0
  29. package/lib/build/clipping-registry.d.ts +3 -0
  30. package/lib/build/clipping-registry.js +39 -0
  31. package/lib/build/constants.d.ts +0 -1
  32. package/lib/build/constants.js +0 -1
  33. package/lib/build/entity-writer.js +4 -6
  34. package/lib/build/exact-bodies.d.ts +4 -0
  35. package/lib/build/exact-bodies.js +273 -0
  36. package/lib/build/fillings.js +1 -1
  37. package/lib/build/math.d.ts +3 -2
  38. package/lib/build/math.js +24 -16
  39. package/lib/build/measure.js +11 -11
  40. package/lib/build/moving.js +12 -11
  41. package/lib/build/openings.js +1 -1
  42. package/lib/build/outlines.d.ts +2 -0
  43. package/lib/build/outlines.js +14 -2
  44. package/lib/build/placement.js +4 -3
  45. package/lib/build/project.js +1 -1
  46. package/lib/build/quantities.js +13 -11
  47. package/lib/build/roof-clipping.js +5 -5
  48. package/lib/build/roofs.js +17 -16
  49. package/lib/build/site.js +9 -13
  50. package/lib/build/slab-openings.js +4 -4
  51. package/lib/build/slabs-columns-beams.js +16 -19
  52. package/lib/build/solids.js +3 -2
  53. package/lib/build/spaces.js +8 -6
  54. package/lib/build/spatial.js +1 -1
  55. package/lib/build/wall-edits.js +21 -15
  56. package/lib/build/wall-geometry.d.ts +2 -1
  57. package/lib/build/wall-geometry.js +48 -18
  58. package/lib/build/wall-parameters.js +7 -3
  59. package/lib/build/walls.js +15 -8
  60. package/lib/geometry/advanced.js +12 -13
  61. package/lib/geometry/curves.d.ts +2 -1
  62. package/lib/geometry/curves.js +27 -10
  63. package/lib/geometry/edges.js +6 -9
  64. package/lib/geometry/elements.d.ts +1 -1
  65. package/lib/geometry/elements.js +22 -5
  66. package/lib/geometry/exact-brep.constants.d.ts +1 -0
  67. package/lib/geometry/exact-brep.constants.js +1 -0
  68. package/lib/geometry/exact-brep.d.ts +11 -0
  69. package/lib/geometry/exact-brep.js +371 -0
  70. package/lib/geometry/faceted.d.ts +1 -0
  71. package/lib/geometry/faceted.js +20 -8
  72. package/lib/geometry/geometry-types.d.ts +9 -1
  73. package/lib/geometry/groups.js +2 -1
  74. package/lib/geometry/items.d.ts +2 -0
  75. package/lib/geometry/items.js +34 -5
  76. package/lib/geometry/operators.js +1 -1
  77. package/lib/geometry/profiles.js +9 -5
  78. package/lib/geometry/surfaces.constants.d.ts +1 -0
  79. package/lib/geometry/surfaces.constants.js +1 -0
  80. package/lib/geometry/surfaces.d.ts +1 -1
  81. package/lib/geometry/surfaces.js +8 -6
  82. package/lib/geometry/swept-solids.constants.d.ts +1 -0
  83. package/lib/geometry/swept-solids.constants.js +1 -0
  84. package/lib/geometry/swept-solids.js +22 -12
  85. package/lib/model/io.js +1 -1
  86. package/lib/model/owner-history.d.ts +2 -0
  87. package/lib/model/owner-history.js +101 -0
  88. package/lib/model/snapshot.d.ts +1 -0
  89. package/lib/model/snapshot.js +4 -0
  90. package/lib/model/transaction.js +19 -10
  91. package/lib/model/upgrade-rows.d.ts +26 -0
  92. package/lib/model/upgrade-rows.js +240 -0
  93. package/lib/model/upgrade-types.d.ts +9 -0
  94. package/lib/model/upgrade-types.js +1 -0
  95. package/lib/model/upgrade.js +20 -7
  96. package/lib/schema/registry.js +1 -1
  97. package/package.json +2 -3
package/README.md CHANGED
@@ -55,24 +55,26 @@ Run it with `npx tsx house.ts`. Compiled to JavaScript, run it as `node --import
55
55
  - **Ids of your own.** Give an element an `id` such as `"north-wall"` and refer to it by that id later; the model derives the element's GlobalId from it and the project's GlobalId, so it is unique to the model. Wherever an existing object is named, its 22-character GlobalId works as well as its id. With a `seed` on `model.create` and a fixed `timeStamp` on `model.write`, the same calls always write the same file.
56
56
  - **Units and axes.** Lengths are in the model's unit: millimetres unless the model was created with another `lengthUnit`. A length left out takes its default in that unit, so a wall is 3000 mm high in a model in millimetres and 3 m high in one in metres. Positions on a storey are given in its plan, `[x, y]`, with Z up from the storey's floor, as IFC has it.
57
57
  - **Standard elements.** Walls keep their axis (`Plan/Axis`), layer set usage and a swept-solid body, and joins are recorded as `IfcRelConnectsPathElements`, so tools that edit IFC walls edit them as walls. Joins and roof clippings are worked out again from those whenever a wall changes.
58
- - **Reading and writing.** `model.read` takes the file's text, a `Uint8Array` or an `ArrayBuffer`, indexes it without decoding it and decodes an entity only when asked, so a file of hundreds of megabytes opens in seconds. Entities left unchanged are written back as they were, with the line breaks and comments between them: `model.writeBytes` copies them byte for byte at any size, and `model.write` gives the same file as text, up to the length one JavaScript string holds. A file that breaks the encoding, holds an entity id twice or names a type or schema this library does not read fails with a `StepSyntaxError` naming the byte offset, when the broken part is first read. A value given to a model that its schema does not accept fails at once with an `IfcValueError` naming the entity and the attribute.
59
- - **Geometry as data.** `geometry.recipe` describes the elements' solids as a recipe (`Base.Recipe`): polygons, extrusions, cuts by planes, openings and shared type geometry, every number resolved. `manifold.recipes.build` in [@bitbybit-dev/manifold](https://www.npmjs.com/package/@bitbybit-dev/manifold) builds it into one solid per element, which the renderer packages draw, and `occt.recipes.build` in [@bitbybit-dev/occt](https://www.npmjs.com/package/@bitbybit-dev/occt) builds it exactly, to measure or export to STEP; `geometry.unsupported` says which elements it could not describe, and why. In a browser, [@bitbybit-dev/ifc-worker](https://www.npmjs.com/package/@bitbybit-dev/ifc-worker) runs this library in a web worker.
58
+ - **Reading and writing.** `model.read` takes the file's text, a `Uint8Array` or an `ArrayBuffer`, of an `.ifc` file or an `.ifczip` archive, indexes it without decoding it and decodes an entity only when asked, so a file of hundreds of megabytes opens in seconds. Entities left unchanged are written back as they were, with the line breaks and comments between them: `model.writeBytes` copies them byte for byte at any size, and `model.write` gives the same file as text, up to the length one JavaScript string holds. A file that breaks the encoding, holds an entity id twice or names a type or schema this library does not read fails with a `StepSyntaxError` naming the byte offset, when the broken part is first read. A value given to a model that its schema does not accept fails at once with an `IfcValueError` naming the entity and the attribute.
59
+ - **Geometry as data.** `geometry.recipe` describes the elements' solids as a recipe (`Base.Recipe`): polygons, extrusions, cuts by planes, openings and shared type geometry, every number resolved. `manifold.recipes.build` in [@bitbybit-dev/manifold](https://www.npmjs.com/package/@bitbybit-dev/manifold) builds it into one solid per element, and `manifold.recipes.meshes` into meshes ready to draw, each shared type meshed once, which the renderer packages draw in a few batched and instanced calls; `occt.recipes.build` in [@bitbybit-dev/occt](https://www.npmjs.com/package/@bitbybit-dev/occt) builds it exactly, to measure or export to STEP; `geometry.unsupported` says which elements it could not describe, and why. In a browser, [@bitbybit-dev/ifc-worker](https://www.npmjs.com/package/@bitbybit-dev/ifc-worker) runs this library in a web worker.
60
60
 
61
61
  ## What version 1 covers
62
62
 
63
63
  | Area | Supported |
64
64
  |---|---|
65
- | Schema | IFC4 ADD2 TC1, read and written; IFC2X3 files read through IFC4 to show and query, and upgraded to IFC4 to edit |
65
+ | Schema | IFC4 ADD2 TC1 and IFC4X3 ADD2, read and edited, each in its own schema; new models in IFC4; IFC2X3 files read through IFC4 to show and query, and upgraded to IFC4 to edit (`model.upgradeToIfc4`); `.ifczip` archives read |
66
66
  | Spatial structure | project, site, one building, storeys raised or lowered with everything on them, spaces with their areas |
67
67
  | Site | terrain with holes where the building and paving meet it, and trees with a trunk and crown in their own materials, as geographic elements of the site |
68
68
  | Walls | straight walls from an axis, by thickness, layer set or wall type; centred, left or right aligned; L joins (mitred) and T joins (butt); clipping by planes and under roofs; read back as parameters and edited, also when another tool wrote them |
69
69
  | Openings, doors, windows | rectangular openings in walls, moved or resized; any outline through a slab; door and window types with a lining or frame and one panel or pane, each part in its own material, doors with lever or pull-bar handles, placed many times through mapped geometry |
70
70
  | Slabs and roofs | outlines with holes, by thickness or layer set; flat, mono-pitch, gable and hip roofs over a rectangle |
71
71
  | Columns, beams and members | rectangle, circle and I sections; braces, rafters, studs, mullions and other members |
72
+ | Any element from a shape | an element of any class whose body is an exact solid (planes, cylinders, spheres, tori and B-splines, as an OpenCascade shape described with `ifcSurfaces` gives) or a triangle mesh |
72
73
  | Editing | removing elements with what only they use, moving and turning them |
74
+ | Georeference | the map conversion, its coordinate reference system and the site's latitude, longitude and elevation, read by `model.georeference` |
73
75
  | Data | materials with colours, layer sets, property sets on elements and types set and removed value by value, any attribute read and any simple one set |
74
76
  | Quantities | the base quantity sets of walls, slabs, columns, beams, members, doors, windows, openings, spaces and roofs, measured from their geometry |
75
- | Geometry recipes | extrusions of arbitrary, rectangle, circle and I profiles, outlines of polylines, arcs and composite curves, half-space clippings (polygonal bounded ones too), boolean differences, mapped items (mirrored and scaled too), triangulated and polygonal face sets, faceted breps, surface models, openings |
77
+ | Geometry recipes | extruded, tapered, revolved and swept solids (along a directrix with a fixed reference or on a surface, and swept disks such as pipes and rebars) of arbitrary, rectangle, rounded and hollow rectangle, circle and hollow circle, ellipse, trapezium, I, asymmetric I, L, T, U, C and Z, derived, mirrored and composite profiles; outlines of polylines, indexed poly curves, arcs, trimmed, composite and B-spline curves; half-space clippings (polygonal bounded and boxed ones too), boolean differences, unions and intersections, CSG solids; mapped items (mirrored and scaled too); triangulated and polygonal face sets, faceted and advanced breps (B-spline and other analytic surfaces, triangulated), surface models; openings |
76
78
 
77
79
  ## Use It With an AI Agent
78
80
 
@@ -80,7 +82,11 @@ The free **[Bitbybit CAD MCP](https://learn.bitbybit.dev/learn/using-ai-with-bit
80
82
 
81
83
  ## Licence
82
84
 
83
- The package is MIT-licensed. Its schema table is a translation of buildingSMART International's IFC4 ADD2 TC1 EXPRESS schema, used with attribution under the notice the schema carries; see `NOTICE`. IFC and Industry Foundation Classes are names of buildingSMART International; this package is not certified by or affiliated with it.
85
+ The package is MIT-licensed. Its schema tables are translations of buildingSMART International's IFC4 ADD2 TC1 and IFC4X3 ADD2 EXPRESS schemas, used with attribution under the notice and licence each carries; see `NOTICE`.
86
+
87
+ ## Trademarks
88
+
89
+ IFC and Industry Foundation Classes are names of buildingSMART International; this package is not certified by or affiliated with it. Revit, Archicad, Tekla Structures, SketchUp, Solibri, BIMvision, Bentley OpenBuildings Designer, Bentley OpenRoads Designer, Edificius, Grasshopper, Geometry Gym, Constructivity, RDF IFC Engine, FreeCAD, Blender, Bonsai (formerly BlenderBIM) and IfcOpenShell are trademarks or names of their respective owners. This package and its documentation name them only to identify the tools whose files it reads, or that open and check the files it writes. None of their owners sponsors, endorses or certifies this package.
84
90
 
85
91
  ## Links
86
92
 
@@ -6,6 +6,7 @@ const IFC_AddBeamDto = { start: k.required(k.point3), end: k.required(k.point3),
6
6
  const IFC_AddColumnDto = { position: k.point2, height: k.between(k.number, { min: 0, exclusiveMin: true }), baseOffset: k.number, model: k.required(k.opaque), storey: k.required(k.string), id: k.string, name: k.string, profile: k.oneOf(["rectangle", "circle", "iShape"]), width: k.between(k.number, { min: 0, exclusiveMin: true }), depth: k.between(k.number, { min: 0, exclusiveMin: true }), radius: k.between(k.number, { min: 0, exclusiveMin: true }), webThickness: k.between(k.number, { min: 0, exclusiveMin: true }), flangeThickness: k.between(k.number, { min: 0, exclusiveMin: true }), rotation: k.number, material: k.string };
7
7
  const IFC_AddDoorDto = { model: k.required(k.opaque), wall: k.required(k.string), doorType: k.required(k.string), id: k.string, name: k.string, offset: k.between(k.number, { min: 0 }), sill: k.number };
8
8
  const IFC_AddDoorTypeDto = { model: k.required(k.opaque), id: k.string, name: k.string, width: k.between(k.number, { min: 0, exclusiveMin: true }), height: k.between(k.number, { min: 0, exclusiveMin: true }), liningThickness: k.between(k.number, { min: 0, exclusiveMin: true }), liningDepth: k.between(k.number, { min: 0, exclusiveMin: true }), panelThickness: k.between(k.number, { min: 0, exclusiveMin: true }), operation: k.oneOf(["SINGLE_SWING_LEFT", "SINGLE_SWING_RIGHT", "DOUBLE_SWING_LEFT", "DOUBLE_SWING_RIGHT", "SLIDING_TO_LEFT", "SLIDING_TO_RIGHT", "FOLDING_TO_LEFT", "FOLDING_TO_RIGHT", "REVOLVING", "ROLLINGUP", "NOTDEFINED"]), liningMaterial: k.string, panelMaterial: k.string, handle: k.oneOf(["none", "lever", "pullBar"]), handleMaterial: k.string };
9
+ const IFC_AddElementDto = { body: k.required(k.opaque), model: k.required(k.opaque), storey: k.required(k.string), id: k.string, name: k.string, type: k.string, predefinedType: k.string, objectType: k.string, position: k.point3, rotation: k.between(k.number, { min: -360, max: 360 }), material: k.string };
9
10
  const IFC_AddLayerSetDto = { model: k.required(k.opaque), name: k.string, layers: k.required(k.list(k.opaque)) };
10
11
  const IFC_AddMaterialDto = { model: k.required(k.opaque), name: k.string, category: k.string, color: k.string, transparency: k.between(k.number, { min: 0, max: 1 }) };
11
12
  const IFC_AddMemberDto = { start: k.required(k.point3), end: k.required(k.point3), predefinedType: k.oneOf(["BRACE", "CHORD", "COLLAR", "MEMBER", "MULLION", "PLATE", "POST", "PURLIN", "RAFTER", "STRINGER", "STRUT", "STUD", "NOTDEFINED"]), model: k.required(k.opaque), storey: k.required(k.string), id: k.string, name: k.string, profile: k.oneOf(["rectangle", "circle", "iShape"]), width: k.between(k.number, { min: 0, exclusiveMin: true }), depth: k.between(k.number, { min: 0, exclusiveMin: true }), radius: k.between(k.number, { min: 0, exclusiveMin: true }), webThickness: k.between(k.number, { min: 0, exclusiveMin: true }), flangeThickness: k.between(k.number, { min: 0, exclusiveMin: true }), rotation: k.number, material: k.string };
@@ -31,7 +32,7 @@ const IFC_EditOpeningDto = { model: k.required(k.opaque), opening: k.required(k.
31
32
  const IFC_EditWallDto = { model: k.required(k.opaque), wall: k.required(k.string), start: k.point2, end: k.point2, height: k.between(k.number, { min: 0, exclusiveMin: true }), baseOffset: k.number, thickness: k.between(k.number, { min: 0, exclusiveMin: true }), layerSet: k.string, alignment: k.oneOf(["center", "left", "right"]) };
32
33
  const IFC_ElementDto = { model: k.required(k.opaque), element: k.required(k.string) };
33
34
  const IFC_ElementsDto = { model: k.required(k.opaque), type: k.string, storey: k.string };
34
- const IFC_GeometryDto = { model: k.required(k.opaque), elements: k.list(k.string), groupByClass: k.boolean };
35
+ const IFC_GeometryDto = { model: k.required(k.opaque), elements: k.list(k.string), groupByClass: k.boolean, propertySets: k.boolean };
35
36
  const IFC_GeometryElementsDto = { model: k.required(k.opaque), elements: k.list(k.string) };
36
37
  const IFC_GetAttributeDto = { model: k.required(k.opaque), element: k.required(k.string), attribute: k.string };
37
38
  const IFC_GlobalIdOfDto = { model: k.required(k.opaque), id: k.required(k.string) };
@@ -58,6 +59,7 @@ export const ifcDtoRegistry = {
58
59
  "columns.add": { dto: Inputs.IFC.AddColumnDto, constraints: IFC_AddColumnDto },
59
60
  "doors.add": { dto: Inputs.IFC.AddDoorDto, constraints: IFC_AddDoorDto },
60
61
  "doors.addType": { dto: Inputs.IFC.AddDoorTypeDto, constraints: IFC_AddDoorTypeDto },
62
+ "elements.add": { dto: Inputs.IFC.AddElementDto, constraints: IFC_AddElementDto },
61
63
  "geometry.recipe": { dto: Inputs.IFC.GeometryDto, constraints: IFC_GeometryDto },
62
64
  "geometry.unsupported": { dto: Inputs.IFC.GeometryElementsDto, constraints: IFC_GeometryElementsDto },
63
65
  "materials.add": { dto: Inputs.IFC.AddMaterialDto, constraints: IFC_AddMaterialDto },
@@ -2,6 +2,7 @@ import { IFCAssemblies } from "./services/assemblies";
2
2
  import { IFCBeams } from "./services/beams";
3
3
  import { IFCColumns } from "./services/columns";
4
4
  import { IFCDoors } from "./services/doors";
5
+ import { IFCElements } from "./services/elements";
5
6
  import { IFCGeometry } from "./services/geometry";
6
7
  import { IFCMaterials } from "./services/materials";
7
8
  import { IFCMembers } from "./services/members";
@@ -18,14 +19,14 @@ import { IFCWalls } from "./services/walls";
18
19
  import { IFCWindows } from "./services/windows";
19
20
  /**
20
21
  * The entry point to IFC, the open BIM exchange format: `model` creates, reads, writes and edits
21
- * models; `spatial`, `spaces`, `materials` and `site` add storeys, rooms, materials and the terrain;
22
+ * models; `spatial`, `spaces`, `materials` and `site` add storeys, rooms, materials and terrain;
22
23
  * `walls`, `openings`, `doors`, `windows`, `slabs`, `roofs`, `columns`, `beams` and `members` add
23
- * elements, `assemblies` groups them; `properties` attaches property sets, `quantities` measures, and `geometry` describes
24
- * elements as a recipe a kernel builds.
24
+ * standard elements and `elements` any other class; `assemblies` groups them, `properties` attaches
25
+ * property sets, `quantities` measures, and `geometry` describes elements as recipes.
25
26
  *
26
27
  * A model is a value: every method that changes one returns a new model and leaves the one it was
27
- * given as it was. Elements are parametric IFC4 that other BIM tools edit as walls, slabs and doors.
28
- * Experimental: names and inputs may still change before the first stable version.
28
+ * given as it was. Standard elements are parametric IFC4 that other BIM tools edit as walls, slabs
29
+ * and doors. Experimental: names and inputs may change before the first stable version.
29
30
  * @beta
30
31
  */
31
32
  export declare class IFCService {
@@ -70,6 +71,10 @@ export declare class IFCService {
70
71
  * Adds flat, mono-pitch, gable and hip roofs over rectangles.
71
72
  */
72
73
  readonly roofs: IFCRoofs;
74
+ /**
75
+ * Adds elements of any kind whose body is given as exact breps or triangle meshes.
76
+ */
77
+ readonly elements: IFCElements;
73
78
  /**
74
79
  * Adds the site's terrain and trees.
75
80
  */
@@ -2,6 +2,7 @@ import { IFCAssemblies } from "./services/assemblies";
2
2
  import { IFCBeams } from "./services/beams";
3
3
  import { IFCColumns } from "./services/columns";
4
4
  import { IFCDoors } from "./services/doors";
5
+ import { IFCElements } from "./services/elements";
5
6
  import { IFCGeometry } from "./services/geometry";
6
7
  import { IFCMaterials } from "./services/materials";
7
8
  import { IFCMembers } from "./services/members";
@@ -18,14 +19,14 @@ import { IFCWalls } from "./services/walls";
18
19
  import { IFCWindows } from "./services/windows";
19
20
  /**
20
21
  * The entry point to IFC, the open BIM exchange format: `model` creates, reads, writes and edits
21
- * models; `spatial`, `spaces`, `materials` and `site` add storeys, rooms, materials and the terrain;
22
+ * models; `spatial`, `spaces`, `materials` and `site` add storeys, rooms, materials and terrain;
22
23
  * `walls`, `openings`, `doors`, `windows`, `slabs`, `roofs`, `columns`, `beams` and `members` add
23
- * elements, `assemblies` groups them; `properties` attaches property sets, `quantities` measures, and `geometry` describes
24
- * elements as a recipe a kernel builds.
24
+ * standard elements and `elements` any other class; `assemblies` groups them, `properties` attaches
25
+ * property sets, `quantities` measures, and `geometry` describes elements as recipes.
25
26
  *
26
27
  * A model is a value: every method that changes one returns a new model and leaves the one it was
27
- * given as it was. Elements are parametric IFC4 that other BIM tools edit as walls, slabs and doors.
28
- * Experimental: names and inputs may still change before the first stable version.
28
+ * given as it was. Standard elements are parametric IFC4 that other BIM tools edit as walls, slabs
29
+ * and doors. Experimental: names and inputs may change before the first stable version.
29
30
  * @beta
30
31
  */
31
32
  export class IFCService {
@@ -44,6 +45,7 @@ export class IFCService {
44
45
  this.slabs = new IFCSlabs();
45
46
  this.roofs = new IFCRoofs();
46
47
  this.site = new IFCSite();
48
+ this.elements = new IFCElements();
47
49
  this.columns = new IFCColumns();
48
50
  this.beams = new IFCBeams();
49
51
  this.members = new IFCMembers();
@@ -994,8 +994,8 @@ export declare namespace IFC {
994
994
  */
995
995
  schema: string;
996
996
  /**
997
- * Whether the model can be changed: false for an `IFC2X3` file, which is read through `IFC4`
998
- * to be shown and queried.
997
+ * Whether the model can be changed: false for an `IFC2X3` file or one naming the bare `IFC4X3`,
998
+ * each read through a newer table to be shown and queried.
999
999
  * @default true
1000
1000
  */
1001
1001
  editable: boolean;
@@ -2320,6 +2320,104 @@ export declare namespace IFC {
2320
2320
  */
2321
2321
  trunkMaterial?: string | undefined;
2322
2322
  }
2323
+ /**
2324
+ * What every element `elements.add` and `elements.addShape` add shares: the model, the storey it
2325
+ * stands on, its class, names, placement and material.
2326
+ */
2327
+ abstract class ElementSharedDto<T> {
2328
+ /**
2329
+ * The model to change; it stays as it was, and the call returns the changed model.
2330
+ * @default undefined
2331
+ */
2332
+ model: T;
2333
+ /**
2334
+ * The storey the element stands on, by GlobalId or by the id it was added with.
2335
+ * @default undefined
2336
+ */
2337
+ storey: string;
2338
+ /**
2339
+ * An id of your own for the element. Leave it out for a generated one.
2340
+ * @default undefined
2341
+ * @optional true
2342
+ */
2343
+ id?: string | undefined;
2344
+ /**
2345
+ * A name for the element, which other tools show.
2346
+ * @default Element
2347
+ */
2348
+ name?: string | undefined;
2349
+ /**
2350
+ * The IFC class of the element, any kind of IfcElement that is not abstract, such as
2351
+ * `IfcBuildingElementProxy`, `IfcFurniture` or `IfcPipeFitting`.
2352
+ * @default IfcBuildingElementProxy
2353
+ */
2354
+ type?: string | undefined;
2355
+ /**
2356
+ * The predefined type of a class that has one, as IFC writes it, such as `NOTDEFINED`; left
2357
+ * out, `NOTDEFINED`, or `USERDEFINED` when `objectType` is given.
2358
+ * @default undefined
2359
+ * @optional true
2360
+ */
2361
+ predefinedType?: string | undefined;
2362
+ /**
2363
+ * What the element is, in words, when no predefined type says it, such as `Bracket`.
2364
+ * @default undefined
2365
+ * @optional true
2366
+ */
2367
+ objectType?: string | undefined;
2368
+ /**
2369
+ * Where the body's origin stands, as `[x, y, z]` in the storey's plan, z up from its floor.
2370
+ * @default [0, 0, 0]
2371
+ */
2372
+ position?: Base.Point3 | undefined;
2373
+ /**
2374
+ * How far the body turns about the vertical, in degrees, counterclockwise seen from above.
2375
+ * @default 0
2376
+ * @minimum -360
2377
+ * @maximum 360
2378
+ * @step 15
2379
+ */
2380
+ rotation?: number | undefined;
2381
+ /**
2382
+ * The name of a material the model holds, given to the element.
2383
+ * @default undefined
2384
+ * @optional true
2385
+ */
2386
+ material?: string | undefined;
2387
+ }
2388
+ /**
2389
+ * An element to add for `elements.add`: any kind of element, its body given as exact boundary
2390
+ * representations or triangle meshes, standing on a storey.
2391
+ */
2392
+ class AddElementDto<T> extends ElementSharedDto<T> {
2393
+ constructor(model?: T, storey?: string, body?: Base.Recipe, id?: string, name?: string, type?: string, predefinedType?: string, objectType?: string, position?: Base.Point3, rotation?: number, material?: string);
2394
+ /**
2395
+ * The element's body: a recipe whose roots are brep steps, written as advanced breps, or
2396
+ * triangle steps, written as triangulated face sets, such as `occt.recipes.describe` gives.
2397
+ * @default undefined
2398
+ */
2399
+ body: Base.Recipe;
2400
+ }
2401
+ /**
2402
+ * An element to add for `elements.addShape`: any kind of element whose body is an OpenCascade shape,
2403
+ * standing on a storey.
2404
+ */
2405
+ class AddShapeElementDto<T, S> extends ElementSharedDto<T> {
2406
+ constructor(model?: T, storey?: string, shape?: S, millimetresPerUnit?: number, id?: string, name?: string, type?: string, predefinedType?: string, objectType?: string, position?: Base.Point3, rotation?: number, material?: string);
2407
+ /**
2408
+ * The element's body: a solid, several, a shell or faces, described exactly.
2409
+ * @default undefined
2410
+ */
2411
+ shape: S;
2412
+ /**
2413
+ * How many millimetres one unit of the shape's coordinates is.
2414
+ * @default 1
2415
+ * @minimum 0
2416
+ * @maximum Infinity
2417
+ * @step 1
2418
+ */
2419
+ millimetresPerUnit?: number | undefined;
2420
+ }
2323
2421
  /**
2324
2422
  * One property of a property set: its name, its value and, when the value needs one, its IFC type.
2325
2423
  * Used by `properties.addSet` and `properties.setValues`. A type outside `IfcValue`, or a value it
@@ -2502,7 +2600,7 @@ export declare namespace IFC {
2502
2600
  * A model, the elements to describe and how to group them for `geometry.recipe`.
2503
2601
  */
2504
2602
  class GeometryDto<T> {
2505
- constructor(model?: T, elements?: string[], groupByClass?: boolean);
2603
+ constructor(model?: T, elements?: string[], groupByClass?: boolean, propertySets?: boolean);
2506
2604
  /**
2507
2605
  * The model whose elements are described.
2508
2606
  * @default undefined
@@ -2521,6 +2619,12 @@ export declare namespace IFC {
2521
2619
  * @default true
2522
2620
  */
2523
2621
  groupByClass?: boolean | undefined;
2622
+ /**
2623
+ * When true, each element's property set values join its results' tags, named like
2624
+ * `Pset_WallCommon.IsExternal`, so they reach what the results become, such as STEP properties.
2625
+ * @default false
2626
+ */
2627
+ propertySets?: boolean | undefined;
2524
2628
  }
2525
2629
  /**
2526
2630
  * A model and the elements to check for `geometry.unsupported`.
@@ -2591,7 +2695,7 @@ export declare namespace IFC {
2591
2695
  * model's recipe into an OpenCascade assembly document.
2592
2696
  */
2593
2697
  class GeometryToDocumentDto<T> {
2594
- constructor(model?: T, elements?: string[], name?: string, emptyWhenFailed?: boolean, facetedMeshes?: boolean, maxTriangles?: number, groupByClass?: boolean);
2698
+ constructor(model?: T, elements?: string[], name?: string, emptyWhenFailed?: boolean, facetedMeshes?: boolean, maxTriangles?: number, groupByClass?: boolean, propertySets?: boolean);
2595
2699
  /**
2596
2700
  * The model whose elements are built.
2597
2701
  * @default undefined
@@ -2636,13 +2740,19 @@ export declare namespace IFC {
2636
2740
  * @default true
2637
2741
  */
2638
2742
  groupByClass?: boolean | undefined;
2743
+ /**
2744
+ * When true, each element's product carries its property set values as properties, named by set
2745
+ * and property, such as `Pset_WallCommon.IsExternal`, beside its GlobalId and IFC type.
2746
+ * @default true
2747
+ */
2748
+ propertySets?: boolean | undefined;
2639
2749
  }
2640
2750
  /**
2641
2751
  * A model, the elements to write, and the file options for `geometry.toStep`, which writes the
2642
2752
  * model's elements as a STEP file of OpenCascade shapes.
2643
2753
  */
2644
2754
  class GeometryToStepDto<T> {
2645
- constructor(model?: T, elements?: string[], name?: string, fileName?: string, emptyWhenFailed?: boolean, facetedMeshes?: boolean, maxTriangles?: number, compress?: boolean, tryDownload?: boolean, groupByClass?: boolean);
2755
+ constructor(model?: T, elements?: string[], name?: string, fileName?: string, emptyWhenFailed?: boolean, facetedMeshes?: boolean, maxTriangles?: number, compress?: boolean, tryDownload?: boolean, groupByClass?: boolean, propertySets?: boolean);
2646
2756
  /**
2647
2757
  * The model whose elements are written.
2648
2758
  * @default undefined
@@ -2703,6 +2813,12 @@ export declare namespace IFC {
2703
2813
  * @default true
2704
2814
  */
2705
2815
  groupByClass?: boolean | undefined;
2816
+ /**
2817
+ * When true, each element's product carries its property set values as properties, named by set
2818
+ * and property, such as `Pset_WallCommon.IsExternal`, beside its GlobalId and IFC type.
2819
+ * @default true
2820
+ */
2821
+ propertySets?: boolean | undefined;
2706
2822
  }
2707
2823
  /**
2708
2824
  * An element `geometry.recipe` had to leave out, as `geometry.unsupported` lists it.
@@ -979,8 +979,8 @@ export var IFC;
979
979
  */
980
980
  this.schema = "";
981
981
  /**
982
- * Whether the model can be changed: false for an `IFC2X3` file, which is read through `IFC4`
983
- * to be shown and queried.
982
+ * Whether the model can be changed: false for an `IFC2X3` file or one naming the bare `IFC4X3`,
983
+ * each read through a newer table to be shown and queried.
984
984
  * @default true
985
985
  */
986
986
  this.editable = true;
@@ -2056,6 +2056,136 @@ export var IFC;
2056
2056
  }
2057
2057
  }
2058
2058
  IFC.AddTreeDto = AddTreeDto;
2059
+ /**
2060
+ * What every element `elements.add` and `elements.addShape` add shares: the model, the storey it
2061
+ * stands on, its class, names, placement and material.
2062
+ */
2063
+ class ElementSharedDto {
2064
+ constructor() {
2065
+ /**
2066
+ * A name for the element, which other tools show.
2067
+ * @default Element
2068
+ */
2069
+ this.name = "Element";
2070
+ /**
2071
+ * The IFC class of the element, any kind of IfcElement that is not abstract, such as
2072
+ * `IfcBuildingElementProxy`, `IfcFurniture` or `IfcPipeFitting`.
2073
+ * @default IfcBuildingElementProxy
2074
+ */
2075
+ this.type = "IfcBuildingElementProxy";
2076
+ /**
2077
+ * Where the body's origin stands, as `[x, y, z]` in the storey's plan, z up from its floor.
2078
+ * @default [0, 0, 0]
2079
+ */
2080
+ this.position = [0, 0, 0];
2081
+ /**
2082
+ * How far the body turns about the vertical, in degrees, counterclockwise seen from above.
2083
+ * @default 0
2084
+ * @minimum -360
2085
+ * @maximum 360
2086
+ * @step 15
2087
+ */
2088
+ this.rotation = 0;
2089
+ }
2090
+ }
2091
+ IFC.ElementSharedDto = ElementSharedDto;
2092
+ /**
2093
+ * An element to add for `elements.add`: any kind of element, its body given as exact boundary
2094
+ * representations or triangle meshes, standing on a storey.
2095
+ */
2096
+ class AddElementDto extends ElementSharedDto {
2097
+ constructor(model, storey, body, id, name, type, predefinedType, objectType, position, rotation, material) {
2098
+ super();
2099
+ if (model !== undefined) {
2100
+ this.model = model;
2101
+ }
2102
+ if (storey !== undefined) {
2103
+ this.storey = storey;
2104
+ }
2105
+ if (body !== undefined) {
2106
+ this.body = body;
2107
+ }
2108
+ if (id !== undefined) {
2109
+ this.id = id;
2110
+ }
2111
+ if (name !== undefined) {
2112
+ this.name = name;
2113
+ }
2114
+ if (type !== undefined) {
2115
+ this.type = type;
2116
+ }
2117
+ if (predefinedType !== undefined) {
2118
+ this.predefinedType = predefinedType;
2119
+ }
2120
+ if (objectType !== undefined) {
2121
+ this.objectType = objectType;
2122
+ }
2123
+ if (position !== undefined) {
2124
+ this.position = position;
2125
+ }
2126
+ if (rotation !== undefined) {
2127
+ this.rotation = rotation;
2128
+ }
2129
+ if (material !== undefined) {
2130
+ this.material = material;
2131
+ }
2132
+ }
2133
+ }
2134
+ IFC.AddElementDto = AddElementDto;
2135
+ /**
2136
+ * An element to add for `elements.addShape`: any kind of element whose body is an OpenCascade shape,
2137
+ * standing on a storey.
2138
+ */
2139
+ class AddShapeElementDto extends ElementSharedDto {
2140
+ constructor(model, storey, shape, millimetresPerUnit, id, name, type, predefinedType, objectType, position, rotation, material) {
2141
+ super();
2142
+ /**
2143
+ * How many millimetres one unit of the shape's coordinates is.
2144
+ * @default 1
2145
+ * @minimum 0
2146
+ * @maximum Infinity
2147
+ * @step 1
2148
+ */
2149
+ this.millimetresPerUnit = 1;
2150
+ if (model !== undefined) {
2151
+ this.model = model;
2152
+ }
2153
+ if (storey !== undefined) {
2154
+ this.storey = storey;
2155
+ }
2156
+ if (shape !== undefined) {
2157
+ this.shape = shape;
2158
+ }
2159
+ if (millimetresPerUnit !== undefined) {
2160
+ this.millimetresPerUnit = millimetresPerUnit;
2161
+ }
2162
+ if (id !== undefined) {
2163
+ this.id = id;
2164
+ }
2165
+ if (name !== undefined) {
2166
+ this.name = name;
2167
+ }
2168
+ if (type !== undefined) {
2169
+ this.type = type;
2170
+ }
2171
+ if (predefinedType !== undefined) {
2172
+ this.predefinedType = predefinedType;
2173
+ }
2174
+ if (objectType !== undefined) {
2175
+ this.objectType = objectType;
2176
+ }
2177
+ if (position !== undefined) {
2178
+ this.position = position;
2179
+ }
2180
+ if (rotation !== undefined) {
2181
+ this.rotation = rotation;
2182
+ }
2183
+ if (material !== undefined) {
2184
+ this.material = material;
2185
+ }
2186
+ }
2187
+ }
2188
+ IFC.AddShapeElementDto = AddShapeElementDto;
2059
2189
  /**
2060
2190
  * One property of a property set: its name, its value and, when the value needs one, its IFC type.
2061
2191
  * Used by `properties.addSet` and `properties.setValues`. A type outside `IfcValue`, or a value it
@@ -2236,13 +2366,19 @@ export var IFC;
2236
2366
  * A model, the elements to describe and how to group them for `geometry.recipe`.
2237
2367
  */
2238
2368
  class GeometryDto {
2239
- constructor(model, elements, groupByClass) {
2369
+ constructor(model, elements, groupByClass, propertySets) {
2240
2370
  /**
2241
2371
  * When true, the elements of each storey, or other part of the structure, are grouped by IFC
2242
2372
  * class, such as `Walls`; when false they lie in the structure's group.
2243
2373
  * @default true
2244
2374
  */
2245
2375
  this.groupByClass = true;
2376
+ /**
2377
+ * When true, each element's property set values join its results' tags, named like
2378
+ * `Pset_WallCommon.IsExternal`, so they reach what the results become, such as STEP properties.
2379
+ * @default false
2380
+ */
2381
+ this.propertySets = false;
2246
2382
  if (model !== undefined) {
2247
2383
  this.model = model;
2248
2384
  }
@@ -2252,6 +2388,9 @@ export var IFC;
2252
2388
  if (groupByClass !== undefined) {
2253
2389
  this.groupByClass = groupByClass;
2254
2390
  }
2391
+ if (propertySets !== undefined) {
2392
+ this.propertySets = propertySets;
2393
+ }
2255
2394
  }
2256
2395
  }
2257
2396
  IFC.GeometryDto = GeometryDto;
@@ -2328,7 +2467,7 @@ export var IFC;
2328
2467
  * model's recipe into an OpenCascade assembly document.
2329
2468
  */
2330
2469
  class GeometryToDocumentDto {
2331
- constructor(model, elements, name, emptyWhenFailed, facetedMeshes, maxTriangles, groupByClass) {
2470
+ constructor(model, elements, name, emptyWhenFailed, facetedMeshes, maxTriangles, groupByClass, propertySets) {
2332
2471
  /**
2333
2472
  * The name of the assembly at the top of the document, which holds every element.
2334
2473
  * @default Model
@@ -2361,6 +2500,12 @@ export var IFC;
2361
2500
  * @default true
2362
2501
  */
2363
2502
  this.groupByClass = true;
2503
+ /**
2504
+ * When true, each element's product carries its property set values as properties, named by set
2505
+ * and property, such as `Pset_WallCommon.IsExternal`, beside its GlobalId and IFC type.
2506
+ * @default true
2507
+ */
2508
+ this.propertySets = true;
2364
2509
  if (model !== undefined) {
2365
2510
  this.model = model;
2366
2511
  }
@@ -2382,6 +2527,9 @@ export var IFC;
2382
2527
  if (groupByClass !== undefined) {
2383
2528
  this.groupByClass = groupByClass;
2384
2529
  }
2530
+ if (propertySets !== undefined) {
2531
+ this.propertySets = propertySets;
2532
+ }
2385
2533
  }
2386
2534
  }
2387
2535
  IFC.GeometryToDocumentDto = GeometryToDocumentDto;
@@ -2390,7 +2538,7 @@ export var IFC;
2390
2538
  * model's elements as a STEP file of OpenCascade shapes.
2391
2539
  */
2392
2540
  class GeometryToStepDto {
2393
- constructor(model, elements, name, fileName, emptyWhenFailed, facetedMeshes, maxTriangles, compress, tryDownload, groupByClass) {
2541
+ constructor(model, elements, name, fileName, emptyWhenFailed, facetedMeshes, maxTriangles, compress, tryDownload, groupByClass, propertySets) {
2394
2542
  /**
2395
2543
  * The name of the assembly at the top of the file, which holds every element.
2396
2544
  * @default Model
@@ -2439,6 +2587,12 @@ export var IFC;
2439
2587
  * @default true
2440
2588
  */
2441
2589
  this.groupByClass = true;
2590
+ /**
2591
+ * When true, each element's product carries its property set values as properties, named by set
2592
+ * and property, such as `Pset_WallCommon.IsExternal`, beside its GlobalId and IFC type.
2593
+ * @default true
2594
+ */
2595
+ this.propertySets = true;
2442
2596
  if (model !== undefined) {
2443
2597
  this.model = model;
2444
2598
  }
@@ -2469,6 +2623,9 @@ export var IFC;
2469
2623
  if (groupByClass !== undefined) {
2470
2624
  this.groupByClass = groupByClass;
2471
2625
  }
2626
+ if (propertySets !== undefined) {
2627
+ this.propertySets = propertySets;
2628
+ }
2472
2629
  }
2473
2630
  }
2474
2631
  IFC.GeometryToStepDto = GeometryToStepDto;
@@ -11,12 +11,14 @@ export declare namespace IFC {
11
11
  type AddColumnDto<T> = WithDefaults<Inputs.IFC.AddColumnDto<T>, "position" | "baseOffset" | "profile" | "rotation">;
12
12
  type AddDoorDto<T> = WithDefaults<Inputs.IFC.AddDoorDto<T>, "sill">;
13
13
  type AddDoorTypeDto<T> = WithDefaults<Inputs.IFC.AddDoorTypeDto<T>, "name" | "operation" | "handle">;
14
+ type AddElementDto<T> = WithDefaults<Inputs.IFC.AddElementDto<T>, "name" | "type" | "position" | "rotation">;
14
15
  type AddLayerSetDto<T> = WithDefaults<Inputs.IFC.AddLayerSetDto<T>, "name">;
15
16
  type AddMaterialDto<T> = WithDefaults<Inputs.IFC.AddMaterialDto<T>, "name" | "transparency">;
16
17
  type AddMemberDto<T> = WithDefaults<Inputs.IFC.AddMemberDto<T>, "predefinedType" | "profile" | "rotation">;
17
18
  type AddOpeningDto<T> = WithDefaults<Inputs.IFC.AddOpeningDto<T>, "sill">;
18
19
  type AddPropertySetDto<T> = WithDefaults<Inputs.IFC.AddPropertySetDto<T>, "name">;
19
20
  type AddRoofDto<T> = WithDefaults<Inputs.IFC.AddRoofDto<T>, "kind" | "pitch" | "overhang" | "baseOffset">;
21
+ type AddShapeElementDto<T, S> = WithDefaults<Inputs.IFC.AddShapeElementDto<T, S>, "millimetresPerUnit" | "name" | "type" | "position" | "rotation">;
20
22
  type AddSlabDto<T> = WithDefaults<Inputs.IFC.AddSlabDto<T>, "topOffset" | "predefinedType">;
21
23
  type AddSlabOpeningDto<T> = Inputs.IFC.AddSlabOpeningDto<T>;
22
24
  type AddSpaceDto<T> = WithDefaults<Inputs.IFC.AddSpaceDto<T>, "baseOffset" | "predefinedType">;
@@ -37,12 +39,13 @@ export declare namespace IFC {
37
39
  type ElementDto<T> = Inputs.IFC.ElementDto<T>;
38
40
  type ElementInfoDto = WithDefaults<Inputs.IFC.ElementInfoDto, "globalId" | "type" | "name" | "storey">;
39
41
  type ElementsDto<T> = WithDefaults<Inputs.IFC.ElementsDto<T>, "type">;
40
- type GeometryDto<T> = WithDefaults<Inputs.IFC.GeometryDto<T>, "groupByClass">;
42
+ type ElementSharedDto<T> = WithDefaults<Inputs.IFC.ElementSharedDto<T>, "name" | "type" | "position" | "rotation">;
43
+ type GeometryDto<T> = WithDefaults<Inputs.IFC.GeometryDto<T>, "groupByClass" | "propertySets">;
41
44
  type GeometryElementsDto<T> = Inputs.IFC.GeometryElementsDto<T>;
42
45
  type GeometryProblemDto = WithDefaults<Inputs.IFC.GeometryProblemDto, "globalId" | "type" | "message">;
43
- type GeometryToDocumentDto<T> = WithDefaults<Inputs.IFC.GeometryToDocumentDto<T>, "name" | "emptyWhenFailed" | "facetedMeshes" | "maxTriangles" | "groupByClass">;
46
+ type GeometryToDocumentDto<T> = WithDefaults<Inputs.IFC.GeometryToDocumentDto<T>, "name" | "emptyWhenFailed" | "facetedMeshes" | "maxTriangles" | "groupByClass" | "propertySets">;
44
47
  type GeometryToShapesDto<T> = WithDefaults<Inputs.IFC.GeometryToShapesDto<T>, "adjustZtoY" | "emptyWhenFailed" | "facetedMeshes" | "maxTriangles">;
45
- type GeometryToStepDto<T> = WithDefaults<Inputs.IFC.GeometryToStepDto<T>, "name" | "fileName" | "emptyWhenFailed" | "facetedMeshes" | "maxTriangles" | "compress" | "tryDownload" | "groupByClass">;
48
+ type GeometryToStepDto<T> = WithDefaults<Inputs.IFC.GeometryToStepDto<T>, "name" | "fileName" | "emptyWhenFailed" | "facetedMeshes" | "maxTriangles" | "compress" | "tryDownload" | "groupByClass" | "propertySets">;
46
49
  type GeoreferenceDto = WithDefaults<Inputs.IFC.GeoreferenceDto, "mapped" | "crs" | "eastings" | "northings" | "orthogonalHeight" | "xAxisAbscissa" | "xAxisOrdinate" | "scale" | "located" | "latitude" | "longitude" | "elevation">;
47
50
  type GetAttributeDto<T> = WithDefaults<Inputs.IFC.GetAttributeDto<T>, "attribute">;
48
51
  type GlobalIdOfDto<T> = Inputs.IFC.GlobalIdOfDto<T>;
@@ -1,4 +1,5 @@
1
1
  import { resolveDto } from "@bitbybit-dev/base";
2
+ import { requireFinite } from "../../build/checks";
2
3
  import { createDoorType, createFilling } from "../../build/fillings";
3
4
  import * as Inputs from "../inputs";
4
5
  import { DEFAULT_MILLIMETRES, HANDLE_MILLIMETRES } from "./defaults.constants";
@@ -86,8 +87,10 @@ export class IFCDoors {
86
87
  const model = modelOf(resolved.model);
87
88
  const wall = resolveId(model, resolved.wall, "IfcWall", "wall");
88
89
  const type = resolveId(model, resolved.doorType, "IfcDoorType", "door type");
90
+ const offset = lengthIn(model, resolved.offset, DEFAULT_MILLIMETRES.openingOffset);
91
+ requireFinite(offset, "door's offset");
92
+ requireFinite(resolved.sill, "door's sill");
89
93
  return editModel(model, (tx, writer) => {
90
- const offset = lengthIn(model, resolved.offset, DEFAULT_MILLIMETRES.openingOffset);
91
94
  createFilling(tx, writer, "IfcDoor", { wall, type, id: resolved.id, name: resolved.name, offset, sill: resolved.sill }, lengthTolerance(model));
92
95
  });
93
96
  }