X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkCreateMeshFromPoints.cxx;h=671b2645d49df41b4253a31fa6315bfd42168602;hb=6573c9a3a26c47acd12c224d5ab2804305099d93;hp=eee1bd2e1f515cdf2d4acc9bb0d052499ab1a28e;hpb=3e64ae6ef5cf12ca3f96264596932abf530a1222;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx index eee1bd2..671b264 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx @@ -31,17 +31,16 @@ void CreateMeshFromPoints::Process() // bbSetOutputOut( bbGetInputIn() ); // std::cout << "Output value = " < lstX = bbGetInputLstX(); std::vector lstY = bbGetInputLstY(); std::vector lstZ = bbGetInputLstZ(); std::vector lstIndexs = bbGetInputLstIndexs(); - if ( (lstIndexs.size()<=1) || (lstX.size()==0) || (lstX.size()!=lstY.size()) || (lstY.size()!=lstZ.size()) ) { 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,8 +82,7 @@ void CreateMeshFromPoints::Process() } // for ii iGeneral=iGeneral+sizeSegment1; cells->InsertNextCell(triangleStrip); - } //for LstIndexs - + } //for LstIndexs // vtkPolyData *polydata = vtkPolyData::New(); if (polydata!=NULL) polydata->Delete(); polydata = vtkPolyData::New(); @@ -103,6 +101,7 @@ void CreateMeshFromPoints::Process() bbSetOutputOut( clean->GetOutput() ); }// if listXYZ size } + //===== // 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) //=====