rm-graphical-computing-node 1.0.154 → 1.0.155
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 +10 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -14067,7 +14067,7 @@ var drawStaircase = (pcdPointsArr, scene) => {
|
|
|
14067
14067
|
}
|
|
14068
14068
|
return pointCloudGroup;
|
|
14069
14069
|
};
|
|
14070
|
-
var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averagePz2, pointCloudCluster = null, tolerancePointCloudCluster = 0.2) => {
|
|
14070
|
+
var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averagePz2, pointCloudCluster = null, tolerancePointCloudCluster = 0.2, wallLinesDelPs = 0.2) => {
|
|
14071
14071
|
if (allProjectionResults.length == 0) return [];
|
|
14072
14072
|
if (!averagePz2) averagePz2 = allProjectionResults[0].averagePz;
|
|
14073
14073
|
const pcdPointsArr = [];
|
|
@@ -14127,9 +14127,14 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
|
|
|
14127
14127
|
threePointsStr.push(`${allProjectionResults[i].points[u4].x},${allProjectionResults[i].points[u4].y},${allProjectionResults[i].points[u4].z}`);
|
|
14128
14128
|
}
|
|
14129
14129
|
if (wallLines) {
|
|
14130
|
-
if (wallVerifyType.type1 && wallVerifyType.type1.length && wallVerifyType.type1.includes(word))
|
|
14130
|
+
if (wallVerifyType.type1 && wallVerifyType.type1.length && wallVerifyType.type1.includes(word)) {
|
|
14131
|
+
let beforeLen = threePoints.length;
|
|
14131
14132
|
threePoints = checkNearObjects(grid, rectRegions, threePoints);
|
|
14132
|
-
|
|
14133
|
+
let afterLen = threePoints.length;
|
|
14134
|
+
let ps = afterLen / beforeLen;
|
|
14135
|
+
if (ps < wallLinesDelPs)
|
|
14136
|
+
continue;
|
|
14137
|
+
} else if (wallVerifyType.type2 && wallVerifyType.type2.length && wallVerifyType.type2.includes(word))
|
|
14133
14138
|
threePoints = checkNearObjects(grid, rectRegions, threePoints, true);
|
|
14134
14139
|
}
|
|
14135
14140
|
let floorZ = -99999;
|
|
@@ -14270,6 +14275,7 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
|
|
|
14270
14275
|
targetItem.points.push(sourceItem.points[m]);
|
|
14271
14276
|
}
|
|
14272
14277
|
let tmpPoints = targetItem.points.map((p) => [p.x, p.y]);
|
|
14278
|
+
tmpPoints = voxelDownsample2DForContour(tmpPoints, 0.1);
|
|
14273
14279
|
if (targetType == "window" && sourceType == "metal framing of interior glass partitions") {
|
|
14274
14280
|
targetItem.isHasTie = true;
|
|
14275
14281
|
}
|
|
@@ -14350,7 +14356,7 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
|
|
|
14350
14356
|
let polygonK = array[k].path.map((point2) => new THREE8.Vector3(point2[0], point2[1], 0));
|
|
14351
14357
|
let polygonJ = cloneData.path.map((point2) => new THREE8.Vector3(point2[0], point2[1], 0));
|
|
14352
14358
|
let f = getPolygonIntersectionRatio(polygonK, polygonJ);
|
|
14353
|
-
if (boxVecJ.length > 0.2 && boxVecK.length > 0.2 || f >
|
|
14359
|
+
if (boxVecJ.length > 0.2 && boxVecK.length > 0.2 || f > 30) {
|
|
14354
14360
|
let isPPPP = isParallel(boxVecJ.direction, boxVecK.direction, tol);
|
|
14355
14361
|
if ((!isPPPP || !isPPPP.parallel) && f < 80) {
|
|
14356
14362
|
continue;
|