BBTK_DECLARE_INPUT(LstZ,std::vector<double>);
BBTK_DECLARE_INPUT(LstIndexs,std::vector<int>);
BBTK_DECLARE_INPUT(OpenClose, bool);
+ BBTK_DECLARE_INPUT(CloseSurface, bool);
BBTK_DECLARE_OUTPUT(Out,vtkPolyData*);
BBTK_PROCESS(Process);
void Process();
vtkCleanPolyData *clean;
vtkTriangleFilter *triangle;
- void CalcCentroid(double(¢roid)[3], int start, int end, int increment, int numPoints);
+ 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<int> lstIndexs, bool uPointOrder);
void CloseOpenContourSurface(std::vector<int> lstIndexs);
BBTK_INPUT(CreateMeshFromPoints,LstZ,"List Z point",std::vector<double>,"");
BBTK_INPUT(CreateMeshFromPoints,LstIndexs,"Number of points by segment",std::vector<int>,"");
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*,"");