#ifndef __bbUtilitiesSTLWriter_h_INCLUDED__ #define __bbUtilitiesSTLWriter_h_INCLUDED__ #include "bbtkAtomicBlackBox.h" #include "iostream" #include "vtkPolyData.h" #include namespace bbUtilities { class /*BBTK_EXPORT*/ STLWriter : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(STLWriter,bbtk::AtomicBlackBox); //================================================================== /// User callback called in the box contructor BBTK_DECLARE_INPUT(In,vtkPolyData*); BBTK_DECLARE_INPUT(FileName,std::string); BBTK_DECLARE_OUTPUT(Out,double); BBTK_PROCESS(Process); void Process(); vtkSTLWriter* writer; }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(STLWriter,bbtk::AtomicBlackBox); BBTK_NAME("STLWriter"); BBTK_AUTHOR("car-prie@uniandes.edu.co"); BBTK_DESCRIPTION("Writes a stereo lithography file, only ocntain triangles. If polygons with more than 3 vertices are present, only the firt 3 are written."); BBTK_CATEGORY("__CATEGORY__"); BBTK_INPUT(STLWriter,In,"Writes the polydata to STL",vtkPolyData*,""); BBTK_INPUT(STLWriter,FileName,"Filename of the STL file",std::string,""); BBTK_OUTPUT(STLWriter,Out,"First output",double,""); BBTK_END_DESCRIBE_BLACK_BOX(STLWriter); } // EO namespace bbUtilities #endif // __bbUtilitiesSTLWriter_h_INCLUDED__