rm-graphical-computing-node 1.0.109 → 1.0.110
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 +23 -9
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4801,7 +4801,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
4801
4801
|
}
|
|
4802
4802
|
if (isPPPP && isPPPP.angle > 85 && !wallBelowBeam) {
|
|
4803
4803
|
doorAndBeamDataObj.beamNearWallVec = new THREE5.Vector3().subVectors(ptClose66, tmpPt66).normalize();
|
|
4804
|
-
if (doorAndBeamDataObj.beamStart.z > lines[x].rooftopPz - 0.
|
|
4804
|
+
if (doorAndBeamDataObj.beamStart.z > lines[x].rooftopPz - 0.05 && length2 > 1) {
|
|
4805
4805
|
wallBelowBeam = true;
|
|
4806
4806
|
} else
|
|
4807
4807
|
wallBelowBeam = false;
|
|
@@ -4830,7 +4830,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
4830
4830
|
}
|
|
4831
4831
|
inLinePts2 = inLinePtsTmp;
|
|
4832
4832
|
inLinePts2 = uniqueVector3ByTolerance(inLinePts2);
|
|
4833
|
-
if (inLinePts2.length <
|
|
4833
|
+
if (inLinePts2.length < 100) continue;
|
|
4834
4834
|
let twoPoint = getFarthestPoints(inLinePts2);
|
|
4835
4835
|
if (twoPoint.length == 2) {
|
|
4836
4836
|
let twoPointLength = twoPoint[0].distanceTo(twoPoint[1]);
|
|
@@ -4906,7 +4906,8 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
4906
4906
|
if (lineLength > 1.5 || isExtendBeam)
|
|
4907
4907
|
dataType = "beam";
|
|
4908
4908
|
else
|
|
4909
|
-
dataType = nearWall && lineLength > 0.8 ? "beam" :
|
|
4909
|
+
dataType = /**nearWall && lineLength > 0.8 ? "beam" : */
|
|
4910
|
+
"hole";
|
|
4910
4911
|
}
|
|
4911
4912
|
doorAndBeamDataObj.type = dataType;
|
|
4912
4913
|
doorAndBeamDataObj.wallBelowBeam = wallBelowBeam;
|
|
@@ -5077,8 +5078,10 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
5077
5078
|
console.log(doorAndBeamDataObj.beamStart.distanceTo(doorAndBeamDataObj.beamEnd));
|
|
5078
5079
|
}
|
|
5079
5080
|
}
|
|
5080
|
-
|
|
5081
|
-
|
|
5081
|
+
let holeTyp1 = doorAndBeamDataObj.type == "hole" && length1 > length22;
|
|
5082
|
+
let holeTyp2 = doorAndBeamDataObj.type == "hole" && length1 < length22;
|
|
5083
|
+
if (length1 < length22 && !lineIsOnlyBeam2 && doorAndBeamDataObj.type != "hole" || lineIsOnlyBeam1 || holeTyp1) {
|
|
5084
|
+
if (lineIsOnlyBeam1 || holeTyp1) {
|
|
5082
5085
|
vecNegate = vecNegate.negate();
|
|
5083
5086
|
vec2 = vec2.negate();
|
|
5084
5087
|
}
|
|
@@ -5110,8 +5113,8 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
5110
5113
|
tmpDoorBeamData.doorOpenEndPoint = doorAndBeamDataObj.doorOpenEndPoint.clone();
|
|
5111
5114
|
tmpDoorBeamData.doorOpenVector = doorAndBeamDataObj.doorOpenVector.clone();
|
|
5112
5115
|
}
|
|
5113
|
-
} else if (length1 > length22 && !lineIsOnlyBeam1 || lineIsOnlyBeam2) {
|
|
5114
|
-
if (lineIsOnlyBeam2) {
|
|
5116
|
+
} else if (length1 > length22 && !lineIsOnlyBeam1 && doorAndBeamDataObj.type == "hole" || lineIsOnlyBeam2 || holeTyp2) {
|
|
5117
|
+
if (lineIsOnlyBeam2 || holeTyp2) {
|
|
5115
5118
|
vecNegate = vecNegate.negate();
|
|
5116
5119
|
vec2 = vec2.negate();
|
|
5117
5120
|
}
|
|
@@ -13877,7 +13880,9 @@ var getWindowData = (lines, pcdData, lineReader) => {
|
|
|
13877
13880
|
//是否在墙内
|
|
13878
13881
|
name: window.name,
|
|
13879
13882
|
rectPts: window.coordinatesByArea.coordinates,
|
|
13880
|
-
obj_id: window.obj_id
|
|
13883
|
+
obj_id: window.obj_id,
|
|
13884
|
+
findLineIndex: []
|
|
13885
|
+
//存储的数据格式是[[线索引,线的windowData索引]]
|
|
13881
13886
|
});
|
|
13882
13887
|
}
|
|
13883
13888
|
}
|
|
@@ -14018,7 +14023,10 @@ var getWindowData = (lines, pcdData, lineReader) => {
|
|
|
14018
14023
|
if (!line2.isLine2) {
|
|
14019
14024
|
if (length2 < 3.5) {
|
|
14020
14025
|
for (let n = 0; n < windowDatas.length; n++) {
|
|
14021
|
-
if (windowDatas[n].isFind)
|
|
14026
|
+
if (windowDatas[n].isFind) {
|
|
14027
|
+
if (line2.length < lines[windowDatas[n].findLineIndex[0]].length)
|
|
14028
|
+
continue;
|
|
14029
|
+
}
|
|
14022
14030
|
let doorSt = new THREE10.Vector3(windowDatas[n].windowStartPt.x, windowDatas[n].windowStartPt.y, 0);
|
|
14023
14031
|
let doorEd = new THREE10.Vector3(windowDatas[n].windowEndPt.x, windowDatas[n].windowEndPt.y, 0);
|
|
14024
14032
|
let beamSt = new THREE10.Vector3(tmpRegion.facePoints[0].x, tmpRegion.facePoints[0].y, 0);
|
|
@@ -14358,6 +14366,12 @@ var getWindowData = (lines, pcdData, lineReader) => {
|
|
|
14358
14366
|
obj_id: windowObj_id
|
|
14359
14367
|
};
|
|
14360
14368
|
line2.windowIdToCheckResults.push([region.index, id]);
|
|
14369
|
+
if (windowDatas[findDoorDataIndex].findLineIndex.length > 0) {
|
|
14370
|
+
let lineIndex = windowDatas[findDoorDataIndex].findLineIndex[0];
|
|
14371
|
+
let windowDataIndex = windowDatas[findDoorDataIndex].findLineIndex[1];
|
|
14372
|
+
lines[lineIndex].windowData.splice(windowDataIndex, 1);
|
|
14373
|
+
}
|
|
14374
|
+
windowDatas[findDoorDataIndex].findLineIndex = [index, line2.windowData.length - 1];
|
|
14361
14375
|
line2.windowData.push(doorAndBeamDataObj);
|
|
14362
14376
|
doorBeamDataIndex.push({
|
|
14363
14377
|
linesIndex: index,
|