rm-graphical-computing-node 1.0.84 → 1.0.85

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.
Files changed (2) hide show
  1. package/dist/index.mjs +20 -2
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -5812,8 +5812,26 @@ var getColLine = async (lines, runDataList, collectDataPath, pointCloudCluster =
5812
5812
  y: p.y
5813
5813
  })
5814
5814
  });
5815
+ function lineSkip(line2) {
5816
+ if (!line2 || line2.isDoor || line2.doorAndBeamData && line2.doorAndBeamData.length > 0 || line2.drawWindow && line2.drawWindow.length > 0 || line2.isHoleWindow)
5817
+ return true;
5818
+ return false;
5819
+ }
5820
+ for (let i = 0; i < result.length; i++) {
5821
+ result[i].isSkip = false;
5822
+ if (result[i].uuids.length < 4 || result[i].area < minArea || result[i].area > maxArea) {
5823
+ result[i].isSkip = true;
5824
+ continue;
5825
+ }
5826
+ for (let j = 0; j < result[i].lineIndexes.length; j++) {
5827
+ if (lineSkip(lines[result[i].lineIndexes[j]])) {
5828
+ result[i].isSkip = true;
5829
+ break;
5830
+ }
5831
+ }
5832
+ }
5815
5833
  for (let i = 0; i < result.length; i++) {
5816
- if (result[i].uuids.length < 4 || result[i].area < minArea || result[i].area > maxArea)
5834
+ if (result[i].isSkip)
5817
5835
  continue;
5818
5836
  let isRect = false;
5819
5837
  let overlapWallLines = [];
@@ -6134,7 +6152,7 @@ var getColLine = async (lines, runDataList, collectDataPath, pointCloudCluster =
6134
6152
  if (tmpLineData.checkResults.length != 1) continue;
6135
6153
  lines2.push(tmpLineData);
6136
6154
  }
6137
- await penetratingTask(lines2, trajectoryObj, collectDataPath, 0.5);
6155
+ await penetratingTask(lines2, trajectoryObj, collectDataPath, 0.3);
6138
6156
  for (let i = 0; i < lines2.length; i++) {
6139
6157
  let len = lines2[i].checkResults[0].allCenterPoints.length;
6140
6158
  const allCenterPoints = lines2[i].allCenterPoints;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",