add CAM Z bottom visualization, make it relative to stock instead of part

This commit is contained in:
Stewart Allen 2022-10-05 12:04:00 -04:00
commit b0c184ea85
4 changed files with 36 additions and 11 deletions

View file

@ -39,7 +39,7 @@ class Topo {
maxX = bounds.max.x,
minY = bounds.min.y,
maxY = bounds.max.y,
zBottom = contour.bottom ? proc.camZBottom : 0,
zBottom = contour.bottom ? state.zBottom : 0,
zMin = Math.max(bounds.min.z, zBottom) + 0.0001,
boundsX = maxX - minX,
boundsY = maxY - minY,