MantisBT - VTK
View Issue Details
0010414VTK(No Category)public2010-03-12 11:472016-08-12 09:55
David Doria 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0010414: vtkVoxelModeller produces VTK_BIT array, should produce VTK_INT
If you try to write the output of vtkVoxelModeller with a vtkXMLImageDataWriter (like this: http://www.vtk.org/Wiki/VTK/Examples/VoxelModeller [^]), it complains that VTK_BIT is not supported. I have converted all instances of vtkBitArray and VTK_BIT with vtkIntArray and VTK_INT, respectively, and it now works as expected.

Can we commit this?
No tags attached.
cxx vtkVoxelModeller.cxx (10,520) 2010-03-12 11:47
https://www.vtk.org/Bug/file/7960/vtkVoxelModeller.cxx
cxx vtkVoxelModeller2.cxx (10,751) 2010-03-15 11:39
https://www.vtk.org/Bug/file/7973/vtkVoxelModeller2.cxx
Issue History
2010-03-12 11:47David DoriaNew Issue
2010-03-12 11:47David DoriaFile Added: vtkVoxelModeller.cxx
2010-03-15 11:39David DoriaFile Added: vtkVoxelModeller2.cxx
2010-03-15 11:39David DoriaNote Added: 0019884
2010-12-14 14:58David DoriaNote Added: 0023967
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037153
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0019884)
David Doria   
2010-03-15 11:39   
Per Will's recommendation, I changed VTK_INT to VTK_UNSIGNED_CHAR and verified that it still works (opened the resulting vti file in Paraview).

Long term, we should change vtkXMLImageDataWriter to support VTK_BIT.
(0023967)
David Doria   
2010-12-14 14:58   
From the mailing list:

"
Perhaps vtkVoxelModeller should have a new method;
SetOutputScalarTypeToxxx where the default would be Bit. Then it might
be a more useful class, It should also probably have
SetForegroundValue and SetBackgroundValue methods.

Bill
"
(0037153)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.