rm-graphical-computing-node 1.0.128 → 1.0.129

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 (2) hide show
  1. package/dist/index.mjs +15 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -9864,14 +9864,14 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
9864
9864
  }
9865
9865
  if (
9866
9866
  /**array[k].type == 'door frame' || */
9867
- array[k].type == "window"
9867
+ array[k].type == "window" || array[k].type == "metal framing of interior glass partitions"
9868
9868
  ) {
9869
9869
  let tol = array[k].type == "door frame" ? 0.5 : 0.5;
9870
9870
  let boxVecK = getObbLongSideDirection(array[k].obb);
9871
- let f = calculateClosePointWithOBB(array[k].points, cloneData.obb);
9871
+ let f = calculateClosePointWithOBB(array[k].points, cloneData.obb, 1);
9872
9872
  if (boxVecJ.length() > 0.3 && boxVecK.length() > 0.3 || f > 0.3) {
9873
9873
  let isPPPP = isParallel(boxVecJ, boxVecK, tol);
9874
- if (!isPPPP || !isPPPP.parallel) {
9874
+ if ((!isPPPP || !isPPPP.parallel) && f < 0.8) {
9875
9875
  continue;
9876
9876
  }
9877
9877
  }
@@ -9884,6 +9884,10 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
9884
9884
  isMerge = cloneData.obb.intersectsOBB(array[k].obb, 0.01);
9885
9885
  if (!isMerge)
9886
9886
  isMerge = obbContainsOBB(cloneData.obb, array[k].obb);
9887
+ if (!isMerge) {
9888
+ let f = calculateClosePointWithOBB(array[k].points, cloneData.obb, 1);
9889
+ isMerge = f > 0.8;
9890
+ }
9887
9891
  }
9888
9892
  if (isMerge) {
9889
9893
  delData.add(k);
@@ -10340,6 +10344,14 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
10340
10344
  array[j].isDel = true;
10341
10345
  }
10342
10346
  }
10347
+ if (type == "metal framing of interior glass partitions") {
10348
+ const size = new THREE8.Vector3();
10349
+ array[j].obb.getSize(size);
10350
+ let volume = size.x * size.y * size.z;
10351
+ if (size.x < 0.1 || size.y < 0.1 || size.z < 0.1 || volume < 0.1) {
10352
+ array[j].isDel = true;
10353
+ }
10354
+ }
10343
10355
  }
10344
10356
  }
10345
10357
  for (let i = 0; i < pcdPointsArr.length; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.128",
3
+ "version": "1.0.129",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",