[vtkusers] best way to export a surface and reload it
Anka Kochanowska
pluszcz at gmail.com
Thu May 24 14:20:58 EDT 2012
Hi!
You could get vtkPolydata as output from vtkContourFilter then use
vtkPolyDataWriter to output surface as .vtk file.
Anka
On Thu, May 24, 2012 at 2:10 PM, João Domingos <
joao.sousa.domingos at gmail.com> wrote:
> Hey all,
>
> I have a closed surface, basically an elipse, defined by:
>
> cf = vtk.vtkContourFilter
> cf.SetInputConnection(surf.GetOutputPort())
> cf.SetNumberOfContours(0)
> cf.SetValue(0,0)
>
> How can I export this cf surface to a file and how can I read it on
> later and simply use it, just as if I had created it?
>
> I took a look at teh vtkOBJExporter and vtkOBJReader, but this saves a
> vtkrenderwindow... not a surface.
>
> Big thanks in advance,
> Joao
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120524/dbe8f7ca/attachment.htm>
More information about the vtkusers
mailing list