rm-graphical-computing-node 1.0.174 → 1.0.175
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 +20 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -14511,10 +14511,7 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
|
|
|
14511
14511
|
if (cloneData.type == "pipe" && array[k].type == "pipe" && pipeIsVerticalJ != pipeIsVerticalK) {
|
|
14512
14512
|
continue;
|
|
14513
14513
|
}
|
|
14514
|
-
if (
|
|
14515
|
-
/**array[k].type == 'door frame' || */
|
|
14516
|
-
array[k].type == "window" || array[k].type == "metal framing of interior glass partitions" || array[k].type == "pipe" || array[k].type == "balcony railing"
|
|
14517
|
-
) {
|
|
14514
|
+
if (array[k].type == "door frame" || array[k].type == "window" || array[k].type == "metal framing of interior glass partitions" || array[k].type == "pipe" || array[k].type == "balcony railing") {
|
|
14518
14515
|
let tol = array[k].type == "door frame" ? 0.5 : 0.5;
|
|
14519
14516
|
let boxVecK = getObbLongSideDirection(array[k].obb);
|
|
14520
14517
|
let obbPointsClone = getOBBPoints(cloneData.obb);
|
|
@@ -14661,7 +14658,7 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
|
|
|
14661
14658
|
}
|
|
14662
14659
|
}
|
|
14663
14660
|
}
|
|
14664
|
-
let SpecialTreatment = ["window", "balcony railing"];
|
|
14661
|
+
let SpecialTreatment = ["window", "balcony railing", "door frame", "door"];
|
|
14665
14662
|
for (let i = 0; i < SpecialTreatment.length; i++) {
|
|
14666
14663
|
const windowArray = pcdPointsArr.find((item) => item.type === SpecialTreatment[i]);
|
|
14667
14664
|
if (windowArray) {
|
|
@@ -14973,19 +14970,37 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
|
|
|
14973
14970
|
}
|
|
14974
14971
|
} else if (type1 === "door") {
|
|
14975
14972
|
if (type2 === "window") {
|
|
14973
|
+
const size = new THREE8.Vector3();
|
|
14974
|
+
array2[k].obb.getSize(size);
|
|
14976
14975
|
if (type2 === "window" && containsObbPoints(obb1, array2[k].points)) {
|
|
14976
|
+
if (size.x < 0.2 || size.y < 0.2 || size.z < 0.2) {
|
|
14977
|
+
array2[k].isDel = true;
|
|
14978
|
+
continue;
|
|
14979
|
+
}
|
|
14977
14980
|
array1[e].isDel = true;
|
|
14978
14981
|
break;
|
|
14979
14982
|
}
|
|
14980
14983
|
if (type2 === "window" && containsObbPoints(obb2, array1[e].points)) {
|
|
14984
|
+
if (size.x < 0.2 || size.y < 0.2 || size.z < 0.2) {
|
|
14985
|
+
array2[k].isDel = true;
|
|
14986
|
+
continue;
|
|
14987
|
+
}
|
|
14981
14988
|
array1[e].isDel = true;
|
|
14982
14989
|
break;
|
|
14983
14990
|
}
|
|
14984
14991
|
if (type2 === "window sill" && containsObbPoints(obb1, array2[k].points)) {
|
|
14992
|
+
if (size.x < 0.2 || size.y < 0.2 || size.z < 0.2) {
|
|
14993
|
+
array2[k].isDel = true;
|
|
14994
|
+
continue;
|
|
14995
|
+
}
|
|
14985
14996
|
array1[e].isDel = true;
|
|
14986
14997
|
break;
|
|
14987
14998
|
}
|
|
14988
14999
|
if (type2 === "window sill" && containsObbPoints(obb2, array1[e].points)) {
|
|
15000
|
+
if (size.x < 0.2 || size.y < 0.2 || size.z < 0.2) {
|
|
15001
|
+
array2[k].isDel = true;
|
|
15002
|
+
continue;
|
|
15003
|
+
}
|
|
14989
15004
|
array1[e].isDel = true;
|
|
14990
15005
|
break;
|
|
14991
15006
|
}
|