<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<<"number of Solid cell:"<< rdr->OutputSolid->GetNumberOfCells()<<endl;</P>
<P> </P>
<P>In fact, all variables Output***** are defined as <STRONG>vtkUnstructuredGrid</STRONG>*, </P>
<P>I checked the variable "<STRONG>OutputSolid</STRONG>" using function "<STRONG>getNameclass</STRONG>", and find it is not "<STRONG>vtkUnstructuredGrid</STRONG>" type after program running.So I have no idea how to extract data from "<STRONG>OutputSolid"</STRONG>.</P>
<P>Could you do me a favor that how to extract all datas from "<STRONG>OutputSolid</STRONG>"?</P>
<P>By the way, all variables are changed from "protected" to "public" for debugging.</P>
<P>Thanks very much!</P>
<P> </P>
<P>Following are my code:</P>
<P>vtkLSDynaReader* rdr = vtkLSDynaReader::New();<BR> rdr->SetDatabaseDirectory( "C:\\Users\\sample" );</P>
<P> rdr->Update();</P>
<P><BR> cout<<"number of Particles cell:"<< rdr->OutputParticles->GetNumberOfCells()<<endl;<BR> cout<<"number of Beam cell:"<< rdr->OutputBeams->GetNumberOfCells()<<endl;<BR> cout<<"number of RigidBody cell:"<< rdr->OutputRigidBody->GetNumberOfCells()<<endl;<BR> cout<<"number of RoadSurface cell:"<< rdr->OutputRoadSurface->GetNumberOfCells()<<endl;</P>
<P> cout<<"number of Shell cell:"<< rdr->OutputShell->GetNumberOfCells()<<endl;<BR> cout<<"number of Solid cell:"<< rdr->OutputSolid->GetNumberOfCells()<<endl;<BR> cout<<"number of ThickShell cell:"<< rdr->OutputThickShell->GetNumberOfCells()<<endl;</P>
<P> </P>
<P> </P>
<P> </P>
<P>kevin</P>
<P> </P>
<P> </P>