Ondrej Certik | 21 Jul 13:49
Picon

Re: show mesh in mayavi2, segfault

On Mon, Jul 21, 2008 at 11:33 AM, fred <fredmfp <at> gmail.com> wrote:
> 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.

Yes! Thanks a lot, that's exactly what I wanted. Is there a way to see
the Representation popup in the mayavi2 window directly, without
having to call double click on the Surface module?

>
>> 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.

Yes, it does exactly what I wanted. Thanks again. Is there a way to
script mayavi from ipython? If I do the following, it breaks:

In [1]: from enthought.mayavi.scripts import mayavi2

In [2]: mayavi2.standalone(globals())
Please specify a MayaVi file with a '.mv2' extension. Or a MayaVi
script with a '.py' extension. For details on how to load other files
please read the usage documentation using mayavi2 --help.
[lots of errors]

Ondrej
_______________________________________________
Enthought-dev mailing list
Enthought-dev <at> mail.enthought.com
https://mail.enthought.com/mailman/listinfo/enthought-dev

Gmane