rm-graphical-computing-node 1.0.140 → 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.
Files changed (2) hide show
  1. package/dist/index.mjs +14 -9
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -6348,11 +6348,6 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
6348
6348
  line2.checkResults = null;
6349
6349
  }
6350
6350
  lines = lines.filter((l) => !l.isRebuild);
6351
- for (let i = 0; i < lines.length; i++) {
6352
- const line2 = lines[i];
6353
- line2.originalPoints = lineReader.getOriginalPointsById(line2.id);
6354
- line2.checkResults = lineReader.getLineCheckReultsById(line2.id);
6355
- }
6356
6351
  return { lines, beamGroup, pcdData };
6357
6352
  };
6358
6353
  var checkBeamIsReasonable = async (lines, lineReader) => {
@@ -10084,8 +10079,18 @@ var getMergeMeaning = (allProjectionResults, wallLines, wallVerifyType, averageP
10084
10079
  for (let j = 0; j < targetData.array.length; j++) {
10085
10080
  const targetItem = targetData.array[j];
10086
10081
  if (targetItem.obb == null) continue;
10087
- if (targetType == "window" && sourceType == "balcony railing" && !targetItem.isHasTie) {
10088
- continue;
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
+ }
10089
10094
  }
10090
10095
  if (targetType == "window" && sourceType == "metal framing of interior glass partitions") {
10091
10096
  let tol = 0.5;
@@ -14668,7 +14673,7 @@ var getFlatSlabData = (lines, runDataList, pointCloudCluster = null) => {
14668
14673
  maxHeightTrajectoryPt.set(runDataList[i].x, runDataList[i].y, runDataList[i].z);
14669
14674
  }
14670
14675
  }
14671
- const averageZ = totalZ / (runDataList.length - 1) + 0.5;
14676
+ const averageZ = totalZ / (runDataList.length - 1);
14672
14677
  let maxPointsNum = 0;
14673
14678
  let maxPointsZ = 0;
14674
14679
  for (const line2 of lines) {
@@ -14731,7 +14736,7 @@ var getFlatSlabData = (lines, runDataList, pointCloudCluster = null) => {
14731
14736
  }
14732
14737
  const newSlabDatas = [];
14733
14738
  for (const slabData of slabDatas) {
14734
- if (slabData.averagePz >= maxPointsZ || slabData.averagePz >= averageZ - 0.5) {
14739
+ if (slabData.averagePz >= maxPointsZ || slabData.averagePz >= averageZ) {
14735
14740
  newSlabDatas.push(slabData);
14736
14741
  }
14737
14742
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.140",
3
+ "version": "1.0.142",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",