[vtkusers] snap vtk to stl conversion

Dominik Szczerba domi at vision.ee.ethz.ch
Thu Jul 20 07:35:27 EDT 2006


...and vtkContourFilter your point data once read in, see example in:

http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/Medical/Tcl/Medical1.tcl?root=VTK&content-type=text/plain

--ds

alves.scarparo at libero.it wrote:
> I'm a new newby in VTK and TCL.
> I'm trying to write a tcl small program to convert snap vtk created files to STL files.
> 
> I use 
> 
> vtkPolyDataReader pr
> pr SetFileName infile.vtk
> vtkSTLWriter pdw
> pdw SetInput [pr GetOutput]
> pdw SetFileName outfile.stl
> pdw Write
> 
> 
> but get this error:
> vtkPolyDataReader (0039EF00): Cannot read dataset type: structured_points
> 
> Probably I need to convert structured points to normal polyData and then use stlWriter.
> How can I do this?
> 
> 
> ________________________________________________________________
> Il primo circolatore d'aria! Vornado riduce i costi e migliora il clima nelle case, rendendo la temperatura gradevole
> http://click.libero.it/dmail
> 
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

-- 
Dominik Szczerba, Ph.D.
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi



More information about the vtkusers mailing list