Hi Kent,<BR>I think you can get the information you want by calling:<BR>yourVtkDoubleArray->GetNumberOfTuples() which is defined in vtkAbstractArray (vtkDataArray is derived from vtkAbstractArray).<BR>Regards,<BR>Björn<BR><BR>----- Ursprüngliche Nachricht -----<BR>Von: kent williams <nkwmailinglists@gmail.com><BR>Datum: Mittwoch, 18. Februar 2009, 19:34<BR>Betreff: [vtkusers] vtkDoubleArray -- you can set the number of values but you can't get the number of values?<BR>An: VTK users group <vtkusers@vtk.org><BR><BR>> I've been staring for some time at the Doxygen man pages for<BR>> vtkDoubleArray and vtkDataArray. It seems that there is a member<BR>> function vtkDoubleArray::SetNumberOfValues(), but no corresponding<BR>> vtkDoubleArray::GetNumberOfValues().<BR>> <BR>> This seems to indicate that you have to make sure that you never try<BR>> to read out more values than you've put in to the array, because<BR>> there's no way to check this.<BR>> <BR>> Or am I missing something?<BR>> _______________________________________________<BR>> Powered by www.kitware.com<BR>> <BR>> Visit other Kitware open-source projects at <BR>> http://www.kitware.com/opensource/opensource.html<BR>> Please keep messages on-topic and check the VTK FAQ at: <BR>> http://www.vtk.org/Wiki/VTK_FAQ<BR>> Follow this link to subscribe/unsubscribe:<BR>> http://www.vtk.org/mailman/listinfo/vtkusers<BR><BR>------------------------------------------------------------------------- <BR>Dr. Bjoern Zehner <BR>UFZ Centre for Environmental Research Leipzig-Halle <BR>Permoserstrasse 15 <BR>04318 Leipzig <BR>Germany <BR>http://www.ufz.de/index.php?en=5673 <BR>Tel: ++49 (341) 235 1979 <BR>Fax: ++49 (341) 235 1939<BR><BR>