[vtkusers] visualizing a grid

Jesse Neri neri at hobbes.nrl.navy.mil
Wed May 28 12:00:05 EDT 2003


> Dear VTK-users,
> 
> I would like to visualize the grid structure of a vtkRectangularGrid.
> Until now I'm only able to display the bounding box using an 
> outline filter.
> However, I'd like to display the inner grid lines also. Is 
> there a simple way 
> to do that ?
> 

For StructuredGridData, I use something like this (in TCL)

vtkPolyDataMapper gridmapperz
    gridmapperz SetInput [planez GetOutput]
    gridmapperz ScalarVisibilityOff

vtkActor gridActorz 
    gridActorz SetMapper gridmapperz
    [gridActorz GetProperty] SetRepresentationToWireframe
    [gridActorz GetProperty] SetColor 0.1 0.9 0.1
    [gridActorz GetProperty] SetAmbient 1.0

where the planez is the output of vtkStructuredGridGeometryFilter
working on the data set.
 
--
Jess Neri   neri at hobbes.nrl.navy.mil   (202) 404-4365 
Pulsed Power Physics Branch, Plasma Physics Division  
Naval Research Laboratory, Washington DC   20375      





More information about the vtkusers mailing list