rm-graphical-computing-node 1.0.174 → 1.0.176

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 +21 -6
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -9070,7 +9070,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
9070
9070
  let tmpPt66 = new THREE5.Vector3(doorTmpSt.x, doorTmpSt.y, startPt2.z);
9071
9071
  let ptClose66 = tmpLine66.closestPointToPoint(tmpPt66, true, new THREE5.Vector3());
9072
9072
  doorAndBeamDataObj.beamNearWallVec = new THREE5.Vector3().subVectors(ptClose66, tmpPt66).normalize();
9073
- if (doorAndBeamDataObj.beamStart.z > lines[x].rooftopPz - 0.03 && length2 > 0.8) {
9073
+ if (doorAndBeamDataObj.beamStart.z > lines[x].rooftopPz - 0.03 && length2 > 0.8 && nearWallDist > 0.03) {
9074
9074
  wallBelowBeam = true;
9075
9075
  nearWall = true;
9076
9076
  } else {
@@ -14511,10 +14511,7 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
14511
14511
  if (cloneData.type == "pipe" && array[k].type == "pipe" && pipeIsVerticalJ != pipeIsVerticalK) {
14512
14512
  continue;
14513
14513
  }
14514
- if (
14515
- /**array[k].type == 'door frame' || */
14516
- array[k].type == "window" || array[k].type == "metal framing of interior glass partitions" || array[k].type == "pipe" || array[k].type == "balcony railing"
14517
- ) {
14514
+ if (array[k].type == "door frame" || array[k].type == "window" || array[k].type == "metal framing of interior glass partitions" || array[k].type == "pipe" || array[k].type == "balcony railing") {
14518
14515
  let tol = array[k].type == "door frame" ? 0.5 : 0.5;
14519
14516
  let boxVecK = getObbLongSideDirection(array[k].obb);
14520
14517
  let obbPointsClone = getOBBPoints(cloneData.obb);
@@ -14661,7 +14658,7 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
14661
14658
  }
14662
14659
  }
14663
14660
  }
14664
- let SpecialTreatment = ["window", "balcony railing"];
14661
+ let SpecialTreatment = ["window", "balcony railing", "door frame", "door"];
14665
14662
  for (let i = 0; i < SpecialTreatment.length; i++) {
14666
14663
  const windowArray = pcdPointsArr.find((item) => item.type === SpecialTreatment[i]);
14667
14664
  if (windowArray) {
@@ -14973,19 +14970,37 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
14973
14970
  }
14974
14971
  } else if (type1 === "door") {
14975
14972
  if (type2 === "window") {
14973
+ const size = new THREE8.Vector3();
14974
+ array2[k].obb.getSize(size);
14976
14975
  if (type2 === "window" && containsObbPoints(obb1, array2[k].points)) {
14976
+ if (size.x < 0.2 || size.y < 0.2 || size.z < 0.2) {
14977
+ array2[k].isDel = true;
14978
+ continue;
14979
+ }
14977
14980
  array1[e].isDel = true;
14978
14981
  break;
14979
14982
  }
14980
14983
  if (type2 === "window" && containsObbPoints(obb2, array1[e].points)) {
14984
+ if (size.x < 0.2 || size.y < 0.2 || size.z < 0.2) {
14985
+ array2[k].isDel = true;
14986
+ continue;
14987
+ }
14981
14988
  array1[e].isDel = true;
14982
14989
  break;
14983
14990
  }
14984
14991
  if (type2 === "window sill" && containsObbPoints(obb1, array2[k].points)) {
14992
+ if (size.x < 0.2 || size.y < 0.2 || size.z < 0.2) {
14993
+ array2[k].isDel = true;
14994
+ continue;
14995
+ }
14985
14996
  array1[e].isDel = true;
14986
14997
  break;
14987
14998
  }
14988
14999
  if (type2 === "window sill" && containsObbPoints(obb2, array1[e].points)) {
15000
+ if (size.x < 0.2 || size.y < 0.2 || size.z < 0.2) {
15001
+ array2[k].isDel = true;
15002
+ continue;
15003
+ }
14989
15004
  array1[e].isDel = true;
14990
15005
  break;
14991
15006
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.174",
3
+ "version": "1.0.176",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",