[vtkusers] Modifying SegmentationEditorGUIfltk for STL Export (where is the polydata?)

jan at ultrakiller.de jan at ultrakiller.de
Wed Sep 28 03:53:08 EDT 2005


Hallo everybody.

i´m trying to modify the SegmentationEditorGUIfltk provided by the ITK Examples to  export the 3d model given in the renderwindow as a stl-file. i´ve found a lot of solutions for implementing the stl export, but unfortunately i don´t know where i can find the input for my vtktrianglefilter. probably there should be something like "polydata" for input. (sorry for this question, but i´m a vtk-newbie)

thank you for your help in advance!

greetings
Jan Terjung


my work so far: ( ??? is the place where i need the datainput)

void EditorConsole
::WriteSTL()
{ 
   vtkTriangleFilter *triangles = vtkTriangleFilter::New();
   triangles->SetInput(       ???        ->GetOutput()      );
  
   vtkSTLWriter *stl=vtkSTLWriter::New();
   stl->SetInput(triangles->GetOutput());
   stl->SetFileName("c:\test.stl");
   stl->Write(); 
   std::cout <<"Done" ;
}



More information about the vtkusers mailing list