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.
- package/dist/index.mjs +10 -13
- 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
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
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)
|