rm-graphical-computing-node 1.0.65 → 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.
- package/dist/index.mjs +9 -20
- 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++) {
|
|
@@ -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) => {
|