[vtkusers] bug in vtkXMLWriterC_SetCellsWithTypes ?

Mathieu Malaterre mathieu.malaterre at kitware.com
Tue Feb 20 19:48:49 EST 2007


fred wrote:
> Hi,
> 
> In vtkXMLWriterC.h, vtkXMLWriterC_SetCellsWithTypes is declared as
> 
> void vtkXMLWriterC_SetCellsWithTypes(vtkXMLWriterC* self,
>                                     int* cellTypes, vtkIdType ncells,
>                                     vtkIdType* cells, vtkIdType cellsSize);
> 
> I think the last argument should be read vtkIdType* cellsSize instead of
> vtkIdType cellsSize, because if cells could have different type, they 
> should have
> different size.
> 
> Could someone confirm ? And fix, please ?


I am not sure I understand your issue here. Could you please provide an 
example that demonstrate the problem.
I would suggest looking at the documentation of vtkCellArray and an 
example such as otherCellArray:

VTK/Filtering/Testing/Cxx/otherCellArray.cxx

HTH
-Mathieu



More information about the vtkusers mailing list