From: Eduardo Enrique Davila Serrano Date: Thu, 6 Oct 2022 05:28:09 +0000 (+0200) Subject: #3490 MeshManager X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=690b561e62bf9835b94cf248a6747b50b0641df7;p=creaVtk.git #3490 MeshManager --- diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx index eee1bd2..534d002 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkCreateMeshFromPoints.cxx @@ -31,11 +31,11 @@ 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"); @@ -83,8 +83,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 +102,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) //===== diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkMeshDeformation.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshDeformation.cxx index 47bf806..760d70b 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkMeshDeformation.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshDeformation.cxx @@ -67,6 +67,9 @@ void MeshDeformation::Process() displcement_y = bbGetInputDirection()[1]; displcement_z = bbGetInputDirection()[2]; } // if TypeIn 0 Direction + + printf(" EED MeshDeformation::Process %ld %ld - %f %f %f \n", EdgeIdBack, bbGetInputEdgeId() , lstCenter[0],lstCenter[1],lstCenter[2] ); + if (bbGetInputTypeIn()==1) // Center { if (EdgeIdBack==bbGetInputEdgeId() ) @@ -83,9 +86,6 @@ void MeshDeformation::Process() if (EdgeIdBack!=bbGetInputEdgeId() ) { EdgeIdBack = bbGetInputEdgeId(); - displcement_x = 0; - displcement_y = 0; - displcement_z = 0; voiIdPoints.clear(); for ( i=0 ; i