<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>Oups, I think I have a mistake. </span>CompositeDataGeometryFilter only give one polyData. So only one mapper and one actor.</div><div>But, If I want to color my blocks by different color, I can't use <span></span>CompositeDataGeometryFilter. I have to build one mapper/actor for each block.<br></div><div><br></div><div><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">De&nbsp;:</span></b> R M &lt;mlokida@yahoo.fr&gt;<br><b><span style="font-weight: bold;">À&nbsp;:</span></b> Favre Jean &lt;jfavre@cscs.ch&gt;; "vtkusers@vtk.org" &lt;vtkusers@vtk.org&gt;<br><b><span style="font-weight: bold;">Envoyé le :</span></b> Jeudi 6 Octobre 2011
 11h06<br><b><span style="font-weight: bold;">Objet&nbsp;:</span></b> [vtkusers] Re : Re :  vtkMultiBlockDataSet and SetInputConnection<br></font><br><meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv28420660"><div><div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:12pt;"><div><span>Ok now I can see the idea :)</span></div><div><br><span></span></div><div><span>So if I have understand, you have: multiblockDataSet-&gt; </span>ExtractBlock -&gt; CompositeDataGeometryFilter -&gt; Mapper for the N blocs we have extracted -&gt; Actors for the N Mappers -&gt; Renderer</div><div><br></div><div>Thank you.<br></div><div><br></div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt;"><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">De&nbsp;:</span></b> Favre  Jean
 &lt;jfavre@cscs.ch&gt;<br><b><span style="font-weight:bold;">À&nbsp;:</span></b> R M &lt;mlokida@yahoo.fr&gt;; "vtkusers@vtk.org" &lt;vtkusers@vtk.org&gt;<br><b><span style="font-weight:bold;">Envoyé le :</span></b> Jeudi 6
 Octobre 2011 9h29<br><b><span style="font-weight:bold;">Objet&nbsp;:</span></b> RE: Re : [vtkusers] vtkMultiBlockDataSet and SetInputConnection<br></font><br>I use a vtkExtractBlock upstream, to do selection on a per-block basis. The output of vtkExtractBlock is itself a multi-block dataset and the rest of the pipeline is unchanged.<br><br>J<br>________________________________<br>From: R M [<a rel="nofollow" ymailto="mailto:mlokida@yahoo.fr" target="_blank" href="mailto:mlokida@yahoo.fr">mlokida@yahoo.fr</a>]<br>Sent: Thursday, October 06, 2011 9:24 AM<br>To: Favre Jean; <a rel="nofollow" ymailto="mailto:vtkusers@vtk.org" target="_blank" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>Subject: Re : [vtkusers] vtkMultiBlockDataSet and SetInputConnection<br><br>Hi,<br><br>I had seen the vtkCompositeDataGeometryFilter but, the problem in my case, is that the ouput is one polydata (so one polydatamapper and one actor). And, I want the option to make
 visible or not one of the block on my geometry. That 's why I
 haven't use vtkCompositeDataGeometryFilter.<br><br>Thank you.<br><br>________________________________<br>De : Favre Jean &lt;<a rel="nofollow" ymailto="mailto:jfavre@cscs.ch" target="_blank" href="mailto:jfavre@cscs.ch">jfavre@cscs.ch</a>&gt;<br>À : "<a rel="nofollow" ymailto="mailto:vtkusers@vtk.org" target="_blank" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>" &lt;<a rel="nofollow" ymailto="mailto:vtkusers@vtk.org" target="_blank" href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>Envoyé le : Jeudi 6 Octobre 2011 9h06<br>Objet : Re: [vtkusers] vtkMultiBlockDataSet and SetInputConnection<br><br>Here is what I have been using for several years.<br><br>eb1 is my multi-block dataset.<br><br>VTK_CREATE(vtkCompositeDataGeometryFilter, geom1);<br>geom1-&gt;SetInputConnection(0, eb1-&gt;GetOutputPort(0));<br>geom1-&gt;Update();<br><br>VTK_CREATE(vtkPolyDataMapper,
 mapper1);<br>mapper1-&gt;SetInputConnection(geom1-&gt;GetOutputPort(0));<br><br>VTK_CREATE(vtkActor,
 actor1);<br>actor1-&gt;SetMapper(mapper1);<br><br>-----------------<br>Jean M. Favre<br>Swiss National Supercomputing Center<br><br><br>_______________________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a rel="nofollow" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a rel="nofollow" target="_blank" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br><br><br><br></div></div></div></div></div><meta http-equiv="x-dns-prefetch-control" content="on"><br>_______________________________________________<br>Powered by
 www.kitware.com<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br><br></div></div></div></body></html>