On Tue, Nov 16, 2010 at 11:59:12AM +0100, moscardi wrote:
>    Now I would like to do the same thing but with N regions and each region
>    of different label.
>    How can I do that ? Do I need to create a loop to extract every region ?

Why don't you simply use the 'color_regions' setting on the
PolyDataConnectivityFilter, and show all regions. Then you get a scalar
field with a different value per connect component. If you don't specify
a color but a colormap to your suface, you'll get this scalar plotted as
colors by the color map.

HTH,

Gaƫl

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to