[vtkusers] rectilinear grid problem

Christopher M. Navarro cnavarro at ncsa.uiuc.edu
Wed Apr 16 11:20:47 EDT 2003


<snip>

> package require vtk
> package require vtkinteraction
> vtkRectilinearGridReader reader
>         reader SetFileName "the correct filename to the above written file"

Did you try reader Update or UpdateWholeExtent?


> vtkRectilinearGridGeometryFilter geometry
>         geometry SetInput [reader GetOutput]
>         geometry SetExtent 0 6 0 7 0 0
> vtkPolyDataMapper mapper
>         mapper SetInput [geometry GetOutput]
> vtkActor actor
>         actor SetMapper mapper
> # and then the usual rendering stuff.

-chris




More information about the vtkusers mailing list