<br><br>
<div><span class="gmail_quote">2007/2/21, Mathieu Malaterre &lt;<a href="mailto:mathieu.malaterre@kitware.com">mathieu.malaterre@kitware.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">fred wrote:<br>&gt; Hi,<br>&gt;<br>&gt; In vtkXMLWriterC.h, vtkXMLWriterC_SetCellsWithTypes is declared as
<br>&gt;<br>&gt; void vtkXMLWriterC_SetCellsWithTypes(vtkXMLWriterC* self,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int* cellTypes, vtkIdType ncells,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkIdType* cells, vtkIdType cellsSize);
<br>&gt;<br>&gt; I think the last argument should be read vtkIdType* cellsSize instead of<br>&gt; vtkIdType cellsSize, because if cells could have different type, they<br>&gt; should have<br>&gt; different size.<br>&gt;<br>
&gt; 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>&nbsp;</div>
<div>Hi, </div>
<div>I can&#39;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>&nbsp;</div>
<div>As cellTypes is a pointer, there is no problem:</div>
<div>cellTypes = [VTK_QUAD VTK_QUAD ... VTK_VOXEL VTK_VOXEL]</div>
<div>&nbsp;</div>
<div>The problem comes from cellsSize, which is not a pointer but a</div>
<div>integer. So, as my&nbsp;cells have different size, how can I put these sizes</div>
<div>in vtkXMLWriterC_SetCellsWithTypes ?</div>
<div>&nbsp;</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>&nbsp;</div>
<div>Ok, I&#39;ll look at asap.</div>
<div>&nbsp;</div>
<div>Cheers,</div>
<div>&nbsp;</div></div>