mayavi to pdf 3d issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

mayavi to pdf 3d issue

Amit Aides

I am trying to convert mayavi models to 'u3d' files that I can embed in
python. Below I describe the method I use. I attach an example that
results in strange artifacts. The mesh is created in mayavi using the
mlab.contour3d function. In the mayavi the mesh looks ok (see the
attached png). In the pdf, the triangles of the mesh are colored with
different colors. It seems that something is wrong with the mesh, but I
don't know what it is. I will appreciate any assistance.

My method is as follows:
1) Save the mayavi figure as '.wrl' file.
2) Import the wrl file into Meshlab and export it to 'idtf' file.
3) Fix the vertex color issue using the explanations in:
4) Convert the 'idtf' file to 'u3d'
5) Convert the 'u3d' file to pdf using miktex. I change the latex
package from movie15 to media9.

Thanks in advance,

Enthought-Dev mailing list
[hidden email]

mesh.pdf (1M) Download Attachment
mesh.png (128K) Download Attachment