[vtkusers] Newbie surface using RectilinearGrid question

Amy Squillacote ahs at cfdrc.com
Tue Oct 14 09:05:15 EDT 2008


If you use a vtkStructuredGrid instead of a vtkRectilinearGrid, you can 
use the vtkWarpScalar filter, and pass the output of that filter to the 
mapper. The online documentation for vtkWarpScalar is here: 
http://www.vtk.org/doc/release/5.2/html/a01523.html.

- Amy

Frederick Isaac wrote:
> Hi,
> Any help is appreciated.
> I am trying to produce a simple 3-D plot of the function z = x^2 + y^2 over (-1.0, -1.0), (1.0, 1.0). I created a vtkRectilinearGrid to represent the basis (x,y) over the region and the set the scalar values to the function values for the region.
>
> I want to then create a simple 3-d plot of the surface (wireframe). Why am  I doing this? to learn vtk programming techniques and wanted to start with a simple and common application.
>
> I can get using vtkPolyDataMapper and then vtkActor a colored plane that I suppose that the colors represent the z value of the scalars. I of course wanted a nice quadratic wireframe mesh of the surface values.
>
> any suggestions?
>
> also help with axes and bounding boxes would be appreciated.
>
> Thanks in advance
>
> Cheers
>
>
>
>       
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>   

-- 
Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CFD Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805





More information about the vtkusers mailing list