rm-graphical-computing-node 1.0.133 → 1.0.134

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 +21 -19
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -15260,25 +15260,6 @@ var getWindowData = (lines, pcdData, lineReader) => {
15260
15260
  height += addHeight;
15261
15261
  }
15262
15262
  }
15263
- let isOverlap = false;
15264
- for (let m = 0; m < allDoorLines1.length; m++) {
15265
- let result = classifySegments(allDoorLines1[m].start, allDoorLines1[m].end, doorTmpSt, doorTmpEd);
15266
- if (result && result.type == "collinear_overlap" && result.maxPerpendicularDistance < 0.07) {
15267
- isOverlap = true;
15268
- }
15269
- }
15270
- if (isOverlap) {
15271
- if (findDoorDataIndex != -1) {
15272
- if (!beforePcdDoorisFindWindow) {
15273
- pcdData[windowDatas[findDoorDataIndex].index].isFindWindow = false;
15274
- windowDatas[findDoorDataIndex].isFind = false;
15275
- }
15276
- }
15277
- continue;
15278
- }
15279
- let afterDoorLen = doorTmpEd.distanceTo(doorTmpSt);
15280
- if (afterDoorLen < 0.4 && !isWindow || afterDoorLen < 0.3 && isWindow)
15281
- continue;
15282
15263
  const windowPcd = windowDatas[findDoorDataIndex];
15283
15264
  const windowPcdSt = windowPcd.windowStartPt.clone();
15284
15265
  const windowPcdEd = windowPcd.windowEndPt.clone();
@@ -15394,6 +15375,27 @@ var getWindowData = (lines, pcdData, lineReader) => {
15394
15375
  beamTmpEd = doorTmpEd.clone();
15395
15376
  beamTmpSt.z = beamTmpEd.z = windowPcd.maxZ;
15396
15377
  }
15378
+ let isOverlap = false;
15379
+ for (let m = 0; m < allDoorLines1.length; m++) {
15380
+ let result = classifySegments(allDoorLines1[m].start, allDoorLines1[m].end, doorTmpSt, doorTmpEd);
15381
+ console.log(result);
15382
+ if (result && result.type == "collinear_overlap" && result.maxPerpendicularDistance < 0.07) {
15383
+ isOverlap = true;
15384
+ }
15385
+ }
15386
+ console.log("isOverlap", isOverlap);
15387
+ if (isOverlap) {
15388
+ if (findDoorDataIndex != -1) {
15389
+ if (!beforePcdDoorisFindWindow) {
15390
+ pcdData[windowDatas[findDoorDataIndex].index].isFindWindow = false;
15391
+ windowDatas[findDoorDataIndex].isFind = false;
15392
+ }
15393
+ }
15394
+ continue;
15395
+ }
15396
+ let afterDoorLen = doorTmpEd.distanceTo(doorTmpSt);
15397
+ if (afterDoorLen < 0.4 && !isWindow || afterDoorLen < 0.3 && isWindow)
15398
+ continue;
15397
15399
  let doorType = "";
15398
15400
  let groundClearance = doorTmpSt.z - line2.start.z > 1e-4 ? doorTmpSt.z - line2.start.z : 0;
15399
15401
  windowHeight = beamTmpSt.z - doorTmpSt.z;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.133",
3
+ "version": "1.0.134",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",