Go directly to the vtkDataSet (->GetOutput()), and look at
GetPointData()/GetCellData()->GetNumberOfArrays() &
GetArrayName(n).<br><br><div><span class="gmail_quote">On Apr 7, 2005 9:57 AM, <b class="gmail_sendername">Jeremy Stout</b> <<a href="mailto:stout.jeremy@gmail.com">stout.jeremy@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm working on a program that loads vtkUnstructuredGrid files and I'm<br>trying to find the name of Cell/Point Data set names at load time. The<br>file sets I am working with are in XML and legacy formats.<br><br>After doing some research, I found I can use the methods in the<br>vtkXMLReader class to get the names. However, I have been unable to<br>find any similar functionality in vtkUnstructuredGridReader or any of<br>its superclasses.<br><br>Do any of the legacy readers have the functionality I am looking for?<br>If not, is there a way to find the names of the data sets after<br>loading the file?<br><br>Jeremy Stout<br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br><br><br>-- <br>Randall Hand<br><a href="http://www.yeraze.com">http://www.yeraze.com</a>