Changeset 3520 for trunk/gui


Ignore:
Timestamp:
Mar 17, 2013 4:10:02 PM (11 years ago)
Author:
ldelgass
Message:

Set the proper number of isosurfaces in server commands. Note: we may want to
change to not including the min/max as isovalues, but this will require using
the contour list or changing the server to set a contour list since the
contour filter API of setting number of contours always includes the
range min/max.

File:
1 edited

Legend:

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

    r3517 r3520  
    14211421            set _settings(numContours) [$itk_component(numcontours) value]
    14221422            set _currentNumContours $_settings(numContours)
    1423             SendCmd "contour3d numcontours [expr $_settings(numContours) + 1]"
     1423            SendCmd "contour3d numcontours $_settings(numContours)"
    14241424            DrawLegend
    14251425        }
     
    21782178        DrawLegend
    21792179    }
    2180     SendCmd "contour3d add numcontours [expr $_currentNumContours+1] $tag"
     2180    SendCmd "contour3d add numcontours $_currentNumContours $tag"
    21812181    SendCmd "contour3d edges $style(-edges) $tag"
    21822182    SendCmd "dataset outline $style(-outline) $tag"
Note: See TracChangeset for help on using the changeset viewer.