[vtkusers] Re: vtkXMLWriterC_SetCellsWithTypes: vtkIdType cellsSize ?

Mathieu Malaterre mathieu.malaterre at gmail.com
Wed Apr 25 09:35:01 EDT 2007


On 4/25/07, fred <fredmfp at gmail.com> wrote:
> fred a écrit :
> > Hi all,
> >
> > I don't understand the meaning of the vtkIdType cellsSize argument in
> > vtkXMLWriterC_SetCellsWithTypes:
> Hi,
>
> Nobody can help me ? Mathieu ?
>
> I really need to understand this issue, please.
>
> It fails to create vtkUG file with VTK_HEXAHEDRON & VTK_VERTEX cells.
>
> I can send a sample C code, if needed.

Hi Fred,

  You can simply pass 256 (*) in your case (max cell size), as long as your:
  int* cellTypes,
  is correct you should be ok.

HTH
-Mathieu
(*) If you know you are only dealing with hex and vertex, instead just
use the max cell size of your subgroup: 8 in this case.



More information about the vtkusers mailing list