[vtkusers] dynamically allocate vtkpointer

128 at gmx.us 128 at gmx.us
Mon Nov 28 02:24:57 EST 2016


Hi,

How can I create a dynamically allocated vtk pointer. For example,

vtkSmartPointer<vtkUnstructuredGrid> block[3] = vtkSmartPointer<vtkUnstructuredGrid>::New();

can create a size 3 array of vtkUnstructuredGrid pointers. How can I dyncamically allocate this?

Thank you.


More information about the vtkusers mailing list