rm-graphical-computing-node 1.0.55 → 1.0.56
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 +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12281,8 +12281,8 @@ function computeDrawWindow(bestSeg, corners, win, mergedSegments) {
|
|
|
12281
12281
|
const dw_midT = (dw_tMin + dw_tMax) / 2;
|
|
12282
12282
|
const dw_pMidX = bestSeg.start.x + dw_midT * dw_dx;
|
|
12283
12283
|
const dw_pMidY = bestSeg.start.y + dw_midT * dw_dy;
|
|
12284
|
-
const dw_boxMinZ = win.box.min.z;
|
|
12285
|
-
const dw_boxMaxZ = win.box.max.z;
|
|
12284
|
+
const dw_boxMinZ = win.coordinatesByArea.heightData?.minZ ? win.coordinatesByArea.heightData.minZ : win.box.min.z;
|
|
12285
|
+
const dw_boxMaxZ = win.coordinatesByArea.heightData?.maxZ ? win.coordinatesByArea.heightData.maxZ : win.box.max.z;
|
|
12286
12286
|
const dw_height = Math.abs(dw_boxMaxZ - dw_boxMinZ);
|
|
12287
12287
|
const dw_floorZ = computeLocalFloorZ(mergedSegments, bestSeg.start.x, bestSeg.start.y);
|
|
12288
12288
|
const dw_gClr = Math.max(0, dw_boxMinZ - dw_floorZ);
|