[vtk-developers] V6 AllocateScalars()
Bill Lorensen
bill.lorensen at gmail.com
Mon Mar 12 11:43:21 EDT 2012
You are correct. I fixed it.
Thanks,
Bill
On Mon, Mar 12, 2012 at 8:09 AM, David Doria <daviddoria at gmail.com> wrote:
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
--
Unpaid intern in BillsBasement at noware dot com
More information about the vtk-developers
mailing list