<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Cesar,<br>
<br>
This line is ok:<br>
<pre wrap="">data-&gt;GetPolys()-&gt;GetNextCell(npts,pts)</pre>
The method will use the address of your variable. Check:<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.vtk.org/doc/nightly/html/classvtkCellArray.html">http://www.vtk.org/doc/nightly/html/classvtkCellArray.html</a><br>
int&nbsp;<a class="el"
 href="http://www.vtk.org/doc/nightly/html/classvtkCellArray.html#z804_0">GetNextCell</a>
(<a class="el"
 href="http://www.vtk.org/doc/nightly/html/vtkType_8h.html#a69">vtkIdType</a>
&amp;npts, <a class="el"
 href="http://www.vtk.org/doc/nightly/html/vtkType_8h.html#a69">vtkIdType</a>
*&amp;pts)<br>
<br>
Regards,<br>
Sylvain<br>
<br>
Cesar Rabak wrote:
<blockquote
 cite="mid20051103202832.841.qmail@web30407.mail.mud.yahoo.com"
 type="cite">
  <pre wrap="">Sylvain,

shouldn't this line:

  </pre>
  <blockquote type="cite">
    <pre wrap="">while ( data-&gt;GetPolys()-&gt;GetNextCell(npts,pts) )
    </pre>
  </blockquote>
  <pre wrap=""><!---->
be:

while ( data-&gt;GetPolys()-&gt;GetNextCell( &amp;npts, pts) )

?



  </pre>
</blockquote>
</body>
</html>