Hi!<div>You could get  vtkPolydata as output from vtkContourFilter then use  vtkPolyDataWriter  to output surface as .vtk file.</div><div>Anka</div><div><br></div><div><font size="3"><br></font><div class="gmail_quote">On Thu, May 24, 2012 at 2:10 PM, João Domingos <span dir="ltr">&lt;<a href="mailto:joao.sousa.domingos@gmail.com" target="_blank">joao.sousa.domingos@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey all,<br>
<br>
I have a closed surface, basically an elipse, defined by:<br>
<br>
cf = vtk.vtkContourFilter<br>
cf.SetInputConnection(surf.GetOutputPort())<br>
cf.SetNumberOfContours(0)<br>
cf.SetValue(0,0)<br>
<br>
How can I export this cf surface to a file and how can I read it on<br>
later and simply use it, just as if I had created it?<br>
<br>
I took a look at teh vtkOBJExporter and vtkOBJReader, but this saves a<br>
vtkrenderwindow... not a surface.<br>
<br>
Big thanks in advance,<br>
Joao<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>
</blockquote></div><br></div>