>>>>> "Alex" == alexposts <[EMAIL PROTECTED]> writes:
Alex> Hi, I want to use mayavi (and pyvtk) to visualize of 2
Alex> dimensional mesh (more particulary adataptive mesh, it looks
Alex> like this
Alex> http://www.cita.utoronto.ca/~ljdursi/research/curve-region-oct.png).
Alex> It consists of a grid splitted in square of the same area,
Alex> each square can be divided in four over squares and one or
Alex> more of these four over squares can be divided in four over
Alex> squares ... (and this process is achieved recursively
Alex> depends of your refinement level). I have a list which
Alex> contains the coordinates of the center of each squares and I
Alex> want to use these points do display the mesh. I tried to use
Alex> pyVtk with the UnstructuredGrid method but I never succeeded
Alex> to display the mesh like in the png link given before. How
Alex> can achieve it ? If someone got a python example to use for
Alex> displaying AMR or a tutorial.
Unfortunately, I don't have the time at the moment to create a
tutorial nor do I have an example I can point you at. I can however
say that this should be doable using an unstructured grid or polydata
dataset. I guess you want to be able to create this using numpy
arrays rather than by creating a file. In this case maybe you should
take a look at tvtk:
http://svn.enthought.com/enthought/wiki/TVTK
which lets you create vtk datasets using numpy arrays. A simple
example is in the enthought/tvtk/examples/tiny_mesh.py that should get
you started.
cheers,
prabhu
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users