Ignore:
Timestamp:
Mar 22, 2013 2:35:51 PM (11 years ago)
Author:
ldelgass
Message:

Translate heightmaps to put minimum at z=0. Should put dataset outline inside
bounds of heightmap and allow drawing outline without blowing out the bounds
in 3D mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/vtkheightmapviewer.tcl

    r3553 r3554  
    17001700    set bmin [expr $heightScale * $dataScale * $vmin]
    17011701    set bmax [expr $heightScale * $dataScale * $vmax]
     1702    if {$heightScale > 0} {
     1703        set zpos [expr - $bmin]
     1704        SendCmd "heightmap pos 0 0 $zpos"
     1705    } else {
     1706        SendCmd "heightmap pos 0 0 0"
     1707    }
     1708    set bmax [expr $bmax - $bmin]
     1709    set bmin 0
    17021710    SendCmd "dataset maprange explicit $_limits($_curFldName) $_curFldName"
    17031711    SendCmd "axis bounds z $bmin $bmax"
Note: See TracChangeset for help on using the changeset viewer.