//===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== #ifndef __bbcreaVtkCreateMeshFromPoints_h_INCLUDED__ #define __bbcreaVtkCreateMeshFromPoints_h_INCLUDED__ #include "bbcreaVtk_EXPORT.h" #include "bbtkAtomicBlackBox.h" #include "iostream" #include "vtkPoints.h" #include "vtkCellArray.h" #include "vtkPolyData.h" #include "vtkCleanPolyData.h" #include "vtkTriangleFilter.h" namespace bbcreaVtk { class bbcreaVtk_EXPORT CreateMeshFromPoints : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(CreateMeshFromPoints,bbtk::AtomicBlackBox); //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== BBTK_DECLARE_INPUT(LstX,std::vector); BBTK_DECLARE_INPUT(LstY,std::vector); BBTK_DECLARE_INPUT(LstZ,std::vector); BBTK_DECLARE_INPUT(LstIndexs,std::vector); BBTK_DECLARE_INPUT(OpenClose, bool); BBTK_DECLARE_INPUT(CloseSurface, bool); BBTK_DECLARE_OUTPUT(Out,vtkPolyData*); BBTK_PROCESS(Process); void Process(); vtkPoints *points; vtkCellArray *cells; vtkPolyData *polydata; vtkCleanPolyData *clean; vtkTriangleFilter *triangle; bool CalcValidCentroid(double(¢roid)[3], int start, int end, int increment, int numPoints); bool CheckLinePointOrder(); bool isPointingCorrectly( int firstPointId, int secPointId, double(¢roid)[3], int contrPointId); void CloseContourBottom(bool uPointOrder); void CloseContourSides(std::vector lstIndexs, bool uPointOrder); void CloseOpenContourSurface(std::vector lstIndexs); //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(CreateMeshFromPoints,bbtk::AtomicBlackBox); BBTK_NAME("CreateMeshFromPoints"); BBTK_AUTHOR("InfoDev"); BBTK_DESCRIPTION("No Description."); BBTK_CATEGORY("empty"); BBTK_INPUT(CreateMeshFromPoints,LstX,"List X point",std::vector,""); BBTK_INPUT(CreateMeshFromPoints,LstY,"List Y point",std::vector,""); BBTK_INPUT(CreateMeshFromPoints,LstZ,"List Z point",std::vector,""); BBTK_INPUT(CreateMeshFromPoints,LstIndexs,"Number of points by segment",std::vector,""); BBTK_INPUT(CreateMeshFromPoints,OpenClose,"(default false) Type of Contour: false=Open, true=Close",bool,""); BBTK_INPUT(CreateMeshFromPoints,CloseSurface,"(default false) Add the caps to close the surface",bool,""); BBTK_OUTPUT(CreateMeshFromPoints,Out,"vtkPolyData",vtkPolyData*,""); BBTK_END_DESCRIBE_BLACK_BOX(CreateMeshFromPoints); //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== } // EO namespace bbcreaVtk #endif // __bbcreaVtkCreateMeshFromPoints_h_INCLUDED__