fred | 21 Jul 11:33
Gravatar

Re: show mesh in mayavi2, segfault

Ondrej Certik a écrit :

> It only shows a white rectangle, for me. I would like to see the
> actual mesh. If you do "paraview --data=mesh.vtk", click apply and
> then set Display->Style->Representation->    Surface With Edges   (it
> is a popup on the toolbar), it shows the mesh. 10x10 in this case.
Ondrej,

Double-click on Surface module in the tree, then in Property,
select Representation: wireframe.

It does what you want.

> I need it to debug my mesh generator, so I want to craft a little
> python script that shows me the result immediately, without having to
> point and click with a mouse. Also I want to customize the output for
> my particular case (e.g. maybe put this option and code directly to
> the mesh generator) and I think mayavi2 is perfectly suited for this.
Absolutely ;-)

Please see the attached file.

Cheers,

--

-- 
Fred
Attachment (a.py): text/x-python, 608 bytes
_______________________________________________
Enthought-dev mailing list
Enthought-dev@...
https://mail.enthought.com/mailman/listinfo/enthought-dev

Gmane