rm-graphical-computing-node 1.0.50 → 1.0.52
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 -6
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10966,11 +10966,14 @@ var getObliqueSlabData = (lines, runDataList, pointCloudCluster = null) => {
|
|
|
10966
10966
|
let area2 = calculatePolygonArea(path3);
|
|
10967
10967
|
if (area2 < 1) continue;
|
|
10968
10968
|
getPathZ(path3, newPoints[x]);
|
|
10969
|
+
const { minZ, maxZ } = getPointsMinAndMax(newPoints[x]);
|
|
10969
10970
|
slabDatas.push({
|
|
10970
10971
|
// points: newPoints[x],
|
|
10971
10972
|
contour: path3,
|
|
10972
|
-
|
|
10973
|
-
|
|
10973
|
+
minZ,
|
|
10974
|
+
maxZ
|
|
10975
|
+
// normal: lines[i][0],
|
|
10976
|
+
// area: area
|
|
10974
10977
|
});
|
|
10975
10978
|
}
|
|
10976
10979
|
}
|
|
@@ -11498,12 +11501,12 @@ var getWindowData = (lines, pcdData, lineReader) => {
|
|
|
11498
11501
|
beamTmpSt.z = beamTmpEd.z = windowPcd.maxZ;
|
|
11499
11502
|
let doorType = "";
|
|
11500
11503
|
let groundClearance = doorTmpSt.z - line2.start.z > 1e-4 ? doorTmpSt.z - line2.start.z : 0;
|
|
11501
|
-
let
|
|
11504
|
+
let windowHeight = beamTmpSt.z - doorTmpSt.z;
|
|
11502
11505
|
let doorAndBeamDataObj = {
|
|
11503
11506
|
id,
|
|
11504
|
-
windowTopSt: new THREE10.Vector3(doorTmpSt.x, doorTmpSt.y, doorTmpSt.z +
|
|
11505
|
-
windowTopEd: new THREE10.Vector3(doorTmpEd.x, doorTmpEd.y, doorTmpEd.z +
|
|
11506
|
-
|
|
11507
|
+
windowTopSt: new THREE10.Vector3(doorTmpSt.x, doorTmpSt.y, doorTmpSt.z + windowHeight),
|
|
11508
|
+
windowTopEd: new THREE10.Vector3(doorTmpEd.x, doorTmpEd.y, doorTmpEd.z + windowHeight),
|
|
11509
|
+
windowHeight,
|
|
11507
11510
|
windowBottomSt: doorTmpSt,
|
|
11508
11511
|
windowBottomEd: doorTmpEd,
|
|
11509
11512
|
// nearId: -1,
|