]> Creatis software - creaVtk.git/commitdiff
Merge branch 'vtk9itk5wx3-macos' of ssh://git.creatis.insa-lyon.fr/creaVtk into vtk9i...
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Thu, 6 Oct 2022 09:25:37 +0000 (11:25 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Thu, 6 Oct 2022 09:25:37 +0000 (11:25 +0200)
1  2 
bbtk_creaVtk_PKG/src/bbcreaVtkMeshDeformation.cxx

index e65b411e9d30111d1b698b17329d7223dbf09639,760d70b5a7c17ccfa806772b4e9d5cc3b90fa6bb..865a6fae82f8b9c352c2b34c0ef45908e14e2055
@@@ -28,7 -28,6 +28,7 @@@ void MeshDeformation::Process(
  //    bbSetOutputOut( bbGetInputIn() );
  //    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
  
 +
      std::vector<double> lstCenter = bbGetInputCenter();
  
      double  s   = bbGetInputS();
@@@ -48,9 -47,6 +48,9 @@@
  
      if ( (bbGetInputIn()!=NULL) && (ok==true) && (bbGetInputEdgeId()>=0) && (bbGetInputActive()==true) )
      {
 +
 +        printf(" EED MeshDeformation::Process   %ld   %ld  -   %f %f %f \n", EdgeIdBack, bbGetInputEdgeId() , lstCenter[0],lstCenter[1],lstCenter[2] );
 +
          vtkPoints* points=bbGetInputIn()->GetPoints();
          long    i,size=points->GetNumberOfPoints();
          double  p[3];  // point
@@@ -71,6 -67,9 +71,9 @@@
              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() )
@@@ -87,9 -86,6 +90,6 @@@
          if (EdgeIdBack!=bbGetInputEdgeId() )
          {
              EdgeIdBack = bbGetInputEdgeId();
-             displcement_x = 0;
-             displcement_y = 0;
-             displcement_z = 0;
              voiIdPoints.clear();
              for ( i=0 ; i<size ; i++)
              {
                      voiIdPoints.push_back( i );
                  } // if
              } // for i
-         } // back
+                       backLstCenter[0] = lstCenter[0];
+                       backLstCenter[1] = lstCenter[1];
+                       backLstCenter[2] = lstCenter[2];
+         } // if EdgeIdBack
  
          if ( !((displcement_x==0) &&(displcement_y==0) && (displcement_z==0)) )
          {
@@@ -155,7 -154,6 +158,7 @@@ void MeshDeformation::bbUserSetDefaultV
      backLstCenter.push_back(0);
      backLstCenter.push_back(0);
  }
 +
  //===== 
  // 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)
  //===== 
@@@ -169,18 -167,19 +172,18 @@@ void MeshDeformation::bbUserInitializeP
  
    
  }
 +
  //===== 
  // 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)
  //===== 
  void MeshDeformation::bbUserFinalizeProcessing()
  {
 -
  //  THE FINALIZATION METHOD BODY :
  //    Here does nothing 
  //    but this is where you should desallocate the internal/output pointers 
  //    if any
 -  
  }
 -}
 -// EO namespace bbcreaVtk
 +
 +}// EO namespace bbcreaVtk