rm-graphical-computing-node 1.0.170 → 1.0.171
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 +12 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -17998,6 +17998,8 @@ var getWindowData = (lines, pcdData, lineReader) => {
|
|
|
17998
17998
|
let beamEd = new THREE10.Vector3(tmpRegion.facePoints[1].x, tmpRegion.facePoints[1].y, 0);
|
|
17999
17999
|
let bIsTrue = true;
|
|
18000
18000
|
let bIsSoTall = Math.abs(tmpRegion.facePoints[2].z - windowDatas[n].maxZ) > 0.2;
|
|
18001
|
+
if (windowDatas[n].maxZ < doorTmpSt.z || Math.abs(windowDatas[n].maxZ - doorTmpSt.z) < 0.3)
|
|
18002
|
+
continue;
|
|
18001
18003
|
if (bIsTrue) {
|
|
18002
18004
|
let result = classifySegments(doorSt.clone(), doorEd.clone(), beamSt.clone(), beamEd.clone(), {
|
|
18003
18005
|
collinearAngleMax: THREE10.MathUtils.degToRad(10),
|
|
@@ -18460,6 +18462,11 @@ var getWindowData = (lines, pcdData, lineReader) => {
|
|
|
18460
18462
|
lines[findDoorIndexs[j]].windowData = savedata2;
|
|
18461
18463
|
}
|
|
18462
18464
|
}
|
|
18465
|
+
for (let i = 0; i < lines.length; i++) {
|
|
18466
|
+
const line2 = lines[i];
|
|
18467
|
+
line2.originalPoints = lineReader.getOriginalPointsById(line2.id);
|
|
18468
|
+
line2.checkResults = lineReader.getLineCheckReultsById(line2.id);
|
|
18469
|
+
}
|
|
18463
18470
|
return { lines, pcdData };
|
|
18464
18471
|
};
|
|
18465
18472
|
var checkWindowAndDoorIsTrue = async (lines, runDataList, collectDataPath, pointCloudCluster = null) => {
|
|
@@ -18924,12 +18931,12 @@ var getWindowPcdData = (lines, pcdData) => {
|
|
|
18924
18931
|
lines.push(newLine2);
|
|
18925
18932
|
if (newLine3.originalPoints.length > 10 && newLine3.length > 0.01)
|
|
18926
18933
|
lines.push(newLine3);
|
|
18927
|
-
pcd.
|
|
18934
|
+
pcd.isPcdFindWindow = true;
|
|
18928
18935
|
line2.isRebuild = true;
|
|
18929
18936
|
} else {
|
|
18930
18937
|
line2.drawWindow.push(windowData);
|
|
18931
18938
|
line2.isWindow = true;
|
|
18932
|
-
pcd.
|
|
18939
|
+
pcd.isPcdFindWindow = true;
|
|
18933
18940
|
}
|
|
18934
18941
|
}
|
|
18935
18942
|
}
|
|
@@ -20581,9 +20588,7 @@ var getArcWallLine = (lines) => {
|
|
|
20581
20588
|
const arcGroups = detectArcSegmentGroups(lines, {
|
|
20582
20589
|
minSegments: 3
|
|
20583
20590
|
});
|
|
20584
|
-
console.log(arcGroups);
|
|
20585
20591
|
const arc = [];
|
|
20586
|
-
const pathArc = [];
|
|
20587
20592
|
let delIndex = [];
|
|
20588
20593
|
for (let i = 0; i < arcGroups.length; i++) {
|
|
20589
20594
|
if (delIndex.includes(i))
|
|
@@ -20650,7 +20655,6 @@ var getArcWallLine = (lines) => {
|
|
|
20650
20655
|
if (!delIndex.includes(i))
|
|
20651
20656
|
mergeIndexs.push(arcGroups[i]);
|
|
20652
20657
|
}
|
|
20653
|
-
console.log(mergeIndexs);
|
|
20654
20658
|
for (let i = 0; i < mergeIndexs.length; i++) {
|
|
20655
20659
|
const acceptedArcSegments = mergeIndexs[i].segmentIndices;
|
|
20656
20660
|
let pts = [];
|
|
@@ -20673,7 +20677,6 @@ var getArcWallLine = (lines) => {
|
|
|
20673
20677
|
161
|
|
20674
20678
|
);
|
|
20675
20679
|
const threeData = curve.map((p) => new THREE12.Vector3(p.x, p.y, 0));
|
|
20676
|
-
pathArc.push(threeData);
|
|
20677
20680
|
const points2D = threeData.map(
|
|
20678
20681
|
(p) => new THREE12.Vector2(p.x, p.y)
|
|
20679
20682
|
);
|
|
@@ -20696,7 +20699,9 @@ var getArcWallLine = (lines) => {
|
|
|
20696
20699
|
controlPointStart: { x: P1.x, y: P1.y, z: floorZ },
|
|
20697
20700
|
controlPointEnd: { x: P2.x, y: P2.y, z: floorZ }
|
|
20698
20701
|
},
|
|
20699
|
-
rooftopPz
|
|
20702
|
+
rooftopPz,
|
|
20703
|
+
originalPoints: pts,
|
|
20704
|
+
path: threeData
|
|
20700
20705
|
});
|
|
20701
20706
|
}
|
|
20702
20707
|
}
|