[vtkusers] vtkDenseArray with custom type?
    David Doria 
    daviddoria+vtk at gmail.com
       
    Thu Nov  5 09:56:36 EST 2009
    
    
  
I get a "no matching function" error when trying to do this:
#include <vtkSmartPointer.h>
#include <vtkDenseArray.h>
struct Point
{
  double x,y,z;
};
int main(int argc, char *argv[])
{
  Point MyPoint;
  MyPoint.x = 1.0;
  MyPoint.x = 2.0;
  MyPoint.x = 3.0;
  vtkSmartPointer<vtkDenseArray<Point> > array =
vtkSmartPointer<vtkDenseArray<double> >::New();
  array->Resize(5,5);
  array->SetValue(4,4, MyPoint);
  return 0;
}
Is this not allowed?
Thanks,
David
    
    
More information about the vtkusers
mailing list