<br><br>
<div><span class="gmail_quote">2007/2/21, Mathieu Malaterre <<a href="mailto:mathieu.malaterre@kitware.com">mathieu.malaterre@kitware.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">fred wrote:<br>> Hi,<br>><br>> In vtkXMLWriterC.h, vtkXMLWriterC_SetCellsWithTypes is declared as
<br>><br>> void vtkXMLWriterC_SetCellsWithTypes(vtkXMLWriterC* self,<br>> int* cellTypes, vtkIdType ncells,<br>> vtkIdType* cells, vtkIdType cellsSize);
<br>><br>> I think the last argument should be read vtkIdType* cellsSize instead of<br>> vtkIdType cellsSize, because if cells could have different type, they<br>> should have<br>> different size.<br>><br>
> Could someone confirm ? And fix, please ?<br><br><br>I am not sure I understand your issue here. Could you please provide an<br>example that demonstrate the problem.</blockquote>
<div> </div>
<div>Hi, </div>
<div>I can't give you example now (not on my computer).</div>
<div>But simply say that we have some VTK_QUAD (4 points) and VTK_VOXEL (8 points)</div>
<div>cells.</div>
<div> </div>
<div>As cellTypes is a pointer, there is no problem:</div>
<div>cellTypes = [VTK_QUAD VTK_QUAD ... VTK_VOXEL VTK_VOXEL]</div>
<div> </div>
<div>The problem comes from cellsSize, which is not a pointer but a</div>
<div>integer. So, as my cells have different size, how can I put these sizes</div>
<div>in vtkXMLWriterC_SetCellsWithTypes ?</div>
<div> </div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I would suggest looking at the documentation of vtkCellArray and an<br>example such as otherCellArray:<br>
<br>VTK/Filtering/Testing/Cxx/otherCellArray.cxx</blockquote>
<div> </div>
<div>Ok, I'll look at asap.</div>
<div> </div>
<div>Cheers,</div>
<div> </div></div>