rm-graphical-computing-node 1.0.66 → 1.0.67

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 +9 -20
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -4755,8 +4755,6 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
4755
4755
  else
4756
4756
  dataType = nearWall && lineLength > 0.8 ? "beam" : "hole";
4757
4757
  }
4758
- if (dataType != "beam" && lines[index].isLine2)
4759
- continue;
4760
4758
  doorAndBeamDataObj.type = dataType;
4761
4759
  doorAndBeamDataObj.wallBelowBeam = wallBelowBeam;
4762
4760
  for (let w2 = 0; w2 < doorBeamDataIndex.length; w2++) {
@@ -4823,15 +4821,13 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
4823
4821
  let Z1 = getPointsMinAndMax(lines[doorBeamDataIndex[w2].linesIndex].originalPoints);
4824
4822
  let Z2 = getPointsMinAndMax(line2.originalPoints);
4825
4823
  lines[doorBeamDataIndex[w2].linesIndex].originalPoints = null;
4826
- if (Z1.minZ > lines[doorBeamDataIndex[w2].linesIndex].start.z && Z1.minZ - lines[doorBeamDataIndex[w2].linesIndex].start.z > 1 && Z2.minZ > line2.start.z && Z2.minZ - line2.start.z > 1) {
4827
- lineIsOnlyBeam1 = length1 > length22;
4828
- lineIsOnlyBeam2 = length1 < length22;
4829
- if (length22 > length1) {
4830
- doorAndBeamDataObj.isExtend = true;
4831
- }
4832
- if (length1 > length22) {
4833
- lines[doorBeamDataIndex[w2].linesIndex].isExtend = true;
4834
- }
4824
+ lineIsOnlyBeam1 = length1 > length22;
4825
+ lineIsOnlyBeam2 = length1 < length22;
4826
+ if (length22 > length1) {
4827
+ doorAndBeamDataObj.isExtend = true;
4828
+ }
4829
+ if (length1 > length22) {
4830
+ lines[doorBeamDataIndex[w2].linesIndex].isExtend = true;
4835
4831
  }
4836
4832
  }
4837
4833
  if (length1 < length22 && !lineIsOnlyBeam2 || lineIsOnlyBeam1) {
@@ -4911,6 +4907,8 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
4911
4907
  }
4912
4908
  }
4913
4909
  }
4910
+ if (dataType != "beam" && lines[index].isLine2 && doorAndBeamDataObj.nearId == -1)
4911
+ continue;
4914
4912
  if (doorAndBeamDataObj.nearId != -1 && dataType == "hole") {
4915
4913
  let isBreak = false;
4916
4914
  for (let x = 0; x < lines.length; x++) {
@@ -5157,15 +5155,6 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
5157
5155
  if (onProgress != null)
5158
5156
  onProgress(100);
5159
5157
  }
5160
- let tmpLines = [];
5161
- for (let i = 0; i < lines.length; i++) {
5162
- if (!lines[i].isLine2)
5163
- tmpLines.push(lines[i]);
5164
- if (lines[i].isLine2 && lines[i].doorAndBeamData.length != 0)
5165
- tmpLines.push(lines[i]);
5166
- }
5167
- lines.length = 0;
5168
- lines.push(...tmpLines);
5169
5158
  return { lines, beamGroup, pcdData };
5170
5159
  };
5171
5160
  var checkBeamIsReasonable = async (lines, lineReader) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.66",
3
+ "version": "1.0.67",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",