rm-graphical-computing-node 1.0.146 → 1.0.148

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 +106 -48
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -6349,7 +6349,8 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
6349
6349
  category: door.category,
6350
6350
  length: length2,
6351
6351
  width,
6352
- rectPts: door.coordinatesByArea.coordinates
6352
+ rectPts: door.coordinatesByArea.coordinates,
6353
+ obj_id: door.obj_id
6353
6354
  });
6354
6355
  }
6355
6356
  if (door.category == "door frame") {
@@ -6535,6 +6536,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
6535
6536
  continue;
6536
6537
  let addData = false;
6537
6538
  let isDoor = false;
6539
+ let obj_id = null;
6538
6540
  let findDoorFrame = false;
6539
6541
  let beforePcdDoorIsFindBeam = false;
6540
6542
  let doorOpenEndPoint = new THREE5.Vector3(0, 0, 0);
@@ -6642,7 +6644,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
6642
6644
  const ptInsertTmp = segmentsIntersect2D(tmpLineStart, tmpLineEnd, tmpOtherLineStart, tmpOtherLineEnd, 0.1);
6643
6645
  let isPerpendicularInfo = perpendicularInfo(tmpLineStart, tmpLineEnd, tmpOtherLineStart, tmpOtherLineEnd);
6644
6646
  if (ptInsertTmp != null) {
6645
- if (isPerpendicularInfo && isPerpendicularInfo.angle > 79) {
6647
+ if (isPerpendicularInfo && isPerpendicularInfo.angle > 40) {
6646
6648
  let dist00 = ptInsertTmp.point.distanceTo(tmpLineStart);
6647
6649
  let dist01 = ptInsertTmp.point.distanceTo(tmpLineEnd);
6648
6650
  if (dist00 < 0.3) {
@@ -6749,7 +6751,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
6749
6751
  const ptInsertTmp = segmentsIntersect2D(tmpLineStart, tmpLineEnd, tmpOtherLineStart, tmpOtherLineEnd, 0.03);
6750
6752
  let isPerpendicularInfo = perpendicularInfo(tmpLineStart, tmpLineEnd, tmpOtherLineStart, tmpOtherLineEnd);
6751
6753
  if (ptInsertTmp != null) {
6752
- if (isPerpendicularInfo && isPerpendicularInfo.angle > 79) {
6754
+ if (isPerpendicularInfo && isPerpendicularInfo.angle > 40) {
6753
6755
  let dist00 = ptInsertTmp.point.distanceTo(tmpLineStart);
6754
6756
  let dist01 = ptInsertTmp.point.distanceTo(tmpLineEnd);
6755
6757
  if (dist01 < 0.3) {
@@ -6880,6 +6882,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
6880
6882
  isDoor = true;
6881
6883
  isPullOutDoor = true;
6882
6884
  pcbDoorIndexs.push(doorAndDoorFrameDatas[n].index);
6885
+ obj_id = doorAndDoorFrameDatas[n].obj_id;
6883
6886
  doorAndDoorFrameDatas[n].isFind = true;
6884
6887
  findDoorDataIndex = n;
6885
6888
  beforePcdDoorIsFindBeam = pcdData[doorAndDoorFrameDatas[n].index].isFindBeam;
@@ -6906,35 +6909,31 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
6906
6909
  let distTmp1 = beamSt.distanceTo(beamEd);
6907
6910
  let distTmp2 = doorEd.distanceTo(doorSt);
6908
6911
  if (Math.abs(distTmp1 - result.overlap) < 0.25 || Math.abs(distTmp2 - result.overlap) < 0.25) {
6909
- if (distTmp2 > distTmp1 && Math.abs(distTmp2 - result.overlap) > 1 && doorAndDoorFrameDatas[n].category === "door") {
6910
- let dist1 = beamSt.distanceTo(doorSt);
6911
- let dist2 = beamSt.distanceTo(doorEd);
6912
- let dist3 = beamEd.distanceTo(doorSt);
6913
- let dist4 = beamEd.distanceTo(doorEd);
6914
- let dist5 = dist1 < dist2 ? dist1 : dist2;
6915
- let dist6 = dist3 < dist4 ? dist3 : dist4;
6916
- let beamVec = new THREE5.Vector3().subVectors(beamSt, beamEd).normalize();
6917
- let addDoorLen = distTmp2 - result.overlap;
6918
- if (dist5 < dist6) {
6919
- beamVec.negate();
6920
- beamTmpSt = tmpRegion.facePoints[2].clone().addScaledVector(beamVec, addDoorLen);
6921
- beamTmpEd = tmpRegion.facePoints[3].clone();
6922
- doorTmpSt = beamTmpEd.clone();
6923
- doorTmpEd = beamTmpSt.clone();
6924
- doorTmpSt.z = doorTmpEd.z = tmpRegion.facePoints[0].z;
6925
- } else {
6926
- beamTmpSt = tmpRegion.facePoints[2].clone();
6927
- beamTmpEd = tmpRegion.facePoints[3].clone().addScaledVector(beamVec, addDoorLen);
6928
- doorTmpSt = beamTmpEd.clone();
6929
- doorTmpEd = beamTmpSt.clone();
6930
- doorTmpSt.z = doorTmpEd.z = tmpRegion.facePoints[0].z;
6931
- }
6912
+ if (distTmp2 > distTmp1 && Math.abs(distTmp2 - result.overlap) > 0.5 && doorAndDoorFrameDatas[n].category === "door") {
6913
+ let Line3Tmp = new THREE5.Line3(getPt3(line2.start), getPt3(line2.end));
6914
+ let tmpDoorSt = doorSt.clone();
6915
+ let tmpDoorEd = doorEd.clone();
6916
+ tmpDoorSt.z = tmpDoorEd.z = line2.start.z;
6917
+ let ptClose1 = Line3Tmp.closestPointToPoint(doorSt, true, new THREE5.Vector3());
6918
+ let ptClose2 = Line3Tmp.closestPointToPoint(doorEd, true, new THREE5.Vector3());
6919
+ ptClose1.z = ptClose2.z = doorTmpSt.z;
6920
+ let dist1 = ptClose1.distanceTo(doorTmpSt);
6921
+ let dist2 = ptClose2.distanceTo(doorTmpSt);
6922
+ if (dist1 > dist2)
6923
+ [ptClose1, ptClose2] = [ptClose2, ptClose1];
6924
+ doorTmpSt = ptClose1.clone();
6925
+ doorTmpEd = ptClose2.clone();
6926
+ beamTmpSt = doorTmpEd.clone();
6927
+ beamTmpEd = doorTmpSt.clone();
6928
+ beamTmpSt.z = beamTmpEd.z = tmpRegion.facePoints[2].z;
6929
+ length2 = beamTmpSt.distanceTo(beamTmpEd);
6932
6930
  }
6933
6931
  if (length2 > 1.3) {
6934
6932
  if (doorAndDoorFrameDatas[n].category === "door frame") {
6935
6933
  findDoorFrame = true;
6936
6934
  continue;
6937
6935
  }
6936
+ obj_id = doorAndDoorFrameDatas[n].obj_id;
6938
6937
  isDoor = true;
6939
6938
  isPullOutDoor = true;
6940
6939
  pcbDoorIndexs.push(doorAndDoorFrameDatas[n].index);
@@ -7020,6 +7019,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
7020
7019
  beforePcdDoorIsFindBeam = pcdData[doorAndDoorFrameDatas[n].index].isFindBeam;
7021
7020
  pcdData[doorAndDoorFrameDatas[n].index].isFindBeam = true;
7022
7021
  isDoor = true;
7022
+ obj_id = doorAndDoorFrameDatas[n].obj_id;
7023
7023
  doorAndDoorFrameDatas[n].isFind = true;
7024
7024
  findDoorDataIndex = n;
7025
7025
  }
@@ -7085,7 +7085,8 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
7085
7085
  doorOpenEndPoint,
7086
7086
  doorOpenVector,
7087
7087
  lineIsOnlyBeam: false,
7088
- groundClearance
7088
+ groundClearance,
7089
+ obj_id
7089
7090
  };
7090
7091
  let nearDistTmp = Infinity;
7091
7092
  let findNearDoorIndex = false;
@@ -7881,7 +7882,8 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
7881
7882
  type: "onlyDoor",
7882
7883
  isDoor: true,
7883
7884
  beamNearWallVec: new THREE5.Vector3(0, 0, 0),
7884
- groundClearance: 0
7885
+ groundClearance: 0,
7886
+ obj_id: doorDatas[n].obj_id
7885
7887
  });
7886
7888
  pcdData[doorDatas[n].index].isFindBeam = true;
7887
7889
  pcdData[doorDatas[n].index].isFindOnlyDoor = true;
@@ -7932,7 +7934,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
7932
7934
  let dist3 = data1.doorEnd.distanceTo(data2.doorStart);
7933
7935
  let dist4 = data1.doorEnd.distanceTo(data2.doorEnd);
7934
7936
  let isData1AndData2 = classifySegments(data1.doorStart, data1.doorEnd, data2.doorStart, data2.doorEnd);
7935
- if (dist1 > maxNearDist && dist2 > maxNearDist && dist3 > maxNearDist && dist4 > maxNearDist || !isData1AndData2 || isData1AndData2.type != "collinear_gap")
7937
+ if (dist1 > maxNearDist && dist2 > maxNearDist && dist3 > maxNearDist && dist4 > maxNearDist || !isData1AndData2 || isData1AndData2.type != "collinear_gap" || isData1AndData2.maxPerpendicularDistance > 0.1)
7936
7938
  continue;
7937
7939
  let twoPoint = getFarthestPoints(tmpDoorPoints);
7938
7940
  if (twoPoint.length != 2) continue;
@@ -7977,7 +7979,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
7977
7979
  let dist3 = data1.doorEnd.distanceTo(data2.doorStart);
7978
7980
  let dist4 = data1.doorEnd.distanceTo(data2.doorEnd);
7979
7981
  let isData1AndData2 = classifySegments(data1.doorStart, data1.doorEnd, data2.doorStart, data2.doorEnd);
7980
- if (dist1 > maxNearDist && dist2 > maxNearDist && dist3 > maxNearDist && dist4 > maxNearDist || !isData1AndData2 || isData1AndData2.type != "collinear_gap")
7982
+ if (dist1 > maxNearDist && dist2 > maxNearDist && dist3 > maxNearDist && dist4 > maxNearDist || !isData1AndData2 || isData1AndData2.type != "collinear_gap" || isData1AndData2.maxPerpendicularDistance > 0.1)
7981
7983
  continue;
7982
7984
  let twoPoint = getFarthestPoints(tmpDoorPoints);
7983
7985
  if (twoPoint.length != 2) continue;
@@ -8006,12 +8008,12 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
8006
8008
  const line4End = new THREE5.Vector3(line4.end.x, line4.end.y, line4.end.z);
8007
8009
  let isLine3AndLine4 = classifySegments(line3Start, line3End, line4Start, line4End);
8008
8010
  let isSameLine = data1NearIdIndex[0] == data2NearIdIndex[0];
8009
- if (!isLine3AndLine4 || isLine3AndLine4.type != "collinear_gap" && !isSameLine)
8011
+ if (!isLine3AndLine4 || isLine3AndLine4.type != "collinear_gap" || isLine3AndLine4.maxPerpendicularDistance > 0.1 || !isSameLine)
8010
8012
  continue;
8011
8013
  const data3 = line3.doorAndBeamData[data1NearIdIndex[1]];
8012
8014
  const data4 = line4.doorAndBeamData[data2NearIdIndex[1]];
8013
8015
  let isData3AndData4 = classifySegments(data3.doorStart, data3.doorEnd, data4.doorStart, data4.doorEnd);
8014
- if (!isData3AndData4 || isData3AndData4.type != "collinear_gap")
8016
+ if (!isData3AndData4 || isData3AndData4.type != "collinear_gap" || isData3AndData4.maxPerpendicularDistance > 0.1)
8015
8017
  continue;
8016
8018
  let newData = {
8017
8019
  id,
@@ -8154,7 +8156,7 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
8154
8156
  let dist3 = data1.doorEnd.distanceTo(data2.doorStart);
8155
8157
  let dist4 = data1.doorEnd.distanceTo(data2.doorEnd);
8156
8158
  let isData1AndData2 = classifySegments(data1.doorStart, data1.doorEnd, data2.doorStart, data2.doorEnd);
8157
- if (dist1 > maxNearDist && dist2 > maxNearDist && dist3 > maxNearDist && dist4 > maxNearDist || !isData1AndData2 || isData1AndData2.type != "collinear_gap")
8159
+ if (dist1 > maxNearDist && dist2 > maxNearDist && dist3 > maxNearDist && dist4 > maxNearDist || !isData1AndData2 || isData1AndData2.type != "collinear_gap" || isData1AndData2.maxPerpendicularDistance > 0.1)
8158
8160
  continue;
8159
8161
  let twoPoint = getFarthestPoints(tmpDoorPoints);
8160
8162
  if (twoPoint.length != 2) continue;
@@ -8272,12 +8274,12 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
8272
8274
  const line4Start = new THREE5.Vector3(line4.start.x, line4.start.y, line4.start.z);
8273
8275
  const line4End = new THREE5.Vector3(line4.end.x, line4.end.y, line4.end.z);
8274
8276
  let isLine3AndLine4 = classifySegments(line3Start, line3End, line4Start, line4End);
8275
- if (!isLine3AndLine4 || isLine3AndLine4.type != "collinear_gap" && lines[data1NearIdIndex[0]] != lines[data2NearIdIndex[0]])
8277
+ if (!isLine3AndLine4 || isLine3AndLine4.type != "collinear_gap" || isLine3AndLine4.maxPerpendicularDistance > 0.1)
8276
8278
  continue;
8277
8279
  const data3 = line3.doorAndBeamData[data1NearIdIndex[1]];
8278
8280
  const data4 = line4.doorAndBeamData[data2NearIdIndex[1]];
8279
8281
  let isData3AndData4 = classifySegments(data3.doorStart, data3.doorEnd, data4.doorStart, data4.doorEnd);
8280
- if (!isData3AndData4 || isData3AndData4.type != "collinear_gap")
8282
+ if (!isData3AndData4 || isData3AndData4.type != "collinear_gap" || isData3AndData4.maxPerpendicularDistance > 0.1)
8281
8283
  continue;
8282
8284
  let newData = {
8283
8285
  id,
@@ -8453,8 +8455,6 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
8453
8455
  line2.checkResults = lineReader.getLineCheckReultsById(line2.id);
8454
8456
  for (let i = 0; i < line2.doorAndBeamData.length; i++) {
8455
8457
  const doorAndBeamObj = line2.doorAndBeamData[i];
8456
- if (doorAndBeamObj.type != "door")
8457
- continue;
8458
8458
  let ptDoorSt = doorAndBeamObj.doorStart.clone();
8459
8459
  let ptDoorEd = doorAndBeamObj.doorEnd.clone();
8460
8460
  if (ptStart.distanceTo(ptDoorSt) > ptStart.distanceTo(ptDoorEd))
@@ -8481,15 +8481,67 @@ var getBeamLine = async (lines, runDataList, pcdData, lineReader, lineEditor, on
8481
8481
  const newDrawWindowData2 = [];
8482
8482
  const newDrawWindowData3 = [];
8483
8483
  if (line2.drawWindow) {
8484
+ let direction = getPt3(line2.direction).normalize();
8484
8485
  for (let j = 0; j < line2.drawWindow.length; j++) {
8485
8486
  let p = getPt3(line2.drawWindow[j].p);
8486
8487
  p.z = line2.start.z;
8487
- if (isPointOnLine2(ptStart, ptDoorSt, p, 1e-3, true))
8488
+ if (isPointOnLine2(ptStart, ptDoorSt, p, 1e-3, true)) {
8489
+ let ptW1 = p.clone().addScaledVector(direction, line2.drawWindow[j].width / 2);
8490
+ let ptW2 = p.clone().addScaledVector(direction, -line2.drawWindow[j].width / 2);
8491
+ let isOnLine1 = isPointOnLine2(ptStart, ptDoorSt, ptW1, 1e-3, true);
8492
+ let isOnLine2 = isPointOnLine2(ptStart, ptDoorSt, ptW2, 1e-3, true);
8493
+ if (!isOnLine1 && isOnLine2) {
8494
+ let dist1 = ptW1.distanceTo(ptStart);
8495
+ let dist2 = ptW1.distanceTo(ptDoorSt);
8496
+ let otherWindowPt = ptStart.clone();
8497
+ if (dist1 > dist2)
8498
+ otherWindowPt = ptDoorSt.clone();
8499
+ let dist3 = otherWindowPt.distanceTo(ptW2);
8500
+ let midPt = getMid(otherWindowPt, ptW2);
8501
+ line2.drawWindow[j].p = midPt;
8502
+ line2.drawWindow[j].width = dist3;
8503
+ } else if (isOnLine1 && !isOnLine2) {
8504
+ let dist1 = ptW2.distanceTo(ptStart);
8505
+ let dist2 = ptW2.distanceTo(ptDoorSt);
8506
+ let otherWindowPt = ptStart.clone();
8507
+ if (dist1 > dist2)
8508
+ otherWindowPt = ptDoorSt.clone();
8509
+ let dist3 = otherWindowPt.distanceTo(ptW1);
8510
+ let midPt = getMid(otherWindowPt, ptW1);
8511
+ line2.drawWindow[j].p = midPt;
8512
+ line2.drawWindow[j].width = dist3;
8513
+ }
8488
8514
  newDrawWindowData1.push(line2.drawWindow[j]);
8489
- else if (isPointOnLine2(ptDoorSt, ptDoorEd, p, 1e-3, true))
8515
+ } else if (isPointOnLine2(ptDoorSt, ptDoorEd, p, 1e-3, true))
8490
8516
  newDrawWindowData2.push(line2.drawWindow[j]);
8491
- else if (isPointOnLine2(ptDoorEd, ptEnd, p, 1e-3, true))
8517
+ else if (isPointOnLine2(ptDoorEd, ptEnd, p, 1e-3, true)) {
8518
+ let ptW1 = p.clone().addScaledVector(direction, line2.drawWindow[j].width / 2);
8519
+ let ptW2 = p.clone().addScaledVector(direction, -line2.drawWindow[j].width / 2);
8520
+ let isOnLine1 = isPointOnLine2(ptDoorEd, ptEnd, ptW1, 1e-3, true);
8521
+ let isOnLine2 = isPointOnLine2(ptDoorEd, ptEnd, ptW2, 1e-3, true);
8522
+ if (!isOnLine1 && isOnLine2) {
8523
+ let dist1 = ptW1.distanceTo(ptDoorEd);
8524
+ let dist2 = ptW1.distanceTo(ptEnd);
8525
+ let otherWindowPt = ptDoorEd.clone();
8526
+ if (dist1 > dist2)
8527
+ otherWindowPt = ptEnd.clone();
8528
+ let dist3 = otherWindowPt.distanceTo(ptW2);
8529
+ let midPt = getMid(otherWindowPt, ptW2);
8530
+ line2.drawWindow[j].p = midPt;
8531
+ line2.drawWindow[j].width = dist3;
8532
+ } else if (isOnLine1 && !isOnLine2) {
8533
+ let dist1 = ptW2.distanceTo(ptDoorEd);
8534
+ let dist2 = ptW2.distanceTo(ptEnd);
8535
+ let otherWindowPt = ptDoorEd.clone();
8536
+ if (dist1 > dist2)
8537
+ otherWindowPt = ptEnd.clone();
8538
+ let dist3 = otherWindowPt.distanceTo(ptW1);
8539
+ let midPt = getMid(otherWindowPt, ptW1);
8540
+ line2.drawWindow[j].p = midPt;
8541
+ line2.drawWindow[j].width = dist3;
8542
+ }
8492
8543
  newDrawWindowData3.push(line2.drawWindow[j]);
8544
+ }
8493
8545
  }
8494
8546
  }
8495
8547
  const newCheckResults1 = [];
@@ -9511,13 +9563,13 @@ var getColLine = async (lines, runDataList, collectDataPath, pointCloudCluster =
9511
9563
  }
9512
9564
  return colDatas;
9513
9565
  };
9514
- var penetratingTask = async (finalLines, trajectoryObj, collectDataPath, offsetsNum = 0.5, type = "normal", diff = 0.01, dir = null) => {
9566
+ var penetratingTask = async (finalLines, trajectoryObj, collectDataPath, diff = 0.5, type = "normal", dir = null) => {
9515
9567
  if (!finalLines.length) return finalLines;
9516
9568
  for (let v2 = 0; v2 < finalLines.length; v2++) {
9517
9569
  for (let i = 0; i < finalLines[v2].checkResults.length; i++) {
9518
9570
  const offsets = [];
9519
9571
  for (let t2 = 0; t2 < finalLines[v2].checkResults[i].originalVertices.length; t2++)
9520
- offsets.push(offsetsNum);
9572
+ offsets.push(diff);
9521
9573
  finalLines[v2].checkResults[i].offsets = offsets;
9522
9574
  }
9523
9575
  }
@@ -15401,6 +15453,8 @@ var getWindowData = (lines, pcdData, lineReader) => {
15401
15453
  if (windowDatas[n].isFind) {
15402
15454
  continue;
15403
15455
  }
15456
+ if (windowDatas[n].maxZ < tmpRegion.facePoints[0].z || windowDatas[n].minZ > tmpRegion.facePoints[2].z)
15457
+ continue;
15404
15458
  let doorSt = new THREE10.Vector3(windowDatas[n].windowStartPt.x, windowDatas[n].windowStartPt.y, 0);
15405
15459
  let doorEd = new THREE10.Vector3(windowDatas[n].windowEndPt.x, windowDatas[n].windowEndPt.y, 0);
15406
15460
  let beamSt = new THREE10.Vector3(tmpRegion.facePoints[0].x, tmpRegion.facePoints[0].y, 0);
@@ -15912,7 +15966,7 @@ var checkWindowAndDoorIsTrue = async (lines, runDataList, collectDataPath, point
15912
15966
  }
15913
15967
  return lines;
15914
15968
  };
15915
- var checkWindowAndDoorIsTrue2 = async (lines, runDataList, collectDataPath, dir, pointCloudCluster = null) => {
15969
+ var checkWindowAndDoorIsTrue2 = async (lines, runDataList, collectDataPath, dir, pointCloudCluster = null, Redundancy = 70) => {
15916
15970
  if (!lines.length)
15917
15971
  return;
15918
15972
  const windowLines = [];
@@ -15966,7 +16020,7 @@ var checkWindowAndDoorIsTrue2 = async (lines, runDataList, collectDataPath, dir,
15966
16020
  trajectoryObj[r].qz = 0;
15967
16021
  trajectoryObj[r].qw = 0;
15968
16022
  }
15969
- await penetratingTask(windowLines, trajectoryObj, collectDataPath, 0.5, "normal", 0.01, dir);
16023
+ await penetratingTask(windowLines, trajectoryObj, collectDataPath, 0.1, "normal", dir);
15970
16024
  for (let i = 0; i < windowLines.length; i++) {
15971
16025
  let len = 0;
15972
16026
  for (let u4 = 0; u4 < windowLines[i].checkResults.length; u4++)
@@ -15998,7 +16052,8 @@ var checkWindowAndDoorIsTrue2 = async (lines, runDataList, collectDataPath, dir,
15998
16052
  newPoints = allCenterPoints;
15999
16053
  let retNum = newPoints.length;
16000
16054
  let ps = retNum / len * 100;
16001
- if (ps < 80) {
16055
+ console.log(retNum, allCenterPoints.length, len, ps);
16056
+ if (ps < Redundancy) {
16002
16057
  windowLines[i].isRebuild = true;
16003
16058
  }
16004
16059
  }
@@ -16500,7 +16555,8 @@ var getDoorPcdData = (lines, pcdData, needFindOtherDoor = true) => {
16500
16555
  end: new THREE11.Vector3(ptDoorEd.x, ptDoorEd.y, line2.start.z),
16501
16556
  n: new THREE11.Vector3(0, 0, 0),
16502
16557
  height,
16503
- groundClearance
16558
+ groundClearance,
16559
+ obj_id: pcd.obj_id
16504
16560
  },
16505
16561
  isDoor: true
16506
16562
  };
@@ -16600,7 +16656,8 @@ var getDoorPcdData = (lines, pcdData, needFindOtherDoor = true) => {
16600
16656
  end: new THREE11.Vector3(ptDoorEd.x, ptDoorEd.y, line2.start.z),
16601
16657
  n: new THREE11.Vector3(0, 0, 0),
16602
16658
  height,
16603
- groundClearance
16659
+ groundClearance,
16660
+ obj_id: pcd.obj_id
16604
16661
  },
16605
16662
  isDoor: true
16606
16663
  };
@@ -16694,7 +16751,8 @@ var getDoorPcdData = (lines, pcdData, needFindOtherDoor = true) => {
16694
16751
  end: new THREE11.Vector3(ptNewDoorEd.x, ptNewDoorEd.y, lineTmp.start.z),
16695
16752
  n: new THREE11.Vector3(0, 0, 0),
16696
16753
  height,
16697
- groundClearance
16754
+ groundClearance,
16755
+ obj_id: pcd.obj_id
16698
16756
  },
16699
16757
  isDoor: true
16700
16758
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.146",
3
+ "version": "1.0.148",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",