rm-graphical-computing-node 1.0.136 → 1.0.137
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 +16 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10087,6 +10087,19 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
|
|
|
10087
10087
|
const f2 = calculateClosePointWithOBB(array1[e].points, obb2);
|
|
10088
10088
|
const isMaxBox = compareBoxVolume(obb1, obb2);
|
|
10089
10089
|
if (type1 !== "wall" && type1 !== "floor" && type1 !== "roof" && type1 != "door frame" && type2 != "door frame") {
|
|
10090
|
+
if (type1 == "metal framing of interior glass partitions") {
|
|
10091
|
+
let f = calculateClosePointWithOBB(array1[e].points, array2[k].obb, 1);
|
|
10092
|
+
if (f > 0.8) {
|
|
10093
|
+
array1[e].isDel = true;
|
|
10094
|
+
break;
|
|
10095
|
+
}
|
|
10096
|
+
} else if (type2 == "metal framing of interior glass partitions") {
|
|
10097
|
+
let f = calculateClosePointWithOBB(array2[k].points, array1[e].obb, 1);
|
|
10098
|
+
if (f > 0.8) {
|
|
10099
|
+
array2[k].isDel = true;
|
|
10100
|
+
continue;
|
|
10101
|
+
}
|
|
10102
|
+
}
|
|
10090
10103
|
if (type1 === "window") {
|
|
10091
10104
|
const size1 = new THREE8.Vector3();
|
|
10092
10105
|
obb1.getSize(size1);
|
|
@@ -15390,12 +15403,10 @@ var getWindowData = (lines, pcdData, lineReader) => {
|
|
|
15390
15403
|
let isOverlap = false;
|
|
15391
15404
|
for (let m = 0; m < allDoorLines1.length; m++) {
|
|
15392
15405
|
let result = classifySegments(allDoorLines1[m].start, allDoorLines1[m].end, doorTmpSt, doorTmpEd);
|
|
15393
|
-
console.log(result);
|
|
15394
15406
|
if (result && result.type == "collinear_overlap" && result.maxPerpendicularDistance < 0.07) {
|
|
15395
15407
|
isOverlap = true;
|
|
15396
15408
|
}
|
|
15397
15409
|
}
|
|
15398
|
-
console.log("isOverlap", isOverlap);
|
|
15399
15410
|
if (isOverlap) {
|
|
15400
15411
|
if (findDoorDataIndex != -1) {
|
|
15401
15412
|
if (!beforePcdDoorisFindWindow) {
|
|
@@ -15976,7 +15987,9 @@ var getDoorPcdData = (lines, pcdData, needFindOtherDoor = true) => {
|
|
|
15976
15987
|
let ptStart2 = getPt3(line3.start);
|
|
15977
15988
|
let ptEnd2 = getPt3(line3.end);
|
|
15978
15989
|
ptStart2.z = ptEnd2.z = ptMid1.z;
|
|
15979
|
-
let classify = classifySegments(ptMid1, ptMid2, ptStart2, ptEnd2
|
|
15990
|
+
let classify = classifySegments(ptMid1, ptMid2, ptStart2, ptEnd2, {
|
|
15991
|
+
collinearAngleMax: THREE11.MathUtils.degToRad(10)
|
|
15992
|
+
});
|
|
15980
15993
|
if (classify.type == "collinear_overlap" && classify.maxPerpendicularDistance < pcdToLineDist) {
|
|
15981
15994
|
eligibilityLines.push(line3);
|
|
15982
15995
|
eligibilityLinesIndexs.push(j);
|