[vtkusers] vtkSTLWriter strongly confusing behavior

Dominik Szczerba dominik at itis.ethz.ch
Wed Aug 19 17:29:30 EDT 2009


I see your point. You are right.
So STL format has to be used literaly for import/export purposes, not 
storage. Maybe changing the class names to vtkSTLImporter and 
vtkSTLExporter would still be cleaner though to warn already with the 
names what they do.

Thanks for the clarifications,
Dominik

Frederic Danesi wrote:
> The reader acts as it has to with such a simple file format. STL files only
> include the geometry (coordinates of each points of the triangles), not the
> topology. It does not read actual mesh. That's not its purpose. 
> You used the STLWriter to save a mesh ... but when doing that, you've lost
> everything that matters in the mesh. 
> You should have use a polydataWriter and a polodataReader ...
> 
> Fred.
> 
> Cordialement,
> F.Danesi


-- 
d o m i n i k   s z c z e r b a ,   p h d . . . . . . . . . . .
c o m p u t a t i o n a l   l i f e   s c i e n c e   g r o u p
. . . . . . . i t ' i s   r e s e a r c h   f o u n d a t i o n
. . . . . . . . . . . . . . . . . . . . http://www.itis.ethz.ch




More information about the vtkusers mailing list