rm-graphical-computing-node 1.0.78 → 1.0.79
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.
- package/dist/index.mjs +6 -6
- 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 -
|
|
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 =
|
|
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 -
|
|
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 =
|
|
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 -
|
|
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 =
|
|
12468
|
+
p.z = line2.start.z;
|
|
12469
12469
|
line2.drawWindow.push({
|
|
12470
12470
|
p,
|
|
12471
12471
|
full: false,
|