[vtkusers] STl file is empty

Vincent Magnotta vincent-magnotta at uiowa.edu
Sat Jan 16 12:16:57 EST 2010


This suggests that you have no triangles in the polydata that was generated.
I would check the pipeline and the polydata at each step of the pipeline. We
use the STL reader and writer all of the time in VTK and have had no
problems with the resulting surfaces. We have imported the STL file into
other programs as well.

Vince


On 1/16/10 10:42 AM, "David Doria" <daviddoria+vtk at gmail.com> wrote:

> On Sat, Jan 16, 2010 at 10:13 AM, InfoSeekerr
> <ali.mahmoud.habib at gmail.com> wrote:
>> 
>> Dear all,
>> I write the following code to create mesh then write it to stl file, the
>> algorithm is:
>> 
>> vtkDICOMImageReader then vtkContourFilter then vtkSmoothPolyDataFilter then
>> vtkPolyDataNormals then vtkStripper then vtkPolyDataConnectivityFilter (to
>> remove undisered parts ) then  vtkSTLWriter
>> 
>> when open the stl file using notepad I just found those lines :
>> solid ascii
>> endsolid
>> 
>> which can't be read by other stl readers programs like maya
>> 
>> any advice please
> 
> It sounds like the problem doesn't have anything to do with your
> pipeline, just the last step (the writer).
> 
> This example seems to create a valid stl file:
> http://www.cmake.org/Wiki/VTK/Examples/IO/WriteSTL
> 
> By "valid", I mean it opens in Paraview. Since paraview uses VTK IO,
> I'm not sure this is a good test for testing if the file is in a
> generally acceptable format. Blender doesn't seem to have an STL
> importer - does anyone know another open source package that can read
> STL? I don't have maya on this machine to try it.
> 
> Thanks,
> 
> David
> _______________________________________________
> 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

----------------------
Associate Professor
Department of Radiology
0453-D JCP
200 Hawkins Drive
Iowa City, IA 52242
E-mail: vincent-magnotta at uiowa.edu
Phone: 319-356-8255 Fax: 319-353-6275
Website: http://www.radiology.uiowa.edu






More information about the vtkusers mailing list