[vtkusers] Newbie surface using RectilinearGrid question

Frederick Isaac freddyisaac at yahoo.com
Tue Oct 14 04:16:40 EDT 2008


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



      



More information about the vtkusers mailing list