rm-graphical-computing-node 1.0.66 → 1.0.68

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 +10 -13
  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++) {
@@ -11312,12 +11310,11 @@ var getWindowData = (lines, pcdData, lineReader) => {
11312
11310
  let nearDist = 0.25;
11313
11311
  for (let index = 0; index < lines.length; index++) {
11314
11312
  let line2 = lines[index];
11313
+ line2.windowData = [];
11315
11314
  if (line2.length < 0.5) continue;
11316
11315
  if (line2.noDetection) continue;
11317
11316
  line2.originalPoints = lineReader.getOriginalPointsById(line2.id);
11318
11317
  line2.checkResults = lineReader.getLineCheckReultsById(line2.id);
11319
- if (!line2.windowData)
11320
- line2.windowData = [];
11321
11318
  if (!line2.windowIdToCheckResults)
11322
11319
  line2.windowIdToCheckResults = [];
11323
11320
  if (!line2.mergeCheckRegion || line2.mergeCheckRegion.length == 0)
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.68",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",