<div>First use vtkCompositeDataPipeline instead of the default streaming demand driven pipeline in you program. That makes VTK iterate over blocks to satisfy non-composite aware filters. Next use vtkCompositeGeometryFilter to extract the external surfaces in your composite of unstructured grid data in order to make polygons that can be rendered. Render that filter&#39;s output with a standard mapper.</div>

<div><div><div><br clear="all">David E DeMarle<br>Kitware, Inc.<br>R&amp;D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x109<br>
<br><br><div class="gmail_quote">On Fri, Jan 7, 2011 at 12:57 AM, Nelson <span dir="ltr">&lt;<a href="mailto:gnjoseph@gmail.com">gnjoseph@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<div>Dear David,</div>
<div> </div>
<div>I put the <u>every file in a specified directory</u> pertaining to the d3plot. Then It shows the no.of blocks are 7. and paraview does not crashes.</div>
<div> </div>
<div>After deep observation, I found that every block is type of un-structured grid. </div>
<div>Now how to render it using vtk?</div>
<div><br clear="all">Best Regards,<br>Nelson Joseph.G<br><br><br></div>
<div class="gmail_quote">On Wed, Jan 5, 2011 at 7:55 PM, David Doria-2-3 [via VTK] <span dir="ltr">&lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=3331451&amp;i=0" rel="nofollow" target="_blank">[hidden email]</a>&gt;</span> wrote:<br>



<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote"><div><div></div><div class="h5">
<div>On Wed, Jan 5, 2011 at 9:14 AM, Nelson &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=3328885&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt; wrote: <br>&gt; <br>&gt; Hi David, <br>


&gt; <br>&gt; I think it may be of type &quot;vtkMultiBlockDataSet&quot; <br><br></div>
<div>Right, that is the type of reader-&gt;GetOutput(), but as far as I know <br>you need to get and render each block separately. <br><br>We need to know the type of each block so we can get them with: <br></div>

<div>vtkUnstructuredGrid* ug = <br>vtkUnstructuredGrid::SafeDownCast(reader-&gt;GetOutput()-&gt;GetBlock(0)); <br><br></div>
<div>Unfortunately, your file seems to have 0 blocks: <br>std::cout &lt;&lt; &quot;Number of blocks: &quot; &lt;&lt; <br>reader-&gt;GetOutput()-&gt;GetNumberOfBlocks() &lt;&lt; std::endl; <br><br>which may also be why ParaView crashes. <br>


<br>David <br></div>
</div></div><div><div><div></div><div class="h5">_______________________________________________ <br>Powered by <a href="http://www.kitware.com/" rel="nofollow" link="external" target="_blank">www.kitware.com</a> <br><br>

Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" 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" rel="nofollow" link="external" 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" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br><br>
</div></div><hr color="#cccccc" size="1" noshade>
</div>
<div style="font:11px tahoma, geneva, helvetica, arial, sans-serif;color:#666666">View message @ <a href="http://vtk.1045678.n5.nabble.com/how-to-render-vtkMultiBlockDataSet-tp3328294p3328885.html?by-user=t" rel="nofollow" link="external" target="_blank">http://vtk.1045678.n5.nabble.com/how-to-render-vtkMultiBlockDataSet-tp3328294p3328885.html</a> 
<div><br>To unsubscribe from how to render vtkMultiBlockDataSet?, <a href="http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&amp;node=3328294&amp;code=Z25qb3NlcGhAZ21haWwuY29tfDMzMjgyOTR8LTE2NTA2NjQ5NzE=&amp;by-user=t" rel="nofollow" link="external" target="_blank">click here</a>. </div>


</div></blockquote></div><br>

<br><hr align="left" width="300">
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/how-to-render-vtkMultiBlockDataSet-tp3328294p3331451.html" target="_blank">Re: how to render vtkMultiBlockDataSet?</a><div><div></div><div class="h5">

<br>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" target="_blank">VTK - Users mailing list archive</a> at Nabble.com.<br>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><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></blockquote></div><br></div></div></div>