On Wed, Dec 15, 2010 at 09:00:15PM +0000, Juha Jäykkä wrote:
> > As a coincidence, a collegue who knows Mayavi better than me was
> > mentionning today that there is a filter that corrects for this by
> > reorienting the normals as the camera moves.

> This sounds good. Please let me know what that filter is when you come across 
> it.

It's http://www.vtk.org/doc/nightly/html/classvtkDepthSortPolyData.html
and it does a bit more than reorienting the normals.

To add it to the vtk pipeline, use the UserDefined filter, as in the
following examples:

http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/example_image_cursor_filter.html
http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/example_tvtk_segmentation.html

HTH,

G

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to