rm-graphical-computing-node 1.0.142 → 1.0.143

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 +5 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -4590,7 +4590,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
4590
4590
  const doorAndDoorFrameDatas = [...doorDatas];
4591
4591
  doorAndDoorFrameDatas.push(...doorFrame);
4592
4592
  if (!line2.isLine2) {
4593
- if (length2 < 3.5) {
4593
+ if (length2 < 2.5) {
4594
4594
  for (let n = 0; n < doorAndDoorFrameDatas.length; n++) {
4595
4595
  let doorSt = new THREE5.Vector3(doorAndDoorFrameDatas[n].doorStartPt.x, doorAndDoorFrameDatas[n].doorStartPt.y, 0);
4596
4596
  let doorEd = new THREE5.Vector3(doorAndDoorFrameDatas[n].doorEndPt.x, doorAndDoorFrameDatas[n].doorEndPt.y, 0);
@@ -4675,7 +4675,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
4675
4675
  doorTmpSt.z = doorTmpEd.z = tmpRegion.facePoints[0].z;
4676
4676
  }
4677
4677
  }
4678
- if (length2 > 1.5) {
4678
+ if (length2 > 1.3) {
4679
4679
  if (doorAndDoorFrameDatas[n].category === "door frame") {
4680
4680
  findDoorFrame = true;
4681
4681
  continue;
@@ -5104,6 +5104,8 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
5104
5104
  if (tmpDoorBeamData.isDoor || doorAndBeamDataObj.isDoor) {
5105
5105
  tmpDoorBeamData.isDoor = true;
5106
5106
  doorAndBeamDataObj.isDoor = true;
5107
+ tmpDoorBeamData.type = "door";
5108
+ doorAndBeamDataObj.type = "door";
5107
5109
  }
5108
5110
  if (tmpDoorBeamData.doorType != "")
5109
5111
  doorAndBeamDataObj.doorType = tmpDoorBeamData.doorType;
@@ -10092,7 +10094,7 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
10092
10094
  continue;
10093
10095
  }
10094
10096
  }
10095
- if (targetType == "window" && sourceType == "metal framing of interior glass partitions") {
10097
+ if (targetType == "window" && sourceType == "metal framing of interior glass partitions" || targetType == "window" && sourceType == "balcony railing") {
10096
10098
  let tol = 0.5;
10097
10099
  let f = calculateClosePointWithOBB(sourceItem.points, targetItem.obb);
10098
10100
  let boxVecJ = getObbLongSideDirection(targetItem.obb);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.142",
3
+ "version": "1.0.143",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",