[vtkusers] how to make an array of vtkcellArray

David E DeMarle dave.demarle at kitware.com
Mon May 1 11:49:55 EDT 2006


The default constuctor isn't available because vtk objects are reference 
counted.

Instead of this:
  vtkCellArray *cell = new  vtkCellArray;
  ...
  delete cell;

use this:
  vtkCellArray *cell = vtkCellArray::New();
  ...
  cell->Delete();

Also goto:
http://www.vtk.org/doc/nightly/html/classvtkCellArray.html
and click on examples.






More information about the vtkusers mailing list