[vtkusers] Get size of vtkDenseArray

David Doria daviddoria+vtk at gmail.com
Sun Nov 15 10:50:11 EST 2009


I want to get the size of a dimension of a vtkDenseArray. From the
documentation it looks like it should be like this:

  vtkSmartPointer<vtkDenseArray<double> > array =
vtkSmartPointer<vtkDenseArray<double> >::New();
  array->Resize(5,6);

  //why doesn't this work? error: 'class vtkDenseArray<double>' has no
member named 'GetExtent'
  vtkstd::cout << array->GetExtent(0) << vtkstd::endl;

Where GetExtent(0) should return 5 and GetExtent(1) should return 6.
However, I just get this "no member" error as if the function doesn't even
exist. Anyone know why this might be?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091115/a7f4b1d3/attachment.htm>


More information about the vtkusers mailing list