rm-graphical-computing-node 1.0.115 → 1.0.117

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 +8 -9
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -4945,7 +4945,6 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
4945
4945
  "hole";
4946
4946
  }
4947
4947
  if (dataType == "beam" && findDoorFrame) {
4948
- console.log("id", id, lineLength);
4949
4948
  dataType = "hole";
4950
4949
  }
4951
4950
  doorAndBeamDataObj.type = dataType;
@@ -5697,9 +5696,9 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
5697
5696
  }
5698
5697
  for (let h = 0; h < line4.doorAndBeamIdToCheckResults.length; h++) {
5699
5698
  if (line4.doorAndBeamIdToCheckResults[h][1] == data4.id)
5700
- newDoorAndBeamIdToCheckResults.push([line4.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length, id]);
5699
+ newDoorAndBeamIdToCheckResults.push([line4.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length - 1, id]);
5701
5700
  else
5702
- newDoorAndBeamIdToCheckResults.push(line4.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length, line4.doorAndBeamIdToCheckResults[h][1]);
5701
+ newDoorAndBeamIdToCheckResults.push(line4.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length - 1, line4.doorAndBeamIdToCheckResults[h][1]);
5703
5702
  }
5704
5703
  }
5705
5704
  let tmpDoorPoints3 = [line3.start, line3.end, line4.start, line4.end];
@@ -5801,9 +5800,9 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
5801
5800
  }
5802
5801
  for (let h = 0; h < line22.doorAndBeamIdToCheckResults.length; h++) {
5803
5802
  if (line22.doorAndBeamIdToCheckResults[h][1] == data2.id)
5804
- newDoorAndBeamIdToCheckResults.push([line22.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length, id]);
5803
+ newDoorAndBeamIdToCheckResults.push([line22.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length - 1, id]);
5805
5804
  else
5806
- newDoorAndBeamIdToCheckResults.push(line22.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length, line22.doorAndBeamIdToCheckResults[h][1]);
5805
+ newDoorAndBeamIdToCheckResults.push(line22.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length - 1, line22.doorAndBeamIdToCheckResults[h][1]);
5807
5806
  }
5808
5807
  let tmpDoorPoints3 = [line2.start, line2.end, line22.start, line22.end];
5809
5808
  let twoPoint3 = getFarthestPoints(tmpDoorPoints3);
@@ -5923,9 +5922,9 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
5923
5922
  }
5924
5923
  for (let h = 0; h < line22.doorAndBeamIdToCheckResults.length; h++) {
5925
5924
  if (line22.doorAndBeamIdToCheckResults[h][1] == data2.id)
5926
- newDoorAndBeamIdToCheckResults.push([line22.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length, id]);
5925
+ newDoorAndBeamIdToCheckResults.push([line22.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length - 1, id]);
5927
5926
  else
5928
- newDoorAndBeamIdToCheckResults.push(line22.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length, line22.doorAndBeamIdToCheckResults[h][1]);
5927
+ newDoorAndBeamIdToCheckResults.push(line22.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length - 1, line22.doorAndBeamIdToCheckResults[h][1]);
5929
5928
  }
5930
5929
  let tmpDoorPoints3 = [line2.start, line2.end, line22.start, line22.end];
5931
5930
  let twoPoint3 = getFarthestPoints(tmpDoorPoints3);
@@ -5998,9 +5997,9 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
5998
5997
  }
5999
5998
  for (let h = 0; h < line4.doorAndBeamIdToCheckResults.length; h++) {
6000
5999
  if (line4.doorAndBeamIdToCheckResults[h][1] == data4.id)
6001
- newDoorAndBeamIdToCheckResults2.push([line4.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length, id]);
6000
+ newDoorAndBeamIdToCheckResults2.push([line4.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length - 1, id]);
6002
6001
  else
6003
- newDoorAndBeamIdToCheckResults2.push(line4.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length, line4.doorAndBeamIdToCheckResults[h][1]);
6002
+ newDoorAndBeamIdToCheckResults2.push(line4.doorAndBeamIdToCheckResults[h][0] + data1LineIndex.checkResults.length - 1, line4.doorAndBeamIdToCheckResults[h][1]);
6004
6003
  }
6005
6004
  let tmpDoorPoints4 = [line3.start, line3.end, line4.start, line4.end];
6006
6005
  let twoPoint4 = getFarthestPoints(tmpDoorPoints4);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.115",
3
+ "version": "1.0.117",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",