rm-graphical-computing-node 1.0.137 → 1.0.139

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 -9
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -14974,6 +14974,7 @@ var getWindowData = (lines, pcdData, lineReader) => {
14974
14974
  windowDatas.push({
14975
14975
  windowStartPt,
14976
14976
  windowEndPt,
14977
+ length: length2,
14977
14978
  boxPoints,
14978
14979
  minZ: window.coordinatesByArea.heightData.minZ,
14979
14980
  maxZ: window.coordinatesByArea.heightData.maxZ,
@@ -15087,8 +15088,7 @@ var getWindowData = (lines, pcdData, lineReader) => {
15087
15088
  if (length2 < 3.5) {
15088
15089
  for (let n = 0; n < windowDatas.length; n++) {
15089
15090
  if (windowDatas[n].isFind) {
15090
- if (line2.length < lines[windowDatas[n].findLineIndex[0]]?.length)
15091
- continue;
15091
+ continue;
15092
15092
  }
15093
15093
  let doorSt = new THREE10.Vector3(windowDatas[n].windowStartPt.x, windowDatas[n].windowStartPt.y, 0);
15094
15094
  let doorEd = new THREE10.Vector3(windowDatas[n].windowEndPt.x, windowDatas[n].windowEndPt.y, 0);
@@ -15161,9 +15161,10 @@ var getWindowData = (lines, pcdData, lineReader) => {
15161
15161
  }
15162
15162
  }
15163
15163
  }
15164
- if (length2 < 1.5 && findDoorDataIndex !== -1) {
15164
+ if (length2 < 1.5 && findDoorDataIndex === -1) {
15165
15165
  for (let n = 0; n < windowDatas.length; n++) {
15166
15166
  if (windowDatas[n].inWall || windowDatas[n].isFind) continue;
15167
+ if (length2 * 2 < windowDatas[n].length) continue;
15167
15168
  let doorSt = new THREE10.Vector3(windowDatas[n].windowStartPt.x, windowDatas[n].windowStartPt.y, 0);
15168
15169
  let doorEd = new THREE10.Vector3(windowDatas[n].windowEndPt.x, windowDatas[n].windowEndPt.y, 0);
15169
15170
  let beamSt = new THREE10.Vector3(beamTmpEd.x, beamTmpEd.y, 0);
@@ -15462,13 +15463,8 @@ var getWindowData = (lines, pcdData, lineReader) => {
15462
15463
  continue;
15463
15464
  }
15464
15465
  line2.windowIdToCheckResults.push([region.index, id]);
15465
- if (windowDatas[findDoorDataIndex].findLineIndex.length > 0) {
15466
- let lineIndex = windowDatas[findDoorDataIndex].findLineIndex[0];
15467
- let windowDataIndex = windowDatas[findDoorDataIndex].findLineIndex[1];
15468
- lines[lineIndex].windowData.splice(windowDataIndex, 1);
15469
- }
15470
- windowDatas[findDoorDataIndex].findLineIndex = [index, line2.windowData.length - 1];
15471
15466
  line2.windowData.push(doorAndBeamDataObj);
15467
+ windowDatas[findDoorDataIndex].findLineIndex = [index, line2.windowData.length - 1];
15472
15468
  doorBeamDataIndex.push({
15473
15469
  linesIndex: index,
15474
15470
  doorIndex: line2.windowData.length - 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.137",
3
+ "version": "1.0.139",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",