rm-graphical-computing-node 1.0.112 → 1.0.113
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 +5 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4564,7 +4564,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
4564
4564
|
let targeVec = new THREE5.Vector3();
|
|
4565
4565
|
let ptClose = line3.closestPointToPoint(ptCenter, true, targeVec);
|
|
4566
4566
|
let dist2 = ptCenter.distanceTo(ptClose);
|
|
4567
|
-
if (dist2 < 0.
|
|
4567
|
+
if (dist2 < 0.2) {
|
|
4568
4568
|
let dist1 = beamSt.distanceTo(doorSt);
|
|
4569
4569
|
let dist22 = beamEd.distanceTo(doorSt);
|
|
4570
4570
|
if (dist1 > 0.25 && dist22 > 0.25) {
|
|
@@ -4723,11 +4723,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
4723
4723
|
}
|
|
4724
4724
|
}
|
|
4725
4725
|
if (addData) {
|
|
4726
|
-
if (id == 4 && index == 33)
|
|
4727
|
-
console.log("height11:", height);
|
|
4728
4726
|
const expansionData = expansionLine(doorTmpSt, doorTmpEd, beamTmpSt, beamTmpEd, height, line2.originalPoints);
|
|
4729
|
-
if (id == 4 && index == 33)
|
|
4730
|
-
console.log("height22:", height);
|
|
4731
4727
|
if (expansionData) {
|
|
4732
4728
|
doorTmpSt = expansionData.pt1;
|
|
4733
4729
|
doorTmpEd = expansionData.pt2;
|
|
@@ -4913,7 +4909,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
4913
4909
|
const lineLength = doorAndBeamDataObj.doorStart.distanceTo(doorAndBeamDataObj.doorEnd);
|
|
4914
4910
|
let Z = getPointsMinAndMax(line2.originalPoints);
|
|
4915
4911
|
doorAndBeamDataObj.lineIsOnlyBeam = Z.minZ > line2.start.z && Z.minZ - line2.start.z > 1;
|
|
4916
|
-
if (isDoor && nearWall) {
|
|
4912
|
+
if (isDoor && nearWall && !isPullOutDoor) {
|
|
4917
4913
|
if (findDoorDataIndex != -1) {
|
|
4918
4914
|
if (!beforePcdDoorIsFindBeam) {
|
|
4919
4915
|
pcdData[doorDatas[findDoorDataIndex].index].isFindBeam = false;
|
|
@@ -5137,7 +5133,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
5137
5133
|
tmpDoorBeamData.doorOpenEndPoint = doorAndBeamDataObj.doorOpenEndPoint.clone();
|
|
5138
5134
|
tmpDoorBeamData.doorOpenVector = doorAndBeamDataObj.doorOpenVector.clone();
|
|
5139
5135
|
}
|
|
5140
|
-
} else if (length1 > length22 && !lineIsOnlyBeam1 && doorAndBeamDataObj.type
|
|
5136
|
+
} else if (length1 > length22 && !lineIsOnlyBeam1 && doorAndBeamDataObj.type != "hole" || lineIsOnlyBeam2 || holeTyp2) {
|
|
5141
5137
|
if (lineIsOnlyBeam2 || holeTyp2) {
|
|
5142
5138
|
vecNegate = vecNegate.negate();
|
|
5143
5139
|
vec2 = vec2.negate();
|
|
@@ -14558,6 +14554,8 @@ var checkWindowAndDoorIsTrue = async (lines, runDataList, collectDataPath, point
|
|
|
14558
14554
|
for (let u4 = 0; u4 < windowLines[i].checkResults.length; u4++)
|
|
14559
14555
|
len = windowLines[i].checkResults[u4].allCenterPoints.length;
|
|
14560
14556
|
const allCenterPoints = windowLines[i].allCenterPoints;
|
|
14557
|
+
if (!allCenterPoints || !allCenterPoints.length)
|
|
14558
|
+
continue;
|
|
14561
14559
|
let newPoints = [];
|
|
14562
14560
|
if (pointCloudCluster != null) {
|
|
14563
14561
|
let clusterResult = pointCloudCluster([allCenterPoints], {
|