[vtkusers] Strips "triangulated" back into polys?

Jeremy Winston jbw at ieee.org
Tue Apr 12 09:58:17 EDT 2005


Hi Folks,
     vtkSTLWriter only likes polys;
it ignores triangle strips:

   void vtkSTLWriter::WriteData()
   {
     ...
     polys = input->GetPolys();
     pts = input->GetPoints();
     if (pts == NULL || polys == NULL )
      {
       vtkErrorMacro(<<"No data to write!");
       return;
      }
     ...

Is there a filter that "un-strips" a triangle
strip back into triangles?

(And the answer to the obvious question is that
the .vtk files being converted to STL files by
vtkSTLWriter are created by code oustide of my
control. ;-)

TIA,
-Jeremy



More information about the vtkusers mailing list