rm-graphical-computing-node 1.0.78 → 1.0.80

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 +9 -9
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -12373,12 +12373,12 @@ var getWindowPcdData = (lines, pcdData) => {
12373
12373
  let ptWindowEd = getPt3(intersect2.point);
12374
12374
  if (ptStart.distanceTo(ptWindowSt) > ptStart.distanceTo(ptWindowEd))
12375
12375
  [ptWindowSt, ptWindowEd] = [ptWindowEd, ptWindowSt];
12376
- let groundClearance = minZ - ptWindowSt.z;
12376
+ let groundClearance = minZ - line2.start.z;
12377
12377
  groundClearance = groundClearance > 0.01 ? groundClearance : 0;
12378
12378
  if (!line2.drawWindow)
12379
12379
  line2.drawWindow = [];
12380
12380
  let p = getMid(ptWindowSt, ptWindowEd);
12381
- p.z = minZ;
12381
+ p.z = line2.start.z;
12382
12382
  line2.drawWindow.push({
12383
12383
  p,
12384
12384
  full: false,
@@ -12414,12 +12414,12 @@ var getWindowPcdData = (lines, pcdData) => {
12414
12414
  let vec2 = getVector3(ptWindowSt, ptClose);
12415
12415
  let width = ptMid1.distanceTo(ptMid2);
12416
12416
  let ptWindowEd = ptWindowSt.clone().addScaledVector(vec2, width);
12417
- let groundClearance = minZ - ptWindowSt.z;
12417
+ let groundClearance = minZ - line2.start.z;
12418
12418
  groundClearance = groundClearance > 0.01 ? groundClearance : 0;
12419
12419
  if (!line2.drawWindow)
12420
12420
  line2.drawWindow = [];
12421
12421
  let p = getMid(ptWindowSt, ptWindowEd);
12422
- p.z = minZ;
12422
+ p.z = line2.start.z;
12423
12423
  line2.drawWindow.push({
12424
12424
  p,
12425
12425
  full: false,
@@ -12460,12 +12460,12 @@ var getWindowPcdData = (lines, pcdData) => {
12460
12460
  if (dist4 < nearDist)
12461
12461
  ptWindowEd = ptClose4.clone();
12462
12462
  ptWindowSt.z = ptWindowEd.z = minZ;
12463
- let groundClearance = minZ - ptWindowSt.z;
12463
+ let groundClearance = minZ - line2.start.z;
12464
12464
  groundClearance = groundClearance > 0.01 ? groundClearance : 0;
12465
12465
  if (!line2.drawWindow)
12466
12466
  line2.drawWindow = [];
12467
12467
  let p = getMid(ptWindowSt, ptWindowEd);
12468
- p.z = minZ;
12468
+ p.z = line2.start.z;
12469
12469
  line2.drawWindow.push({
12470
12470
  p,
12471
12471
  full: false,
@@ -12589,7 +12589,7 @@ var getDoorPcdData = (lines, pcdData) => {
12589
12589
  newDoorAndBeamData3.push(line2.doorAndBeamData[a]);
12590
12590
  }
12591
12591
  }
12592
- let groundClearance = minZ - ptDoorSt.z;
12592
+ let groundClearance = minZ - line2.start.z;
12593
12593
  groundClearance = groundClearance > 0.01 ? groundClearance : 0;
12594
12594
  let newLine1 = {
12595
12595
  start: ptStart,
@@ -12613,8 +12613,8 @@ var getDoorPcdData = (lines, pcdData) => {
12613
12613
  isRebuild: false,
12614
12614
  direction: line2.direction,
12615
12615
  drawDoorData: {
12616
- start: new THREE11.Vector3(ptDoorSt.x, ptDoorSt.y, minZ),
12617
- end: new THREE11.Vector3(ptDoorEd.x, ptDoorEd.y, minZ),
12616
+ start: new THREE11.Vector3(ptDoorSt.x, ptDoorSt.y, line2.start.z),
12617
+ end: new THREE11.Vector3(ptDoorEd.x, ptDoorEd.y, line2.start.z),
12618
12618
  n: new THREE11.Vector3(0, 0, 0),
12619
12619
  height,
12620
12620
  groundClearance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rm-graphical-computing-node",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
4
4
  "description": "墙体/梁线/点云语义计算库(依赖 Python 与 three.js)",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",