[vtk-developers] V6 AllocateScalars()
David Doria
daviddoria at gmail.com
Mon Mar 12 11:09:18 EDT 2012
On this page:
http://vtk.org/Wiki/VTK/VTK6/Migration/WikiExamples
Should this:
#if VTK_MAJOR_VERSION <= 5
image->SetNumberOfScalarComponents(1);
image->SetScalarTypeToInt();
#else
image->AllocateScalars(VTK_INT,1);
#endif
be changed to this:
#if VTK_MAJOR_VERSION <= 5
image->SetNumberOfScalarComponents(1);
image->SetScalarTypeToInt();
image->AllocateScalars();
#else
image->AllocateScalars(VTK_INT,1);
#endif
That is, the AllocateScalars() call is also now included in the
AllocateScalars(VTK_INT,1); call?
David
More information about the vtk-developers
mailing list