rm-graphical-computing-node 1.0.141 → 1.0.142
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 +14 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10079,8 +10079,18 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
|
|
|
10079
10079
|
for (let j = 0; j < targetData.array.length; j++) {
|
|
10080
10080
|
const targetItem = targetData.array[j];
|
|
10081
10081
|
if (targetItem.obb == null) continue;
|
|
10082
|
-
if (targetType == "window" && sourceType == "balcony railing"
|
|
10083
|
-
|
|
10082
|
+
if (targetType == "window" && sourceType == "balcony railing") {
|
|
10083
|
+
if (!targetItem.isHasTie)
|
|
10084
|
+
continue;
|
|
10085
|
+
const size1 = new THREE8.Vector3();
|
|
10086
|
+
sourceItem.obb.getSize(size1);
|
|
10087
|
+
let maxLen1 = size1.x > size1.y ? size1.x : size1.y;
|
|
10088
|
+
const size2 = new THREE8.Vector3();
|
|
10089
|
+
targetItem.obb.getSize(size2);
|
|
10090
|
+
let maxLen2 = size2.x > size2.y ? size2.x : size2.y;
|
|
10091
|
+
if (Math.abs(maxLen1 - maxLen2) > 0.5 || maxLen1 > maxLen2) {
|
|
10092
|
+
continue;
|
|
10093
|
+
}
|
|
10084
10094
|
}
|
|
10085
10095
|
if (targetType == "window" && sourceType == "metal framing of interior glass partitions") {
|
|
10086
10096
|
let tol = 0.5;
|
|
@@ -14663,7 +14673,7 @@ var getFlatSlabData = (lines, runDataList, pointCloudCluster = null) => {
|
|
|
14663
14673
|
maxHeightTrajectoryPt.set(runDataList[i].x, runDataList[i].y, runDataList[i].z);
|
|
14664
14674
|
}
|
|
14665
14675
|
}
|
|
14666
|
-
const averageZ = totalZ / (runDataList.length - 1)
|
|
14676
|
+
const averageZ = totalZ / (runDataList.length - 1);
|
|
14667
14677
|
let maxPointsNum = 0;
|
|
14668
14678
|
let maxPointsZ = 0;
|
|
14669
14679
|
for (const line2 of lines) {
|
|
@@ -14726,7 +14736,7 @@ var getFlatSlabData = (lines, runDataList, pointCloudCluster = null) => {
|
|
|
14726
14736
|
}
|
|
14727
14737
|
const newSlabDatas = [];
|
|
14728
14738
|
for (const slabData of slabDatas) {
|
|
14729
|
-
if (slabData.averagePz >= maxPointsZ || slabData.averagePz >= averageZ
|
|
14739
|
+
if (slabData.averagePz >= maxPointsZ || slabData.averagePz >= averageZ) {
|
|
14730
14740
|
newSlabDatas.push(slabData);
|
|
14731
14741
|
}
|
|
14732
14742
|
}
|