rm-graphical-computing-node 1.0.118 → 1.0.120

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 +7 -7
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -9786,13 +9786,9 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
9786
9786
  }
9787
9787
  }
9788
9788
  }
9789
- console.time("appendPcdObj");
9790
- appendPcdObj("window", "door frame");
9791
9789
  appendPcdObj("window", "metal framing of interior glass partitions");
9792
9790
  appendPcdObj("balcony railing", "metal framing of interior glass partitions");
9793
9791
  appendPcdObj("window", "balcony railing");
9794
- appendPcdObj("window", "door frame");
9795
- console.timeEnd("appendPcdObj");
9796
9792
  for (let i = 0; i < pcdPointsArr.length; i++) {
9797
9793
  const array = pcdPointsArr[i].array;
9798
9794
  const delData = /* @__PURE__ */ new Set();
@@ -9840,10 +9836,14 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
9840
9836
  if (cloneData.type == "pipe" && array[k].type == "pipe" && pipeIsVerticalJ != pipeIsVerticalK) {
9841
9837
  continue;
9842
9838
  }
9843
- if (array[k].type == "door frame") {
9839
+ if (
9840
+ /**array[k].type == 'door frame' || */
9841
+ array[k].type == "window"
9842
+ ) {
9843
+ let tol = array[k].type == "door frame" ? 0.5 : 0.5;
9844
9844
  let boxVecK = getObbLongSideDirection(array[k].obb);
9845
9845
  if (boxVecJ.length() > 0.3 && boxVecK.length() > 0.3) {
9846
- let isPPPP = isParallel(boxVecJ, boxVecK, 0.2);
9846
+ let isPPPP = isParallel(boxVecJ, boxVecK, tol);
9847
9847
  if (!isPPPP || !isPPPP.parallel) {
9848
9848
  continue;
9849
9849
  }
@@ -15576,7 +15576,7 @@ function checkWindowLocationIsTrue(windowData, passageEntrance) {
15576
15576
  let passP = getPt3(passage.p);
15577
15577
  let distance2 = windowP.distanceTo(passP);
15578
15578
  if (distance2 < passage.width / 2 + windowData.width / 2) {
15579
- if (distance2 < 0.3 && Math.abs(windowData.width - passage.width) < 0.3 || passage.width < windowData.width) {
15579
+ if (distance2 < 0.3 && Math.abs(windowData.width - passage.width) < 0.5 || passage.width < windowData.width) {
15580
15580
  delDoorAndBemaData = true;
15581
15581
  break;
15582
15582
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.118",
3
+ "version": "1.0.120",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",