@bldrs-ai/conway 1.331.1060 → 1.333.1064

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.
@@ -69606,7 +69606,7 @@ var IfcStepParser = class extends StepParser {
69606
69606
  IfcStepParser.Instance = new IfcStepParser();
69607
69607
 
69608
69608
  // compiled/src/version/version.js
69609
- var versionString = "Conway Web-Ifc Shim v1.331.1060";
69609
+ var versionString = "Conway Web-Ifc Shim v1.333.1064";
69610
69610
 
69611
69611
  // compiled/src/statistics/statistics.js
69612
69612
  var Statistics = class {
@@ -1 +1 @@
1
- {"version":3,"file":"ifc_api_proxy_ap214.d.ts","sourceRoot":"","sources":["../../../../src/compat/web-ifc/ifc_api_proxy_ap214.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,cAAc,EACf,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EACL,QAAQ,EACR,WAAW,EACX,WAAW,EACX,cAAc,EACd,cAAc,EACd,WAAW,EACX,MAAM,EACP,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAA;AAOrC,OAAO,cAAc,MAAM,qCAAqC,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAA;AAG1E,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAGpD;GACG;AACH,qBAAa,gBAAiB,YAAW,sBAAsB;aA4CzC,OAAO,EAAE,MAAM;IAE/B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;IA7C9B,EAAE,CAAC,EAAE,GAAG,CAAY;IAEpB,KAAK,EACH;QAAC,cAAc;QACb,iBAAiB;QACjB,GAAG,CAAC,MAAM,EAAE,CAAC,MAAM,CA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AG,WAAW;IAK5B;;;;OAIG;IACH,UAAU;IAIV;;;;OAIG;IACH,eAAe,CAAE,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI;IAoNvD;;;;;OAKG;IACH,wBAAwB,CACpB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EACpB,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI;IAI1C;;;;OAIG;IACH,eAAe,IAAI,MAAM,CAAC,QAAQ,CAAC;IAgRnC;;;;;OAKG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ;IAqDxC;;;;;OAKG;IACH,4BAA4B,IAAI,IAAI;CAwBrC"}
@@ -536,15 +536,6 @@ export class IfcApiProxyAP214 {
536
536
  if (!this._isCoordinated && this.settings?.COORDINATE_TO_ORIGIN) {
537
537
  nativePt = geometry.geometry.getPoint(0);
538
538
  }
539
- // extract center
540
- const geomCenter = glmatrix.vec3.create();
541
- const center = geometry.geometry.normalize();
542
- geomCenter[0] = center.x;
543
- geomCenter[1] = center.y;
544
- geomCenter[2] = center.z;
545
- // Create a translation matrix from geom.min
546
- const translationMatrixGeomMin = glmatrix.mat4.create();
547
- glmatrix.mat4.fromTranslation(translationMatrixGeomMin, geomCenter);
548
539
  // create PlacedGeometry
549
540
  const expressID = model.getElementByLocalID(geometry.localID)?.expressID;
550
541
  const geometryTransform = nativeTransform?.getValues();
@@ -582,14 +573,20 @@ export class IfcApiProxyAP214 {
582
573
  const scaleVec = glmatrix.vec3.fromValues(this.linearScalingFactor, this.linearScalingFactor, this.linearScalingFactor);
583
574
  // Scale the matrix
584
575
  glmatrix.mat4.scale(scaleMatrix, scaleMatrix, scaleVec);
585
- // Perform the matrix multiplications
576
+ // Compose the world transform from the engine's scene transform
577
+ // (newMatrix = nativeTransform). Geometry vertices stay in their
578
+ // source-unit local space; nativeTransform maps them to metre world
579
+ // space — the same bare composition the native consumer
580
+ // geometry_aggregator uses. The per-leaf geometry.normalize() recenter
581
+ // was removed: AP214 instances/mapped-items share one geometry buffer,
582
+ // so normalize() mutated it once and later instances lost their offset
583
+ // and collapsed toward the origin (issue #308 "port cluster"). The
584
+ // global coordinationMatrix still carries Y-up + COORDINATE_TO_ORIGIN.
586
585
  if (newMatrix !== void 0) {
587
586
  glmatrix.mat4.multiply(newTransform, coordinationMatrix, newMatrix);
588
- glmatrix.mat4.multiply(newTransform, newTransform, translationMatrixGeomMin);
589
587
  }
590
588
  else {
591
- glmatrix.mat4.multiply(newTransform, coordinationMatrix, newTransform);
592
- glmatrix.mat4.multiply(newTransform, newTransform, translationMatrixGeomMin);
589
+ glmatrix.mat4.copy(newTransform, coordinationMatrix);
593
590
  }
594
591
  const newTransformArr = Array.from(newTransform);
595
592
  geometryMaterialTransformMap.set(expressID, [geometry.geometry, material_, newTransformArr]);
@@ -700,15 +697,6 @@ export class IfcApiProxyAP214 {
700
697
  if (!this._isCoordinated && this.settings?.COORDINATE_TO_ORIGIN) {
701
698
  nativePt = geometry.geometry.getPoint(0);
702
699
  }
703
- // extract center
704
- const geomCenter = glmatrix.vec3.create();
705
- const center = geometry.geometry.normalize();
706
- geomCenter[0] = center.x;
707
- geomCenter[1] = center.y;
708
- geomCenter[2] = center.z;
709
- // Create a translation matrix from geom.min
710
- const translationMatrixGeomMin = glmatrix.mat4.create();
711
- glmatrix.mat4.fromTranslation(translationMatrixGeomMin, geomCenter);
712
700
  // create PlacedGeometry
713
701
  const expressID = model.getElementByLocalID(geometry.localID)?.expressID;
714
702
  const geometryTransform = nativeTransform?.getValues();
@@ -745,14 +733,20 @@ export class IfcApiProxyAP214 {
745
733
  const scaleVec = glmatrix.vec3.fromValues(this.linearScalingFactor, this.linearScalingFactor, this.linearScalingFactor);
746
734
  // Scale the matrix
747
735
  glmatrix.mat4.scale(scaleMatrix, scaleMatrix, scaleVec);
748
- // Perform the matrix multiplications
736
+ // Compose the world transform from the engine's scene transform
737
+ // (newMatrix = nativeTransform). Geometry vertices stay in their
738
+ // source-unit local space; nativeTransform maps them to metre world
739
+ // space — the same bare composition the native consumer
740
+ // geometry_aggregator uses. The per-leaf geometry.normalize() recenter
741
+ // was removed: AP214 instances/mapped-items share one geometry buffer,
742
+ // so normalize() mutated it once and later instances lost their offset
743
+ // and collapsed toward the origin (issue #308 "port cluster"). The
744
+ // global coordinationMatrix still carries Y-up + COORDINATE_TO_ORIGIN.
749
745
  if (newMatrix !== void 0) {
750
746
  glmatrix.mat4.multiply(newTransform, coordinationMatrix, newMatrix);
751
- glmatrix.mat4.multiply(newTransform, newTransform, translationMatrixGeomMin);
752
747
  }
753
748
  else {
754
- glmatrix.mat4.multiply(newTransform, coordinationMatrix, newTransform);
755
- glmatrix.mat4.multiply(newTransform, newTransform, translationMatrixGeomMin);
749
+ glmatrix.mat4.copy(newTransform, coordinationMatrix);
756
750
  }
757
751
  const newTransformArr = Array.from(newTransform);
758
752
  geometryMaterialTransformMap.set(expressID, [geometry.geometry, material_, newTransformArr]);
@@ -1,2 +1,2 @@
1
- const versionString = 'Conway Web-Ifc Shim v1.331.1060';
1
+ const versionString = 'Conway Web-Ifc Shim v1.333.1064';
2
2
  export { versionString };