Ignore:
Timestamp:
Mar 19, 2013 11:03:12 PM (11 years ago)
Author:
ldelgass
Message:

Fix canonical orientations for Z-up in heightmap viewer. Set preinterp always
on for now. Should be on when discrete color map is set, and need to add a
setting otherwise (should default to on).

File:
1 edited

Legend:

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

    r3544 r3545  
    13791379            if {$bool} {
    13801380                SendCmd "colormap res $numColors"
     1381                # Discrete colormap requires preinterp on
     1382                SendCmd "heightmap preinterp on"
    13811383            } else {
    13821384                SendCmd "colormap res default"
    1383             }
    1384             SendCmd "heightmap preinterp $bool"
     1385                # FIXME: add setting for preinterp (default on)
     1386                SendCmd "heightmap preinterp on"
     1387            }
    13851388            StopBufferingCommands
    13861389            EventuallyRequestLegend
     
    25562559itcl::body Rappture::VtkHeightmapViewer::SetOrientation { side } {
    25572560    array set positions {
    2558         front "1 0 0 0"
    2559         back  "0 0 1 0"
    2560         left  "0.707107 0 -0.707107 0"
    2561         right "0.707107 0 0.707107 0"
    2562         top   "0.707107 -0.707107 0 0"
    2563         bottom "0.707107 0.707107 0 0"
     2561        front  "0.707107 0.707107 0 0"
     2562        back   "0 0 0.707107 0.707107"
     2563        left   "0.5 0.5 -0.5 -0.5"
     2564        right  "0.5 0.5 0.5 0.5"
     2565        top    "1 0 0 0"
     2566        bottom "0 1 0 0"
    25642567    }
    25652568    foreach name { qw qx qy qz } value $positions($side) {
Note: See TracChangeset for help on using the changeset viewer.