@ifc-lite/export 4.13.3 → 5.0.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/dist/affected-set.d.ts.map +1 -1
- package/dist/affected-set.js +9 -2
- package/dist/affected-set.js.map +1 -1
- package/dist/anonymize-export.js +2 -2
- package/dist/anonymize-export.js.map +1 -1
- package/dist/anonymize-scrub.js +3 -3
- package/dist/anonymize-scrub.js.map +1 -1
- package/dist/appearance-dependencies.js +1 -1
- package/dist/appearance-dependencies.js.map +1 -1
- package/dist/attribute-real-slots.js +1 -1
- package/dist/attribute-real-slots.js.map +1 -1
- package/dist/attribute-slot-types.d.ts.map +1 -1
- package/dist/attribute-slot-types.js +22 -14
- package/dist/attribute-slot-types.js.map +1 -1
- package/dist/authored-resource-cleanup.js +1 -1
- package/dist/authored-resource-cleanup.js.map +1 -1
- package/dist/declared-property-type.d.ts.map +1 -1
- package/dist/declared-property-type.js +5 -4
- package/dist/declared-property-type.js.map +1 -1
- package/dist/edit-ownership.d.ts +8 -0
- package/dist/edit-ownership.d.ts.map +1 -1
- package/dist/edit-ownership.js +58 -44
- package/dist/edit-ownership.js.map +1 -1
- package/dist/effective-index-created-rows.d.ts +22 -0
- package/dist/effective-index-created-rows.d.ts.map +1 -0
- package/dist/effective-index-created-rows.js +48 -0
- package/dist/effective-index-created-rows.js.map +1 -0
- package/dist/effective-index.d.ts.map +1 -1
- package/dist/effective-index.js +4 -3
- package/dist/effective-index.js.map +1 -1
- package/dist/effective-source-record.js +1 -1
- package/dist/effective-source-record.js.map +1 -1
- package/dist/entity-subgraph.d.ts +6 -2
- package/dist/entity-subgraph.d.ts.map +1 -1
- package/dist/entity-subgraph.js +70 -5
- package/dist/entity-subgraph.js.map +1 -1
- package/dist/entity-type-sets.d.ts +2 -19
- package/dist/entity-type-sets.d.ts.map +1 -1
- package/dist/entity-type-sets.js +14 -4
- package/dist/entity-type-sets.js.map +1 -1
- package/dist/georef-closure.d.ts +12 -0
- package/dist/georef-closure.d.ts.map +1 -1
- package/dist/georef-closure.js +3 -1
- package/dist/georef-closure.js.map +1 -1
- package/dist/ifc4-registry.d.ts +14 -0
- package/dist/ifc4-registry.d.ts.map +1 -0
- package/dist/ifc4-registry.js +22 -0
- package/dist/ifc4-registry.js.map +1 -0
- package/dist/ifc5-effective-rows.js +1 -1
- package/dist/ifc5-effective-rows.js.map +1 -1
- package/dist/ifc5-exporter.d.ts.map +1 -1
- package/dist/ifc5-exporter.js +3 -10
- package/dist/ifc5-exporter.js.map +1 -1
- package/dist/ifc5-tree-scope.js +2 -2
- package/dist/ifc5-tree-scope.js.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/lod0-generator.d.ts.map +1 -1
- package/dist/lod0-generator.js +14 -8
- package/dist/lod0-generator.js.map +1 -1
- package/dist/merged-bake.d.ts +32 -0
- package/dist/merged-bake.d.ts.map +1 -0
- package/dist/merged-bake.js +120 -0
- package/dist/merged-bake.js.map +1 -0
- package/dist/merged-context.d.ts +49 -6
- package/dist/merged-context.d.ts.map +1 -1
- package/dist/merged-context.js +165 -53
- package/dist/merged-context.js.map +1 -1
- package/dist/merged-exporter.d.ts +7 -14
- package/dist/merged-exporter.d.ts.map +1 -1
- package/dist/merged-exporter.js +48 -113
- package/dist/merged-exporter.js.map +1 -1
- package/dist/merged-georef-normalize.d.ts +54 -0
- package/dist/merged-georef-normalize.d.ts.map +1 -0
- package/dist/merged-georef-normalize.js +260 -0
- package/dist/merged-georef-normalize.js.map +1 -0
- package/dist/merged-project-contexts.d.ts +12 -0
- package/dist/merged-project-contexts.d.ts.map +1 -0
- package/dist/merged-project-contexts.js +56 -0
- package/dist/merged-project-contexts.js.map +1 -0
- package/dist/merged-remap.d.ts +2 -0
- package/dist/merged-remap.d.ts.map +1 -1
- package/dist/merged-remap.js +10 -0
- package/dist/merged-remap.js.map +1 -1
- package/dist/merged-subcontext.d.ts +22 -0
- package/dist/merged-subcontext.d.ts.map +1 -1
- package/dist/merged-subcontext.js +14 -18
- package/dist/merged-subcontext.js.map +1 -1
- package/dist/nonrel-positional-ref-narrowing.js +6 -6
- package/dist/nonrel-positional-ref-narrowing.js.map +1 -1
- package/dist/nonrel-ref-list-types.d.ts +4 -4
- package/dist/nonrel-ref-list-types.d.ts.map +1 -1
- package/dist/nonrel-ref-list-types.js +19 -7
- package/dist/nonrel-ref-list-types.js.map +1 -1
- package/dist/parquet-created-entity-rows.js +1 -1
- package/dist/parquet-created-entity-rows.js.map +1 -1
- package/dist/parquet-relationship-rows.js +1 -1
- package/dist/parquet-relationship-rows.js.map +1 -1
- package/dist/reference-collector.d.ts.map +1 -1
- package/dist/reference-collector.js +2 -2
- package/dist/reference-collector.js.map +1 -1
- package/dist/registry-entity-names.d.ts +6 -2
- package/dist/registry-entity-names.d.ts.map +1 -1
- package/dist/registry-entity-names.js +10 -2
- package/dist/registry-entity-names.js.map +1 -1
- package/dist/relationship-slot-bounds.js +4 -4
- package/dist/relationship-slot-bounds.js.map +1 -1
- package/dist/remesh-context-roots.d.ts +13 -6
- package/dist/remesh-context-roots.d.ts.map +1 -1
- package/dist/remesh-context-roots.js +51 -22
- package/dist/remesh-context-roots.js.map +1 -1
- package/dist/renumber-step-ids.d.ts +43 -0
- package/dist/renumber-step-ids.d.ts.map +1 -0
- package/dist/renumber-step-ids.js +237 -0
- package/dist/renumber-step-ids.js.map +1 -0
- package/dist/retype.d.ts.map +1 -1
- package/dist/retype.js +23 -12
- package/dist/retype.js.map +1 -1
- package/dist/schema-conversion-description.d.ts +6 -0
- package/dist/schema-conversion-description.d.ts.map +1 -0
- package/dist/schema-conversion-description.js +25 -0
- package/dist/schema-conversion-description.js.map +1 -0
- package/dist/schema-conversion-loss-report.d.ts +20 -34
- package/dist/schema-conversion-loss-report.d.ts.map +1 -1
- package/dist/schema-conversion-loss-report.js +177 -14
- package/dist/schema-conversion-loss-report.js.map +1 -1
- package/dist/schema-converter-attr-maps.d.ts +51 -0
- package/dist/schema-converter-attr-maps.d.ts.map +1 -0
- package/dist/schema-converter-attr-maps.js +142 -0
- package/dist/schema-converter-attr-maps.js.map +1 -0
- package/dist/schema-converter-attr-remap.d.ts +8 -0
- package/dist/schema-converter-attr-remap.d.ts.map +1 -1
- package/dist/schema-converter-attr-remap.js +15 -1
- package/dist/schema-converter-attr-remap.js.map +1 -1
- package/dist/schema-converter-document-links.d.ts +23 -0
- package/dist/schema-converter-document-links.d.ts.map +1 -0
- package/dist/schema-converter-document-links.js +146 -0
- package/dist/schema-converter-document-links.js.map +1 -0
- package/dist/schema-converter-enums.d.ts +13 -1
- package/dist/schema-converter-enums.d.ts.map +1 -1
- package/dist/schema-converter-enums.js +30 -4
- package/dist/schema-converter-enums.js.map +1 -1
- package/dist/schema-converter-ifc4-slots.d.ts +4 -3
- package/dist/schema-converter-ifc4-slots.d.ts.map +1 -1
- package/dist/schema-converter-ifc4-slots.js +4 -3
- package/dist/schema-converter-ifc4-slots.js.map +1 -1
- package/dist/schema-converter-renames.d.ts +17 -0
- package/dist/schema-converter-renames.d.ts.map +1 -1
- package/dist/schema-converter-renames.js +34 -2
- package/dist/schema-converter-renames.js.map +1 -1
- package/dist/schema-converter-retyped.d.ts +17 -0
- package/dist/schema-converter-retyped.d.ts.map +1 -0
- package/dist/schema-converter-retyped.js +68 -0
- package/dist/schema-converter-retyped.js.map +1 -0
- package/dist/schema-converter-structural-axes.d.ts +55 -0
- package/dist/schema-converter-structural-axes.d.ts.map +1 -0
- package/dist/schema-converter-structural-axes.js +378 -0
- package/dist/schema-converter-structural-axes.js.map +1 -0
- package/dist/schema-converter-structural-carriers.d.ts +76 -0
- package/dist/schema-converter-structural-carriers.d.ts.map +1 -0
- package/dist/schema-converter-structural-carriers.js +330 -0
- package/dist/schema-converter-structural-carriers.js.map +1 -0
- package/dist/schema-converter-structural-diagnostics.d.ts +64 -0
- package/dist/schema-converter-structural-diagnostics.d.ts.map +1 -0
- package/dist/schema-converter-structural-diagnostics.js +219 -0
- package/dist/schema-converter-structural-diagnostics.js.map +1 -0
- package/dist/schema-converter-structural-links.d.ts +21 -0
- package/dist/schema-converter-structural-links.d.ts.map +1 -0
- package/dist/schema-converter-structural-links.js +38 -0
- package/dist/schema-converter-structural-links.js.map +1 -0
- package/dist/schema-converter-structural-source.d.ts +76 -0
- package/dist/schema-converter-structural-source.d.ts.map +1 -0
- package/dist/schema-converter-structural-source.js +197 -0
- package/dist/schema-converter-structural-source.js.map +1 -0
- package/dist/schema-converter-structural-thickness.d.ts +33 -0
- package/dist/schema-converter-structural-thickness.d.ts.map +1 -0
- package/dist/schema-converter-structural-thickness.js +155 -0
- package/dist/schema-converter-structural-thickness.js.map +1 -0
- package/dist/schema-converter-structural-varying.d.ts +50 -0
- package/dist/schema-converter-structural-varying.d.ts.map +1 -0
- package/dist/schema-converter-structural-varying.js +170 -0
- package/dist/schema-converter-structural-varying.js.map +1 -0
- package/dist/schema-converter-structural.d.ts +8 -0
- package/dist/schema-converter-structural.d.ts.map +1 -0
- package/dist/schema-converter-structural.js +81 -0
- package/dist/schema-converter-structural.js.map +1 -0
- package/dist/schema-converter-userdefined-label.d.ts +8 -0
- package/dist/schema-converter-userdefined-label.d.ts.map +1 -0
- package/dist/schema-converter-userdefined-label.js +60 -0
- package/dist/schema-converter-userdefined-label.js.map +1 -0
- package/dist/schema-converter-userdefined.d.ts +15 -0
- package/dist/schema-converter-userdefined.d.ts.map +1 -0
- package/dist/schema-converter-userdefined.js +59 -0
- package/dist/schema-converter-userdefined.js.map +1 -0
- package/dist/schema-converter-value-forms.d.ts +12 -0
- package/dist/schema-converter-value-forms.d.ts.map +1 -0
- package/dist/schema-converter-value-forms.js +188 -0
- package/dist/schema-converter-value-forms.js.map +1 -0
- package/dist/schema-converter.d.ts +2 -8
- package/dist/schema-converter.d.ts.map +1 -1
- package/dist/schema-converter.js +57 -68
- package/dist/schema-converter.js.map +1 -1
- package/dist/schema-enum-policy.d.ts +5 -1
- package/dist/schema-enum-policy.d.ts.map +1 -1
- package/dist/schema-enum-policy.js +21 -1
- package/dist/schema-enum-policy.js.map +1 -1
- package/dist/schema-grid-frames.d.ts +19 -0
- package/dist/schema-grid-frames.d.ts.map +1 -0
- package/dist/schema-grid-frames.js +84 -0
- package/dist/schema-grid-frames.js.map +1 -0
- package/dist/schema-ifc2x3-placements.d.ts +12 -0
- package/dist/schema-ifc2x3-placements.d.ts.map +1 -0
- package/dist/schema-ifc2x3-placements.js +297 -0
- package/dist/schema-ifc2x3-placements.js.map +1 -0
- package/dist/schema-ifc2x3-records.d.ts +58 -0
- package/dist/schema-ifc2x3-records.d.ts.map +1 -0
- package/dist/schema-ifc2x3-records.js +179 -0
- package/dist/schema-ifc2x3-records.js.map +1 -0
- package/dist/schema-style-flatten.d.ts +7 -2
- package/dist/schema-style-flatten.d.ts.map +1 -1
- package/dist/schema-style-flatten.js +34 -2
- package/dist/schema-style-flatten.js.map +1 -1
- package/dist/schema-value-form-policy.d.ts +129 -0
- package/dist/schema-value-form-policy.d.ts.map +1 -0
- package/dist/schema-value-form-policy.js +222 -0
- package/dist/schema-value-form-policy.js.map +1 -0
- package/dist/section-export.d.ts.map +1 -1
- package/dist/section-export.js +3 -2
- package/dist/section-export.js.map +1 -1
- package/dist/select-qualification.d.ts.map +1 -1
- package/dist/select-qualification.js +6 -5
- package/dist/select-qualification.js.map +1 -1
- package/dist/step-collection.d.ts.map +1 -1
- package/dist/step-collection.js +5 -0
- package/dist/step-collection.js.map +1 -1
- package/dist/step-comment-skip.d.ts +8 -0
- package/dist/step-comment-skip.d.ts.map +1 -1
- package/dist/step-comment-skip.js +28 -0
- package/dist/step-comment-skip.js.map +1 -1
- package/dist/step-coordinate-options.d.ts +15 -0
- package/dist/step-coordinate-options.d.ts.map +1 -1
- package/dist/step-coordinate-options.js +13 -1
- package/dist/step-coordinate-options.js.map +1 -1
- package/dist/step-derived-quantities.d.ts +23 -0
- package/dist/step-derived-quantities.d.ts.map +1 -0
- package/dist/step-derived-quantities.js +50 -0
- package/dist/step-derived-quantities.js.map +1 -0
- package/dist/step-export-types.d.ts +2 -1
- package/dist/step-export-types.d.ts.map +1 -1
- package/dist/step-export-types.js.map +1 -1
- package/dist/step-exporter.d.ts +0 -6
- package/dist/step-exporter.d.ts.map +1 -1
- package/dist/step-exporter.js +11 -7
- package/dist/step-exporter.js.map +1 -1
- package/dist/step-georeferencing.d.ts +2 -0
- package/dist/step-georeferencing.d.ts.map +1 -1
- package/dist/step-georeferencing.js +122 -46
- package/dist/step-georeferencing.js.map +1 -1
- package/dist/step-header.d.ts.map +1 -1
- package/dist/step-header.js +4 -1
- package/dist/step-header.js.map +1 -1
- package/dist/step-internal-pset-ids.d.ts +7 -0
- package/dist/step-internal-pset-ids.d.ts.map +1 -0
- package/dist/step-internal-pset-ids.js +25 -0
- package/dist/step-internal-pset-ids.js.map +1 -0
- package/dist/step-map-unit-normalization.d.ts.map +1 -1
- package/dist/step-map-unit-normalization.js +10 -3
- package/dist/step-map-unit-normalization.js.map +1 -1
- package/dist/step-map-unit.d.ts +8 -1
- package/dist/step-map-unit.d.ts.map +1 -1
- package/dist/step-map-unit.js +13 -5
- package/dist/step-map-unit.js.map +1 -1
- package/dist/step-native-set-record.d.ts +2 -0
- package/dist/step-native-set-record.d.ts.map +1 -1
- package/dist/step-native-set-record.js +10 -0
- package/dist/step-native-set-record.js.map +1 -1
- package/dist/step-omission-predicates.d.ts.map +1 -1
- package/dist/step-omission-predicates.js +1 -0
- package/dist/step-omission-predicates.js.map +1 -1
- package/dist/step-overlay-entities.d.ts +0 -35
- package/dist/step-overlay-entities.d.ts.map +1 -1
- package/dist/step-overlay-entities.js +40 -4
- package/dist/step-overlay-entities.js.map +1 -1
- package/dist/step-overlay-property-base.d.ts +13 -0
- package/dist/step-overlay-property-base.d.ts.map +1 -0
- package/dist/step-overlay-property-base.js +30 -0
- package/dist/step-overlay-property-base.js.map +1 -0
- package/dist/step-pass-builder.d.ts.map +1 -1
- package/dist/step-pass-builder.js +13 -0
- package/dist/step-pass-builder.js.map +1 -1
- package/dist/step-property-set-collection.d.ts.map +1 -1
- package/dist/step-property-set-collection.js +7 -2
- package/dist/step-property-set-collection.js.map +1 -1
- package/dist/step-property-set-generators.d.ts.map +1 -1
- package/dist/step-property-set-generators.js +8 -4
- package/dist/step-property-set-generators.js.map +1 -1
- package/dist/step-property-set-index.js +1 -1
- package/dist/step-property-set-index.js.map +1 -1
- package/dist/step-property-set-readers.d.ts.map +1 -1
- package/dist/step-property-set-readers.js +6 -5
- package/dist/step-property-set-readers.js.map +1 -1
- package/dist/step-pset-copy-on-write.d.ts.map +1 -1
- package/dist/step-pset-copy-on-write.js +9 -7
- package/dist/step-pset-copy-on-write.js.map +1 -1
- package/dist/step-record-frame.d.ts +5 -3
- package/dist/step-record-frame.d.ts.map +1 -1
- package/dist/step-record-frame.js +12 -8
- package/dist/step-record-frame.js.map +1 -1
- package/dist/step-ref-scan.d.ts +7 -0
- package/dist/step-ref-scan.d.ts.map +1 -1
- package/dist/step-ref-scan.js +24 -3
- package/dist/step-ref-scan.js.map +1 -1
- package/dist/step-serialization.d.ts +13 -1
- package/dist/step-serialization.d.ts.map +1 -1
- package/dist/step-serialization.js +29 -2
- package/dist/step-serialization.js.map +1 -1
- package/dist/step-shared-atom-retention.js +1 -1
- package/dist/step-shared-atom-retention.js.map +1 -1
- package/dist/step-slot-grammar.d.ts +2 -0
- package/dist/step-slot-grammar.d.ts.map +1 -1
- package/dist/step-slot-grammar.js +5 -0
- package/dist/step-slot-grammar.js.map +1 -1
- package/dist/step-source-iteration.d.ts.map +1 -1
- package/dist/step-source-iteration.js +7 -2
- package/dist/step-source-iteration.js.map +1 -1
- package/dist/subset-entity-reader.d.ts.map +1 -1
- package/dist/subset-entity-reader.js +15 -8
- package/dist/subset-entity-reader.js.map +1 -1
- package/dist/subset-roots.d.ts +4 -14
- package/dist/subset-roots.d.ts.map +1 -1
- package/dist/subset-roots.js +14 -4
- package/dist/subset-roots.js.map +1 -1
- package/dist/unit-normalize.d.ts.map +1 -1
- package/dist/unit-normalize.js +4 -3
- package/dist/unit-normalize.js.map +1 -1
- package/dist/viewer-georef-scale.d.ts +14 -0
- package/dist/viewer-georef-scale.d.ts.map +1 -0
- package/dist/viewer-georef-scale.js +20 -0
- package/dist/viewer-georef-scale.js.map +1 -0
- package/package.json +43 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-enum-policy.js","sourceRoot":"","sources":["../src/schema-enum-policy.ts"],"names":[],"mappings":"AAAA;;+DAE+D;
|
|
1
|
+
{"version":3,"file":"schema-enum-policy.js","sourceRoot":"","sources":["../src/schema-enum-policy.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AA2C/D,2FAA2F;AAC3F,MAAM,CAAC,MAAM,aAAa,GAA2D;IACnF,CAAC,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,0BAA0B,CAAC;IAC7E,CAAC,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,wBAAwB,CAAC;IAC3E,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,wBAAwB,CAAC;IACnF,CAAC,8BAA8B,EAAE,8BAA8B,EAAE,2BAA2B,EAAE,qBAAqB,CAAC;CACrH,CAAC;AAEF,+EAA+E;AAC/E,MAAM,2BAA2B,GAAG,CAAC,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,CAAC,CAAC;AAEjG;;+EAE+E;AAC/E,SAAS,gBAAgB,CAAC,UAA0C,EAAE,IAAY;IAChF,MAAM,KAAK,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,cAAc,IAAI,EAAE,CAAC,CAAC;IAC3E,IAAI,KAAK,IAAI,CAAC;QAAE,OAAO,KAAK,CAAC;IAC7B,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE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,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** The grid records a placement's frame is read from, in both source layouts. */
|
|
2
|
+
export declare const GRID_FRAME_TYPES: readonly ["IFCGRID", "IFCVIRTUALGRIDINTERSECTION"];
|
|
3
|
+
export declare class GridFrames {
|
|
4
|
+
/** In file order, created grids after source ones: the first listing an axis owns it. */
|
|
5
|
+
private readonly grids;
|
|
6
|
+
private readonly firstAxis;
|
|
7
|
+
private written;
|
|
8
|
+
/** Register a grid or an intersection by its attribute slots; the last record with an id wins. */
|
|
9
|
+
note(type: string, id: number, args: readonly string[]): void;
|
|
10
|
+
/** {@link note}, from a record's attribute text. */
|
|
11
|
+
noteAttributes(type: string, id: number, attributes: string): void;
|
|
12
|
+
/** Which grids this export writes: a grid left out has no placement to name. */
|
|
13
|
+
retain(written: (gridId: number) => boolean): void;
|
|
14
|
+
/** The owning grid's placement as a slot value; `$` when nothing owns the axis or the grid has none. */
|
|
15
|
+
private relTo;
|
|
16
|
+
/** An IfcGridPlacement's attribute list in the IFC4X3 layout; null when `args` is not the source layout. */
|
|
17
|
+
lift(args: readonly string[]): string[] | null;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=schema-grid-frames.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-grid-frames.d.ts","sourceRoot":"","sources":["../src/schema-grid-frames.ts"],"names":[],"mappings":"AAwBA,iFAAiF;AACjF,eAAO,MAAM,gBAAgB,oDAAqD,CAAC;AAmBnF,qBAAa,UAAU;IACrB,yFAAyF;IACzF,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA4E;IAClG,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6B;IACvD,OAAO,CAAC,OAAO,CAA2C;IAE1D,kGAAkG;IAClG,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;IAU7D,oDAAoD;IACpD,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI;IAKlE,gFAAgF;IAChF,MAAM,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI;IAIlD,wGAAwG;IACxG,OAAO,CAAC,KAAK;IAUb,4GAA4G;IAC5G,IAAI,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI;CAG/C"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
2
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
3
|
+
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
4
|
+
/**
|
|
5
|
+
* `IfcGridPlacement.PlacementRelTo` for an IFC2X3 or IFC4 source converted to
|
|
6
|
+
* IFC4X3 (#9026 item 14).
|
|
7
|
+
*
|
|
8
|
+
* IFC4X3 gives IfcGridPlacement the inherited `PlacementRelTo`, ahead of its
|
|
9
|
+
* other attributes. Below IFC4X3 the attribute does not exist: the placement
|
|
10
|
+
* sits in the frame of the IfcGrid that owns its axes. So the record cannot
|
|
11
|
+
* pass through, and `$` is not enough either: in IFC4X3 `$` means the world
|
|
12
|
+
* frame, which moves every element on a grid that is not at the origin. The
|
|
13
|
+
* owning grid's `ObjectPlacement` says the same thing the source did.
|
|
14
|
+
*
|
|
15
|
+
* It is a pre-pass because a grid may follow the placements on it. The owner
|
|
16
|
+
* rule is the reader's (`EntityDecoder::grid_of_axis`): the first grid in file
|
|
17
|
+
* order listing the location's first axis. Twin of
|
|
18
|
+
* `rust/export/src/schema_grid_frames.rs`, pinned for both by
|
|
19
|
+
* `rust/export/tests/fixtures/schema_grid_placement_vectors.json`.
|
|
20
|
+
*/
|
|
21
|
+
import { splitTopLevelStepArguments } from './step-argument-parser.js';
|
|
22
|
+
/** The grid records a placement's frame is read from, in both source layouts. */
|
|
23
|
+
export const GRID_FRAME_TYPES = ['IFCGRID', 'IFCVIRTUALGRIDINTERSECTION'];
|
|
24
|
+
/** IfcGrid slots, the same in IFC2X3 and IFC4. */
|
|
25
|
+
const OBJECT_PLACEMENT = 5;
|
|
26
|
+
const AXIS_SLOTS = [7, 8, 9];
|
|
27
|
+
/** `(PlacementLocation, PlacementRefDirection)`: the IFC2X3 and IFC4 list. */
|
|
28
|
+
const SOURCE_ARITY = 2;
|
|
29
|
+
function refId(token) {
|
|
30
|
+
const m = /^#\s*(\d+)$/.exec((token ?? '').trim());
|
|
31
|
+
return m ? Number(m[1]) : null;
|
|
32
|
+
}
|
|
33
|
+
function refIds(value) {
|
|
34
|
+
const t = (value ?? '').trim();
|
|
35
|
+
if (!t.startsWith('(') || !t.endsWith(')'))
|
|
36
|
+
return [];
|
|
37
|
+
return (splitTopLevelStepArguments(t.slice(1, -1)) ?? []).map(refId).filter((id) => id !== null);
|
|
38
|
+
}
|
|
39
|
+
export class GridFrames {
|
|
40
|
+
/** In file order, created grids after source ones: the first listing an axis owns it. */
|
|
41
|
+
grids = new Map();
|
|
42
|
+
firstAxis = new Map();
|
|
43
|
+
written = () => true;
|
|
44
|
+
/** Register a grid or an intersection by its attribute slots; the last record with an id wins. */
|
|
45
|
+
note(type, id, args) {
|
|
46
|
+
if (type === 'IFCGRID') {
|
|
47
|
+
this.grids.set(id, { placement: refId(args[OBJECT_PLACEMENT]), axes: AXIS_SLOTS.flatMap((slot) => refIds(args[slot])) });
|
|
48
|
+
}
|
|
49
|
+
else if (type === 'IFCVIRTUALGRIDINTERSECTION') {
|
|
50
|
+
const axis = refIds(args[0])[0];
|
|
51
|
+
if (axis === undefined)
|
|
52
|
+
this.firstAxis.delete(id);
|
|
53
|
+
else
|
|
54
|
+
this.firstAxis.set(id, axis);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/** {@link note}, from a record's attribute text. */
|
|
58
|
+
noteAttributes(type, id, attributes) {
|
|
59
|
+
const args = splitTopLevelStepArguments(attributes);
|
|
60
|
+
if (args)
|
|
61
|
+
this.note(type, id, args);
|
|
62
|
+
}
|
|
63
|
+
/** Which grids this export writes: a grid left out has no placement to name. */
|
|
64
|
+
retain(written) {
|
|
65
|
+
this.written = written;
|
|
66
|
+
}
|
|
67
|
+
/** The owning grid's placement as a slot value; `$` when nothing owns the axis or the grid has none. */
|
|
68
|
+
relTo(locationId) {
|
|
69
|
+
const axis = locationId === null ? undefined : this.firstAxis.get(locationId);
|
|
70
|
+
if (axis === undefined)
|
|
71
|
+
return '$';
|
|
72
|
+
for (const [gridId, grid] of this.grids) {
|
|
73
|
+
if (!grid.axes.includes(axis))
|
|
74
|
+
continue;
|
|
75
|
+
return grid.placement !== null && this.written(gridId) ? `#${grid.placement}` : '$';
|
|
76
|
+
}
|
|
77
|
+
return '$';
|
|
78
|
+
}
|
|
79
|
+
/** An IfcGridPlacement's attribute list in the IFC4X3 layout; null when `args` is not the source layout. */
|
|
80
|
+
lift(args) {
|
|
81
|
+
return args.length === SOURCE_ARITY ? [this.relTo(refId(args[0])), ...args] : null;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=schema-grid-frames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-grid-frames.js","sourceRoot":"","sources":["../src/schema-grid-frames.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAEvE,iFAAiF;AACjF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,4BAA4B,CAAU,CAAC;AAEnF,kDAAkD;AAClD,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CA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AAC,CAAC,CAAC,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;QACtF,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IAED,4GAA4G;IAC5G,IAAI,CAAC,IAAuB;QAC1B,OAAO,IAAI,CAAC,MAAM,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACrF,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The IFC2X3 output `lines` with every object placement placing one product;
|
|
3
|
+
* null when nothing changes. See the module comment.
|
|
4
|
+
*/
|
|
5
|
+
export declare function placeEachObjectOnce(lines: readonly string[]): string[] | null;
|
|
6
|
+
/**
|
|
7
|
+
* `lines`, adapted in place by {@link placeEachObjectOnce} when `schema` is
|
|
8
|
+
* IFC2X3 and left as they are otherwise: the one call every STEP writer makes
|
|
9
|
+
* on its finished records.
|
|
10
|
+
*/
|
|
11
|
+
export declare function placeObjectsForSchema(schema: string, lines: string[]): string[];
|
|
12
|
+
//# sourceMappingURL=schema-ifc2x3-placements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-ifc2x3-placements.d.ts","sourceRoot":"","sources":["../src/schema-ifc2x3-placements.ts"],"names":[],"mappings":"AAqHA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,IAAI,CAgF7E;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAO/E"}
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
2
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
3
|
+
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
4
|
+
/**
|
|
5
|
+
* The grid and shared placements of an IFC2X3 output each place exactly one
|
|
6
|
+
* product (#9209).
|
|
7
|
+
*
|
|
8
|
+
* IFC2X3 declares `IfcObjectPlacement.PlacesObject` as `SET [1:1]`; IFC4
|
|
9
|
+
* relaxed it to `SET [0:?]`, and the models this package writes use that:
|
|
10
|
+
*
|
|
11
|
+
* - a column on a grid is `IfcColumn` -> `IfcLocalPlacement` ->
|
|
12
|
+
* `IfcGridPlacement`, so the grid placement places nothing;
|
|
13
|
+
* - a blank model's site and building share one `IfcLocalPlacement`.
|
|
14
|
+
*
|
|
15
|
+
* So an IFC2X3 output is adapted after it is written, the same way for a
|
|
16
|
+
* converted file and an IFC2X3 source:
|
|
17
|
+
*
|
|
18
|
+
* - A grid placement that places nothing, with one local child that only
|
|
19
|
+
* lifts it (no heading, no offset in plan), is folded: the child keeps its
|
|
20
|
+
* id and becomes the grid placement, its height carried as the
|
|
21
|
+
* intersection's third offset. Its product keeps naming it.
|
|
22
|
+
* - Otherwise each local child is written as a plain `IfcLocalPlacement` in
|
|
23
|
+
* the owning grid's frame, at the position the grid placement resolves
|
|
24
|
+
* to, and the grid placement is not written. A grid placement whose
|
|
25
|
+
* intersection does not read (curved axes, say), or one over an axis
|
|
26
|
+
* that bends, where readers may disagree on the point, is left as it was.
|
|
27
|
+
* - A placement shared by several products gives each product after the
|
|
28
|
+
* first its own copy.
|
|
29
|
+
*
|
|
30
|
+
* New records take the ids after the highest one and are written after the
|
|
31
|
+
* last record, in id order, the order a re-read file is written back in.
|
|
32
|
+
*
|
|
33
|
+
* A local placement that places nothing and only parents another one is a
|
|
34
|
+
* source file's shape, under a grid or not; ifc-lite never writes it, and this
|
|
35
|
+
* pass leaves it as it was. Under a grid placement it is still folded or freed
|
|
36
|
+
* as above, which writes one placement that places nothing instead of two.
|
|
37
|
+
*
|
|
38
|
+
* Positions follow the geometry reader (`rust/geometry/src/placement/grid.rs`):
|
|
39
|
+
* the intersection of the two axes' chords, each shifted along its left
|
|
40
|
+
* normal by its offset, lifted by the third offset; `PlacementRefDirection`
|
|
41
|
+
* turns local +X towards a second intersection. IFC4 and IFC4X3 outputs never
|
|
42
|
+
* reach this pass. Twin of `rust/export/src/schema_ifc2x3_placements.rs`,
|
|
43
|
+
* pinned for both by `rust/export/tests/fixtures/schema_grid_placement_vectors.json`.
|
|
44
|
+
*/
|
|
45
|
+
import { formatStepReal } from '@ifc-lite/data';
|
|
46
|
+
import { readStepSlots } from './step-argument-parser.js';
|
|
47
|
+
import { EPS, GRID_PLACEMENT, INTERSECTION, LOCAL, OBJECT_PLACEMENT, Records, list, num, refId, triple, } from './schema-ifc2x3-records.js';
|
|
48
|
+
function append(map, key, value) {
|
|
49
|
+
const values = map.get(key);
|
|
50
|
+
if (values)
|
|
51
|
+
values.push(value);
|
|
52
|
+
else
|
|
53
|
+
map.set(key, [value]);
|
|
54
|
+
}
|
|
55
|
+
/** The `#n` references in `text` from `from` on, outside string literals. */
|
|
56
|
+
function references(text, from) {
|
|
57
|
+
const ids = [];
|
|
58
|
+
for (let i = from; i < text.length; i++) {
|
|
59
|
+
if (text[i] === "'") {
|
|
60
|
+
for (i++; i < text.length; i++) {
|
|
61
|
+
if (text[i] === "'" && text[i + 1] === "'")
|
|
62
|
+
i++;
|
|
63
|
+
else if (text[i] === "'")
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
else if (text[i] === '#') {
|
|
68
|
+
let j = i + 1;
|
|
69
|
+
while (j < text.length && text[j] >= '0' && text[j] <= '9')
|
|
70
|
+
j++;
|
|
71
|
+
if (j > i + 1)
|
|
72
|
+
ids.push(Number(text.slice(i + 1, j)));
|
|
73
|
+
i = j - 1;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return ids;
|
|
77
|
+
}
|
|
78
|
+
/** Who names each placement and intersection. */
|
|
79
|
+
function users(records) {
|
|
80
|
+
const placements = new Set();
|
|
81
|
+
const crossings = new Map();
|
|
82
|
+
for (const rec of records.list) {
|
|
83
|
+
if (rec?.type === LOCAL || rec?.type === GRID_PLACEMENT)
|
|
84
|
+
placements.add(rec.id);
|
|
85
|
+
else if (rec?.type === INTERSECTION)
|
|
86
|
+
crossings.set(rec.id, 0);
|
|
87
|
+
}
|
|
88
|
+
const found = { children: new Map(), products: new Map(), others: new Set(), crossings };
|
|
89
|
+
if (placements.size === 0)
|
|
90
|
+
return found;
|
|
91
|
+
for (const rec of records.list) {
|
|
92
|
+
if (!rec)
|
|
93
|
+
continue;
|
|
94
|
+
const hits = [];
|
|
95
|
+
for (const id of references(rec.text, rec.open)) {
|
|
96
|
+
if (placements.has(id))
|
|
97
|
+
hits.push(id);
|
|
98
|
+
else if (crossings.has(id))
|
|
99
|
+
crossings.set(id, crossings.get(id) + 1);
|
|
100
|
+
}
|
|
101
|
+
if (hits.length === 0)
|
|
102
|
+
continue;
|
|
103
|
+
const s = records.slots(rec);
|
|
104
|
+
for (const id of new Set(hits)) {
|
|
105
|
+
const once = hits.filter((h) => h === id).length === 1;
|
|
106
|
+
if (once && s && rec.type === LOCAL && refId(s[0]) === id)
|
|
107
|
+
append(found.children, id, rec.id);
|
|
108
|
+
else if (once && s && rec.type !== LOCAL && rec.type !== GRID_PLACEMENT && refId(s[OBJECT_PLACEMENT]) === id)
|
|
109
|
+
append(found.products, id, rec.id);
|
|
110
|
+
else
|
|
111
|
+
found.others.add(id);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return found;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The IFC2X3 output `lines` with every object placement placing one product;
|
|
118
|
+
* null when nothing changes. See the module comment.
|
|
119
|
+
*/
|
|
120
|
+
export function placeEachObjectOnce(lines) {
|
|
121
|
+
const records = new Records(lines);
|
|
122
|
+
// A record adds at most four (a freed child's point, two directions and
|
|
123
|
+
// axes); a file whose ids leave no room for them is left as it was.
|
|
124
|
+
if (records.maxId + 4 * records.list.length >= 0xffffffff)
|
|
125
|
+
return null;
|
|
126
|
+
const { children, products, others, crossings } = users(records);
|
|
127
|
+
const rewrites = new Map();
|
|
128
|
+
/** New records, in id order: written after the last record, where a re-read writes them back. */
|
|
129
|
+
const added = [];
|
|
130
|
+
const drops = new Set();
|
|
131
|
+
let next = records.maxId + 1;
|
|
132
|
+
/** A grid placement not written, and the intersections only it named. */
|
|
133
|
+
const drop = (id, g) => {
|
|
134
|
+
drops.add(id);
|
|
135
|
+
const named = g.map(refId);
|
|
136
|
+
for (const i of new Set(named)) {
|
|
137
|
+
if (i !== null && crossings.get(i) === named.filter((n) => n === i).length)
|
|
138
|
+
drops.add(i);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
for (const rec of records.list) {
|
|
142
|
+
if (rec?.type !== GRID_PLACEMENT || others.has(rec.id) || products.has(rec.id))
|
|
143
|
+
continue;
|
|
144
|
+
const g = records.slots(rec);
|
|
145
|
+
const kids = children.get(rec.id) ?? [];
|
|
146
|
+
if (!g || g.length !== 2)
|
|
147
|
+
continue;
|
|
148
|
+
if (kids.length === 0) {
|
|
149
|
+
drop(rec.id, g);
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
152
|
+
const lifts = kids.length === 1 ? lift(records, kids[0], g) : null;
|
|
153
|
+
if (lifts) {
|
|
154
|
+
const at = refId(g[0]);
|
|
155
|
+
let location = g[0].trim();
|
|
156
|
+
if (lifts.intersection && crossings.get(at) === 1)
|
|
157
|
+
rewrites.set(at, `#${at}=${INTERSECTION}(${lifts.intersection});`);
|
|
158
|
+
else if (lifts.intersection) {
|
|
159
|
+
added.push(`#${next}=${INTERSECTION}(${lifts.intersection});`);
|
|
160
|
+
location = `#${next++}`;
|
|
161
|
+
}
|
|
162
|
+
rewrites.set(kids[0], `#${kids[0]}=${GRID_PLACEMENT}(${location},${g[1].trim()});`);
|
|
163
|
+
drops.add(rec.id);
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
const frame = records.gridFrame(g);
|
|
167
|
+
const freed = frame && kids.map((kid) => free(records, kid, frame));
|
|
168
|
+
if (!freed || freed.includes(null))
|
|
169
|
+
continue;
|
|
170
|
+
const relTo = records.gridPlacementOf(refId(g[0]));
|
|
171
|
+
freed.forEach((written, i) => {
|
|
172
|
+
const ids = written.map(() => next++);
|
|
173
|
+
written.forEach((line, k) => added.push(`#${ids[k]}=${line.replace(/#\{(\d)\}/g, (_, j) => `#${ids[Number(j)]}`)}`));
|
|
174
|
+
rewrites.set(kids[i], `#${kids[i]}=${LOCAL}(${relTo},#${ids[ids.length - 1]});`);
|
|
175
|
+
});
|
|
176
|
+
drop(rec.id, g);
|
|
177
|
+
}
|
|
178
|
+
for (const rec of records.list) {
|
|
179
|
+
const placed = rec && products.get(rec.id);
|
|
180
|
+
if (!rec || !placed || placed.length < 2 || drops.has(rec.id))
|
|
181
|
+
continue;
|
|
182
|
+
const own = rewrites.get(rec.id) ?? rec.text;
|
|
183
|
+
const frame = readStepSlots(own);
|
|
184
|
+
if (!frame)
|
|
185
|
+
continue;
|
|
186
|
+
for (const product of placed.slice(1)) {
|
|
187
|
+
const productFrame = readStepSlots(records.get(product).text);
|
|
188
|
+
if (!productFrame)
|
|
189
|
+
continue;
|
|
190
|
+
const copy = next++;
|
|
191
|
+
added.push(`#${copy}=${frame.type}(${frame.slots.join(',')});`);
|
|
192
|
+
const slots = [...productFrame.slots];
|
|
193
|
+
slots[OBJECT_PLACEMENT] = `#${copy}`;
|
|
194
|
+
rewrites.set(product, `${productFrame.prefix}${slots.join(',')}${productFrame.suffix}`);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
if (rewrites.size === 0 && drops.size === 0)
|
|
198
|
+
return null;
|
|
199
|
+
const out = [];
|
|
200
|
+
lines.forEach((line, i) => {
|
|
201
|
+
const rec = records.list[i];
|
|
202
|
+
if (rec && drops.has(rec.id))
|
|
203
|
+
return;
|
|
204
|
+
out.push(rec ? rewrites.get(rec.id) ?? line : line);
|
|
205
|
+
});
|
|
206
|
+
for (const line of added)
|
|
207
|
+
out.push(line); // not spread: there can be more than a call takes
|
|
208
|
+
return out;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* `lines`, adapted in place by {@link placeEachObjectOnce} when `schema` is
|
|
212
|
+
* IFC2X3 and left as they are otherwise: the one call every STEP writer makes
|
|
213
|
+
* on its finished records.
|
|
214
|
+
*/
|
|
215
|
+
export function placeObjectsForSchema(schema, lines) {
|
|
216
|
+
const placed = schema === 'IFC2X3' ? placeEachObjectOnce(lines) : null;
|
|
217
|
+
if (placed) {
|
|
218
|
+
lines.length = 0;
|
|
219
|
+
for (const line of placed)
|
|
220
|
+
lines.push(line);
|
|
221
|
+
}
|
|
222
|
+
return lines;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* A child that only lifts its grid placement, folded: the intersection to
|
|
226
|
+
* write with the lift as its third offset (null for no lift). Null when the
|
|
227
|
+
* child turns, tilts or moves in plan, or anything does not read.
|
|
228
|
+
*/
|
|
229
|
+
function lift(records, kid, g) {
|
|
230
|
+
const l = records.slots(records.get(kid));
|
|
231
|
+
const a = records.slots(records.get(refId(l?.[1]), 'IFCAXIS2PLACEMENT3D'));
|
|
232
|
+
const at = a && records.vector(a[0], 'IFCCARTESIANPOINT');
|
|
233
|
+
// Within the reader's tolerance: a frame composed through a turned grid
|
|
234
|
+
// leaves residues like 6e-17 where it means zero.
|
|
235
|
+
if (!l || l.length !== 2 || !a || a.length !== 3 || !at || Math.abs(at[0]) > EPS || Math.abs(at[1]) > EPS)
|
|
236
|
+
return null;
|
|
237
|
+
const axis = a[1].trim() === '$' ? [0, 0, 1] : records.vector(a[1], 'IFCDIRECTION');
|
|
238
|
+
const ref = a[2].trim() === '$' ? [1, 0] : records.vector(a[2], 'IFCDIRECTION');
|
|
239
|
+
if (!axis || axis.length !== 3 || !(axis[2] > 0) || Math.abs(axis[0]) > EPS * axis[2] || Math.abs(axis[1]) > EPS * axis[2])
|
|
240
|
+
return null;
|
|
241
|
+
if (!ref || !(ref[0] > 0) || Math.abs(ref[1]) > EPS * ref[0])
|
|
242
|
+
return null;
|
|
243
|
+
if (g[1].trim() !== '$' && !records.get(refId(g[1]), INTERSECTION))
|
|
244
|
+
return null;
|
|
245
|
+
const i = records.slots(records.get(refId(g[0]), INTERSECTION));
|
|
246
|
+
if (!i || i.length !== 2 || !records.crossing(refId(g[0])))
|
|
247
|
+
return null;
|
|
248
|
+
const dz = at[2] ?? 0;
|
|
249
|
+
if (Math.abs(dz) <= EPS)
|
|
250
|
+
return { intersection: null };
|
|
251
|
+
const offsets = i[1].trim() === '$' ? ['0.', '0.'] : list(i[1]);
|
|
252
|
+
if (!offsets || (offsets.length !== 2 && offsets.length !== 3))
|
|
253
|
+
return null;
|
|
254
|
+
const z0 = offsets[2] === undefined ? 0 : num(offsets[2]);
|
|
255
|
+
if (z0 === null)
|
|
256
|
+
return null;
|
|
257
|
+
const z = z0 + dz;
|
|
258
|
+
return { intersection: `${i[0].trim()},(${offsets[0].trim()},${offsets[1].trim()},${formatStepReal(z)})` };
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* A child as a plain placement in its grid's frame: the records to write
|
|
262
|
+
* before it, the last one its new `RelativePlacement`. `#{k}` names the k-th
|
|
263
|
+
* of them. Null when its relative placement does not read.
|
|
264
|
+
*/
|
|
265
|
+
function free(records, kid, frame) {
|
|
266
|
+
const l = records.slots(records.get(kid));
|
|
267
|
+
const a = records.slots(records.get(refId(l?.[1]), 'IFCAXIS2PLACEMENT3D'));
|
|
268
|
+
const at = a && records.vector(a[0], 'IFCCARTESIANPOINT');
|
|
269
|
+
if (!l || l.length !== 2 || !a || a.length !== 3 || !at)
|
|
270
|
+
return null;
|
|
271
|
+
const axisGiven = a[1].trim() !== '$';
|
|
272
|
+
const refGiven = a[2].trim() !== '$';
|
|
273
|
+
const axis = axisGiven ? records.vector(a[1], 'IFCDIRECTION') : null;
|
|
274
|
+
const ref = refGiven ? records.vector(a[2], 'IFCDIRECTION') : null;
|
|
275
|
+
if ((axisGiven && !axis) || (refGiven && !ref))
|
|
276
|
+
return null;
|
|
277
|
+
const [c, s] = frame.turn ?? [1, 0];
|
|
278
|
+
const turn = (v) => (frame.turn ? [c * v[0] - s * v[1], s * v[0] + c * v[1], v[2] ?? 0] : [v[0], v[1], v[2] ?? 0]);
|
|
279
|
+
const p = turn(at);
|
|
280
|
+
const lines = [`IFCCARTESIANPOINT(${triple([frame.at[0] + p[0], frame.at[1] + p[1], frame.at[2] + p[2]])});`];
|
|
281
|
+
const slot = (given, raw, v, fallback) => {
|
|
282
|
+
if (!frame.turn)
|
|
283
|
+
return given ? raw.trim() : '$';
|
|
284
|
+
const turned = v ? turn(v) : fallback;
|
|
285
|
+
if (!turned)
|
|
286
|
+
return '$';
|
|
287
|
+
if (v && turned[0] === v[0] && turned[1] === v[1])
|
|
288
|
+
return raw.trim();
|
|
289
|
+
lines.push(`IFCDIRECTION(${triple(turned)});`);
|
|
290
|
+
return `#{${lines.length - 1}}`;
|
|
291
|
+
};
|
|
292
|
+
const axisSlot = slot(axisGiven, a[1], axis, null);
|
|
293
|
+
const refSlot = slot(refGiven, a[2], ref, [c, s, 0]);
|
|
294
|
+
lines.push(`IFCAXIS2PLACEMENT3D(#{0},${axisSlot},${refSlot});`);
|
|
295
|
+
return lines;
|
|
296
|
+
}
|
|
297
|
+
//# sourceMappingURL=schema-ifc2x3-placements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-ifc2x3-placements.js","sourceRoot":"","sources":["../src/schema-ifc2x3-placements.ts"],"names":[],"mappings":"AAAA;;+DAE+D;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2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D,KAAK,CAAC,IAAI,CAAC,4BAA4B,QAAQ,IAAI,OAAO,IAAI,CAAC,CAAC;IAChE,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const LOCAL = "IFCLOCALPLACEMENT";
|
|
2
|
+
export declare const GRID_PLACEMENT = "IFCGRIDPLACEMENT";
|
|
3
|
+
export declare const INTERSECTION = "IFCVIRTUALGRIDINTERSECTION";
|
|
4
|
+
/** `IfcProduct.ObjectPlacement`, the same slot on every IFC2X3 product. */
|
|
5
|
+
export declare const OBJECT_PLACEMENT = 5;
|
|
6
|
+
/** The reader's tolerance for a degenerate axis, direction or crossing. */
|
|
7
|
+
export declare const EPS = 1e-9;
|
|
8
|
+
export type Vec2 = [number, number];
|
|
9
|
+
export type Vec3 = [number, number, number];
|
|
10
|
+
export interface Rec {
|
|
11
|
+
readonly id: number;
|
|
12
|
+
readonly type: string;
|
|
13
|
+
readonly text: string;
|
|
14
|
+
readonly open: number;
|
|
15
|
+
}
|
|
16
|
+
/** A grid placement's frame in its grid's: where it is, and the +X turn, if any. */
|
|
17
|
+
export interface GridFrame {
|
|
18
|
+
readonly at: Vec3;
|
|
19
|
+
readonly turn: Vec2 | null;
|
|
20
|
+
}
|
|
21
|
+
export declare function refId(token: string | undefined): number | null;
|
|
22
|
+
export declare function num(token: string): number | null;
|
|
23
|
+
export declare function list(token: string | undefined): string[] | null;
|
|
24
|
+
export declare function numbers(token: string | undefined, min: number, max: number): number[] | null;
|
|
25
|
+
export declare function triple(v: readonly number[]): string;
|
|
26
|
+
export declare class Records {
|
|
27
|
+
readonly list: (Rec | null)[];
|
|
28
|
+
private readonly byId;
|
|
29
|
+
private readonly split;
|
|
30
|
+
private owners;
|
|
31
|
+
maxId: number;
|
|
32
|
+
constructor(lines: readonly string[]);
|
|
33
|
+
get(id: number | null, type?: string): Rec | undefined;
|
|
34
|
+
slots(rec: Rec | undefined): string[] | null;
|
|
35
|
+
/** The coordinates of a point or the ratios of a direction, by id. */
|
|
36
|
+
vector(token: string | undefined, type: string): number[] | null;
|
|
37
|
+
/**
|
|
38
|
+
* An axis's chord, with its sense, as origin and direction; null when it
|
|
39
|
+
* does not read, or when `straight` and the polyline bends.
|
|
40
|
+
*/
|
|
41
|
+
private axisLine;
|
|
42
|
+
/**
|
|
43
|
+
* An intersection's point in its grid's frame, as the geometry reader takes
|
|
44
|
+
* it (each axis by its chord); null when it does not read. With `straight`,
|
|
45
|
+
* also null when an axis bends, where another reader may follow the bend.
|
|
46
|
+
*/
|
|
47
|
+
crossing(id: number | null, straight?: boolean): Vec3 | null;
|
|
48
|
+
/**
|
|
49
|
+
* Where a grid placement (IFC2X3 layout) sits in its grid's frame, to write
|
|
50
|
+
* as a plain position: null over a bent axis, which is left as it was.
|
|
51
|
+
*/
|
|
52
|
+
gridFrame(g: readonly string[]): GridFrame | null;
|
|
53
|
+
/** The `ObjectPlacement` of the first grid listing an axis of the intersection, as a slot value. */
|
|
54
|
+
gridPlacementOf(intersection: number | null): string;
|
|
55
|
+
/** Each grid axis's first listing grid's `ObjectPlacement`, read once: a pass may free many grid placements. */
|
|
56
|
+
private axisOwners;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=schema-ifc2x3-records.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-ifc2x3-records.d.ts","sourceRoot":"","sources":["../src/schema-ifc2x3-records.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,KAAK,sBAAsB,CAAC;AACzC,eAAO,MAAM,cAAc,qBAAqB,CAAC;AACjD,eAAO,MAAM,YAAY,+BAA+B,CAAC;AACzD,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAGlC,2EAA2E;AAC3E,eAAO,MAAM,GAAG,OAAO,CAAC;AAExB,MAAM,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACpC,MAAM,MAAM,IAAI,GAAG,CAA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