vtkDataSet: GetCellTypes is useless in the current form
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
With GetCellTypes its possible to get a list of cell-types that are defined in a dataset. It returns an object of type vtkCellTypes. But this object is not really the object thats internal used to store the recently added cells. It returns a light version of it, without the locations. Within GetCellTypes they are set to -1. But without that information you can not use it for a reasonable purpose. The same information is available via:
vtkIntArray *types = vtkIntArray::New(); for (int i = 0; i < pd->GetNumberOfCells(); i++) { types->InsertNextValue(pd->GetCellType(i)); }
You see the method is totally useless.
The method should return a pointer to Cells or a deep copy of it.