vtkTubeFilter with binary vtkSTLWriter
VTK version 8.90 - commit 538fba52
Today if experienced an issue (or a bug) while creating vtkPolyData
with vtkTubeFilter
and writing the information into a binary STL file with vtkSTLWriter
.
When writing the STL file in ASCII format, there is no problem.
I found, that the binary STL file does not contain a valid number of polygons (first uint32
value after 80-bytes header) which is necessary to open the binary STL. The ASCII file does not need such an information, which is why I think there are no problems when writing in ASCII format.
When using vtkPolyData::PrintSelf()
on the output of vtkTubeFilter
, there is no information about the number of polygons. Solely the number of triangles strips is given.
I've attached the corrupt STL file of a tube generated from a spline.