rm-graphical-computing-node 1.0.83 → 1.0.84

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 +4 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -12487,6 +12487,7 @@ import { randomUUID as randomUUID2 } from "crypto";
12487
12487
  var getDoorPcdData = (lines, pcdData) => {
12488
12488
  if (!lines || !lines.length || !pcdData || !pcdData.length)
12489
12489
  return lines;
12490
+ const pcdToLineDist = 0.1;
12490
12491
  for (let i = 0; i < pcdData.length; i++) {
12491
12492
  const pcd = pcdData[i];
12492
12493
  if (pcd.category != "door" || pcd.isFindBeam)
@@ -12524,7 +12525,7 @@ var getDoorPcdData = (lines, pcdData) => {
12524
12525
  let ptEnd2 = getPt3(line3.end);
12525
12526
  ptStart2.z = ptEnd2.z = ptMid1.z;
12526
12527
  let classify = classifySegments(ptMid1, ptMid2, ptStart2, ptEnd2);
12527
- if (classify.type == "collinear_overlap" && classify.maxPerpendicularDistance < 0.3) {
12528
+ if (classify.type == "collinear_overlap" && classify.maxPerpendicularDistance < pcdToLineDist) {
12528
12529
  eligibilityLines.push(line3);
12529
12530
  eligibilityLinesIndexs.push(j);
12530
12531
  }
@@ -12556,8 +12557,8 @@ var getDoorPcdData = (lines, pcdData) => {
12556
12557
  const line2 = tmpLines[maxIndex];
12557
12558
  let ptStart = getPt3(line2.start);
12558
12559
  let ptEnd = getPt3(line2.end);
12559
- let intersect1 = segmentsIntersect2D(ptStart, ptEnd, ptShortSt1, ptShortEd1, 0.3);
12560
- let intersect2 = segmentsIntersect2D(ptStart, ptEnd, ptShortSt2, ptShortEd2, 0.3);
12560
+ let intersect1 = segmentsIntersect2D(ptStart, ptEnd, ptShortSt1, ptShortEd1, pcdToLineDist);
12561
+ let intersect2 = segmentsIntersect2D(ptStart, ptEnd, ptShortSt2, ptShortEd2, pcdToLineDist);
12561
12562
  if (intersect1 != null && intersect2 != null) {
12562
12563
  if (line2.mergeIndexs) {
12563
12564
  let tmpIndex = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.83",
3
+ "version": "1.0.84",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",