rm-graphical-computing-node 1.0.58 → 1.0.59
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 +8 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4093,7 +4093,8 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
4093
4093
|
let doorTmpEd = tmpRegion.facePoints[1].clone();
|
|
4094
4094
|
let isExtendBeam = false;
|
|
4095
4095
|
let findDoorDataIndex = -1;
|
|
4096
|
-
|
|
4096
|
+
let doorSill = 0.3;
|
|
4097
|
+
if (Math.abs(tmpRegion.facePoints[0].z - line2.start.z) < doorSill) {
|
|
4097
4098
|
let isInsert = false;
|
|
4098
4099
|
for (let k = 0; k < runDataList.length; k++) {
|
|
4099
4100
|
let next = k + 1;
|
|
@@ -4469,7 +4470,10 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
|
|
|
4469
4470
|
}
|
|
4470
4471
|
}
|
|
4471
4472
|
}
|
|
4472
|
-
if (
|
|
4473
|
+
if (
|
|
4474
|
+
/**!isPullOutDoor && */
|
|
4475
|
+
length2 < 1.5
|
|
4476
|
+
) {
|
|
4473
4477
|
for (let n = 0; n < doorDatas.length; n++) {
|
|
4474
4478
|
if (doorDatas[n].inWall) continue;
|
|
4475
4479
|
let doorSt = new THREE5.Vector3(doorDatas[n].doorStartPt.x, doorDatas[n].doorStartPt.y, 0);
|
|
@@ -5629,6 +5633,7 @@ function clonePoint(p) {
|
|
|
5629
5633
|
|
|
5630
5634
|
// src/geometry/colLine.mjs
|
|
5631
5635
|
import * as gfx from "rm-gxf-computing-rusts";
|
|
5636
|
+
import { existsSync } from "fs";
|
|
5632
5637
|
var getColLine = async (lines, runDataList, collectDataPath, pointCloudCluster = null) => {
|
|
5633
5638
|
if (!lines || lines.length <= 0) return;
|
|
5634
5639
|
let colDatas = {
|
|
@@ -5958,7 +5963,7 @@ var getColLine = async (lines, runDataList, collectDataPath, pointCloudCluster =
|
|
|
5958
5963
|
colDatas.threeEdgeRect.push(colIndexs);
|
|
5959
5964
|
}
|
|
5960
5965
|
}
|
|
5961
|
-
if (colDatas.threeEdgeRect) {
|
|
5966
|
+
if (colDatas.threeEdgeRect.length > 0 && existsSync(collectDataPath)) {
|
|
5962
5967
|
let trajectoryObj = {};
|
|
5963
5968
|
for (let r = 0; r < runDataList.length; r++) {
|
|
5964
5969
|
trajectoryObj[r] = runDataList[r];
|