]> Creatis software - creaVtk.git/commitdiff
Clean code
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Tue, 20 Sep 2022 14:09:20 +0000 (16:09 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Tue, 20 Sep 2022 14:09:20 +0000 (16:09 +0200)
bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkMeshReduction_DecimatePro.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkStlWriter.h

index 7b9cf258dae4c0b196038a147fd86cb334ce452a..eee1bd2e1f515cdf2d4acc9bb0d052499ab1a28e 100644 (file)
@@ -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<vtkPoints> points = vtkSmartPointer<vtkPoints>::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();
index 8a019ff2a4fd7d2b786945e4ecf9999518b3f0b9..6c44e15d1769031b9c55e286195b35dd4232cd22 100644 (file)
@@ -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;
index 1203b2ab29e87acc868326cb91eae326b08a9a68..d56cd44f38d89ee80d8f00e5a1b6aac05bf19a54 100644 (file)
@@ -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);
 //=====