<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="/user/SendEmail.jtp?type=node&node=3331451&i=0" target="_top" rel="nofollow">[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 class="im">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" target="_blank" link="external">[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 class="im">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 class="im">vtkUnstructuredGrid* ug = <br>vtkUnstructuredGrid::SafeDownCast(reader-&gt;GetOutput()-&gt;GetBlock(0)); <br><br></div>
<div class="im">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 class="im">_______________________________________________ <br>Powered by <a href="http://www.kitware.com/" target="_blank" rel="nofollow" link="external">www.kitware.com</a> <br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" target="_blank" link="external">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" target="_blank" link="external">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" target="_blank" link="external">http://www.vtk.org/mailman/listinfo/vtkusers</a><br><br><br>
<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" target="_blank" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/how-to-render-vtkMultiBlockDataSet-tp3328294p3328885.html</a> 
<div class="im"><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=&by-user=t" target="_blank" rel="nofollow" link="external">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">Re: how to render vtkMultiBlockDataSet?</a><br>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br>