[vtkusers] vtkXMLWriterC_SetCellsWithTypes: vtkIdType cellsSize ?
fred
fredmfp at gmail.com
Tue Apr 24 06:58:11 EDT 2007
Hi all,
I don't understand the meaning of the vtkIdType cellsSize argument in
vtkXMLWriterC_SetCellsWithTypes:
/**
* Set a cell array on the data object to be written. Each cell can
* have its own type.
*
* The cellTypes array specifies the type of each cell, and has ncells
* entries. The cells array must have cellsSize entries. Each cell
* uses N+1 entries where N is the number of points in the cell. The
* layout of the array for each cell is "[N,id1,id2,...,idN]". The
* total number of cells must be ncells.
*
* This may only be used for unstructured grid data objects. It may
* not be called before SetDataObjectType or between Start and Stop
* calls.
*/
VTK_XML_EXPORT
void vtkXMLWriterC_SetCellsWithTypes(vtkXMLWriterC* self,
int* cellTypes, vtkIdType ncells,
vtkIdType* cells, vtkIdType cellsSize);
If I have several cells type, (VTK_HEXAHEDRON, VTK_QUAD, VTK_VERTEX),
how can I set cellsSize (ie one integer, not a pointer) ?
To which int value ? vtkHexahedron().GetNumberOfPoints() ?
vtkQuad().GetNumberOfPoints() ? vtkVertex().GetNumberOfPoints() ?
(ok, these are python methods, don't know if they exist in C, but the idea is here).
Could someone give me some light, please ?
Thanks in advance.
Cheers,
--
/F
More information about the vtkusers
mailing list