rm-graphical-computing-node 1.0.86 → 1.0.88

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 +10 -11
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -9116,7 +9116,7 @@ var getMergeMeaning = (allProjectionResults, averagePz2, pointCloudCluster = nul
9116
9116
  const f1 = calculateClosePointWithOBB(array2[k].points, obb1);
9117
9117
  const f2 = calculateClosePointWithOBB(array1[e].points, obb2);
9118
9118
  const isMaxBox = compareBoxVolume(obb1, obb2);
9119
- if (type1 !== "wall" && type1 !== "floor" && type1 !== "roof") {
9119
+ if (type1 !== "wall" && type1 !== "floor" && type1 !== "roof" && type1 != "door frame" && type2 != "door frame") {
9120
9120
  if (type1 === "window") {
9121
9121
  const size1 = new THREE8.Vector3();
9122
9122
  obb1.getSize(size1);
@@ -12586,7 +12586,6 @@ var getDoorPcdData = (lines, pcdData, needFindOtherDoor = true) => {
12586
12586
  let tmpPtShortEd2 = ptShortEd2.clone().addScaledVector(vec32, pcdToLineDist);
12587
12587
  let intersect1 = segmentsIntersect2D(tmpPtStart, tmpPtEnd, tmpPtShortSt1, tmpPtShortEd1, pcdToLineDist);
12588
12588
  let intersect2 = segmentsIntersect2D(tmpPtStart, tmpPtEnd, tmpPtShortSt2, tmpPtShortEd2, pcdToLineDist);
12589
- console.log(intersect1, intersect2);
12590
12589
  let newDoorSt = null;
12591
12590
  let newDoorEd = null;
12592
12591
  let doorAddGroundClearance = 0;
@@ -12665,11 +12664,11 @@ var getDoorPcdData = (lines, pcdData, needFindOtherDoor = true) => {
12665
12664
  isRebuild: false,
12666
12665
  direction: line2.direction
12667
12666
  };
12668
- if (newLine1.originalPoints.length > 0 && newLine1.length > 0.01)
12667
+ if (newLine1.originalPoints.length > 10 && newLine1.length > 0.01)
12669
12668
  lines.push(newLine1);
12670
- if (newLine2.originalPoints.length > 0 && newLine2.length > 0.01)
12669
+ if (newLine2.originalPoints.length > 10 && newLine2.length > 0.01)
12671
12670
  lines.push(newLine2);
12672
- if (newLine3.originalPoints.length > 0 && newLine3.length > 0.01)
12671
+ if (newLine3.originalPoints.length > 10 && newLine3.length > 0.01)
12673
12672
  lines.push(newLine3);
12674
12673
  pcd.isFindDoor = true;
12675
12674
  line2.isRebuild = true;
@@ -12765,11 +12764,11 @@ var getDoorPcdData = (lines, pcdData, needFindOtherDoor = true) => {
12765
12764
  isRebuild: false,
12766
12765
  direction: line2.direction
12767
12766
  };
12768
- if (newLine1.originalPoints.length > 0 && newLine1.length > 0.01)
12767
+ if (newLine1.originalPoints.length > 10 && newLine1.length > 0.01)
12769
12768
  lines.push(newLine1);
12770
- if (newLine2.originalPoints.length > 0 && newLine2.length > 0.01)
12769
+ if (newLine2.originalPoints.length > 10 && newLine2.length > 0.01)
12771
12770
  lines.push(newLine2);
12772
- if (newLine3.originalPoints.length > 0 && newLine3.length > 0.01)
12771
+ if (newLine3.originalPoints.length > 10 && newLine3.length > 0.01)
12773
12772
  lines.push(newLine3);
12774
12773
  pcd.isFindDoor = true;
12775
12774
  line2.isRebuild = true;
@@ -12859,11 +12858,11 @@ var getDoorPcdData = (lines, pcdData, needFindOtherDoor = true) => {
12859
12858
  isRebuild: false,
12860
12859
  direction: lineTmp.direction
12861
12860
  };
12862
- if (newLine1.originalPoints.length > 0 && newLine1.length > 0.01)
12861
+ if (newLine1.originalPoints.length > 10 && newLine1.length > 0.01)
12863
12862
  lines.push(newLine1);
12864
- if (newLine2.originalPoints.length > 0 && newLine2.length > 0.01)
12863
+ if (newLine2.originalPoints.length > 10 && newLine2.length > 0.01)
12865
12864
  lines.push(newLine2);
12866
- if (newLine3.originalPoints.length > 0 && newLine3.length > 0.01)
12865
+ if (newLine3.originalPoints.length > 10 && newLine3.length > 0.01)
12867
12866
  lines.push(newLine3);
12868
12867
  lineTmp.isRebuild = true;
12869
12868
  isFind = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.86",
3
+ "version": "1.0.88",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -23,7 +23,7 @@
23
23
  "rm-graphical-computing-node": "^1.0.24",
24
24
  "rm-gxf-computing-rusts": "^0.0.61",
25
25
  "rm-point-cloud-calculation": "^1.0.4",
26
- "rm-point-cloud-calculation-napi": "^1.0.9",
26
+ "rm-point-cloud-calculation-napi": "^1.0.13",
27
27
  "three": "^0.184.0"
28
28
  },
29
29
  "devDependencies": {