<p>Hi Ricardo,</p><p> </p><p>You can use the class vtkPolyDataToPolyDataFilter to derive your filter.</p><p> </p><p>This class descends from vtkPolyDataSource<br>.</p><p>See the constructor of this last class, you will find a stable vtkPolydata output.</p>
<p><br>Good luck,<br>Guillermo<br><br></p><div class="gmail_quote">2012/3/25 Ricardo Villegas <span dir="ltr"><<a href="mailto:ricvilleg@gmail.com">ricvilleg@gmail.com</a>></span><br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Hello,<br><br>I'm writing a filter that receives an input polydata and produces its respective output polydata. However, the filter relies in recovering the output's point geometry every time the RequestData is invoked after the first time, in a similiar way vtkPolyDataSilhouette filter does, for changing the output points' coordinates.<br>
<br>I noticed that after first time, every time the filter's RequestData is called the output data is lost or missing, so I can't call i.e. output->GetPoints( ), because the list of points is empty.<br><br>Is there a way I can preserve the output data the filter generates so I can directly access and manipulate it in consecutive RequestData calls?<br>
<br>Thanks in advance,<br><br>Ricardo<br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>