[vtkusers] Vtk and AMR

alexposts at free.fr alexposts at free.fr
Thu Mar 1 03:56:48 EST 2007


Hi,

I want to use VTK (with python : pyvtk) to visualize of 2 dimensional mesh (more
particulary adataptive mesh, it looks like this
http://www.cita.utoronto.ca/~ljdursi/research/curve-region-oct.png).
It consists of a grid splitted in square of the same area, each
square can be divided in four over squares and one or more of these four over
squares can be divided in four over squares ... (and this process is achieved
recursively depends of your refinement level).
I have a list which contains the coordinates of the center of each squares and I
want to use these points do display the mesh. I tried to use pyVtk with the
UnstructuredGrid method but I never succeeded to display the mesh like in the
png link given before.
How can achieve it ? If someone got a python or a C++ example to use for
displaying AMR or a tutorial.

Thanks

Alex




More information about the vtkusers mailing list