From: Eduardo DAVILA Date: Tue, 20 Sep 2022 14:09:20 +0000 (+0200) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=3e64ae6ef5cf12ca3f96264596932abf530a1222;p=creaVtk.git Clean code --- diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx index 7b9cf25..eee1bd2 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx @@ -41,6 +41,7 @@ void CreateMeshFromPoints::Process() printf("Warnning! CreateMeshFromPoints::Process: List of points X Y Z and LstIndexes is not correct\n"); bbSetOutputOut(NULL); } else { + printf("EED CreateMeshFromPoints::Process initial=%d final=%d\n" , lstIndexs[0] , lstIndexs[ lstIndexs.size()-1 ] ); int ii,sizeSegment1,sizeSegment2; int endSegment; // vtkSmartPointer points = vtkSmartPointer::New(); @@ -83,6 +84,7 @@ void CreateMeshFromPoints::Process() iGeneral=iGeneral+sizeSegment1; cells->InsertNextCell(triangleStrip); } //for LstIndexs + // vtkPolyData *polydata = vtkPolyData::New(); if (polydata!=NULL) polydata->Delete(); polydata = vtkPolyData::New(); diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkMeshReduction_DecimatePro.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshReduction_DecimatePro.cxx index 8a019ff..6c44e15 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkMeshReduction_DecimatePro.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshReduction_DecimatePro.cxx @@ -28,9 +28,6 @@ void MeshReduction_DecimatePro::Process() // * TYPE is the C++ type of the input/output // (the one provided in the attribute 'type' of the tag 'input') - printf("EED MeshReduction_DecimatePro::Process In=%p \n",bbGetInputIn() ); - - if (firsttime==true) { firsttime = false; diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkStlWriter.h b/bbtk_creaVtk_PKG/src/bbcreaVtkStlWriter.h index 1203b2a..d56cd44 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkStlWriter.h +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkStlWriter.h @@ -39,7 +39,7 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(StlWriter,bbtk::AtomicBlackBox); BBTK_CATEGORY("empty"); BBTK_INPUT(StlWriter,FileName,"File Name",std::string,""); BBTK_INPUT(StlWriter,In,"vtkPolyData (Mesh)",vtkPolyData*,""); - BBTK_INPUT(StlWriter,Ascii,"(true defaimt) true Ascii / false Binary",bool,""); + BBTK_INPUT(StlWriter,Ascii,"(true default) true:Ascii / false:Binary",bool,""); // BBTK_OUTPUT(StlWriter,Out,"First output",double,""); BBTK_END_DESCRIBE_BLACK_BOX(StlWriter); //=====