Changeset 1291 for trunk/packages


Ignore:
Timestamp:
Mar 5, 2009, 6:51:18 PM (16 years ago)
Author:
vrinside
Message:

Moved the center point of the flow data

Location:
trunk/packages/vizservers/nanovis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/Command.cpp

    r1282 r1291  
    17481748    //
    17491749    if (volPtr != NULL) {
    1750         //volPtr->set_n_slice(256-n);
    1751         volPtr->set_n_slice(512-n);
     1750        volPtr->set_n_slice(256-n);
     1751        //volPtr->set_n_slice(512-n);
    17521752        volPtr->disable_cutplane(0);
    17531753        volPtr->disable_cutplane(1);
     
    17561756        NanoVis::vol_renderer->add_volume(volPtr,
    17571757                NanoVis::get_transfunc("default"));
     1758
     1759    Trace("Flow Data move\n");
     1760        float dx0 = -0.5;
     1761        float dy0 = -0.5*volPtr->height/volPtr->width;
     1762        float dz0 = -0.5*volPtr->depth/volPtr->width;
     1763        volPtr->move(Vector3(dx0, dy0, dz0));
    17581764    }
    17591765
  • trunk/packages/vizservers/nanovis/data/flowvis_dx_files/jwire/jwire.nvscript

    r1289 r1291  
    1301113011cutplane state 0 z
    1301213012camera angle 90 0 180
    13013 camera pan -0.45 0
    1301413013
    1301513014
Note: See TracChangeset for help on using the changeset viewer.