<div class="gmail_quote">2010/6/11  <span dir="ltr">&lt;<a href="mailto:c_dinco@sina.com">c_dinco@sina.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<p> I used <strong>vtkLSdynaReader</strong> to read a ls-dyna d3plot file which just contain a solid object, but program crashed when run to: </p>
<p> </p>
<p>cout&lt;&lt;&quot;number of Solid cell:&quot;&lt;&lt;  rdr-&gt;OutputSolid-&gt;GetNumberOfCells()&lt;&lt;endl;</p>
<p> </p>
<p>In fact, all variables Output*****  are defined as <strong>vtkUnstructuredGrid</strong>*, </p>
<p>I checked the variable &quot;<strong>OutputSolid</strong>&quot; using function &quot;<strong>getNameclass</strong>&quot;, and find it is not  &quot;<strong>vtkUnstructuredGrid</strong>&quot; type after program running.So I have no idea how to extract data from &quot;<strong>OutputSolid&quot;</strong>.</p>

<p>Could you do me a favor that how to extract all datas from &quot;<strong>OutputSolid</strong>&quot;?</p>
<p>By the way, all variables are changed from &quot;protected&quot; to &quot;public&quot; for debugging.</p>
<p>Thanks very much!</p>
<p> </p>
<p>Following are my code:</p>
<p>vtkLSDynaReader* rdr = vtkLSDynaReader::New();<br> rdr-&gt;SetDatabaseDirectory( &quot;C:\\Users\\sample&quot; );</p>
<p> rdr-&gt;Update();</p>
<p><br> cout&lt;&lt;&quot;number of Particles cell:&quot;&lt;&lt;  rdr-&gt;OutputParticles-&gt;GetNumberOfCells()&lt;&lt;endl;<br> cout&lt;&lt;&quot;number of Beam cell:&quot;&lt;&lt;  rdr-&gt;OutputBeams-&gt;GetNumberOfCells()&lt;&lt;endl;<br>
 cout&lt;&lt;&quot;number of RigidBody cell:&quot;&lt;&lt;  rdr-&gt;OutputRigidBody-&gt;GetNumberOfCells()&lt;&lt;endl;<br> cout&lt;&lt;&quot;number of RoadSurface cell:&quot;&lt;&lt;  rdr-&gt;OutputRoadSurface-&gt;GetNumberOfCells()&lt;&lt;endl;</p>

<p> cout&lt;&lt;&quot;number of Shell cell:&quot;&lt;&lt;  rdr-&gt;OutputShell-&gt;GetNumberOfCells()&lt;&lt;endl;<br> cout&lt;&lt;&quot;number of Solid cell:&quot;&lt;&lt;  rdr-&gt;OutputSolid-&gt;GetNumberOfCells()&lt;&lt;endl;<br>
 cout&lt;&lt;&quot;number of ThickShell cell:&quot;&lt;&lt;  rdr-&gt;OutputThickShell-&gt;GetNumberOfCells()&lt;&lt;endl;</p>
<p> </p>
<p> </p>
<p> </p>
<p>kevin</p>
<p></p></blockquote></div><br><div>Can you upload the file you are trying read and send us a link? A small file would be highly preferable if you can generate the problem with one.</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<br clear="all">Thanks,<br><br>David</div>