X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_creaVtk_PKG%2Fsrc%2FbbcreaVtkMeshDeformation.cxx;h=b737afbf935b36cdb643ca437477bd8b259cd056;hb=04f142810003e7e5b286c5a75ed26e25e55dfcc5;hp=47bf806d454819ddf306ee3a5264ffe72a0d9fcb;hpb=3f7942238283deeee804cc405c22c64d8a785300;p=creaVtk.git diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkMeshDeformation.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshDeformation.cxx index 47bf806..b737afb 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkMeshDeformation.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshDeformation.cxx @@ -13,7 +13,6 @@ BBTK_BLACK_BOX_IMPLEMENTATION(MeshDeformation,bbtk::AtomicBlackBox); //===== void MeshDeformation::Process() { - // THE MAIN PROCESSING METHOD BODY // Here we simply set the input 'In' value to the output 'Out' // And print out the output value @@ -29,7 +28,6 @@ void MeshDeformation::Process() // std::cout << "Output value = " < lstCenter = bbGetInputCenter(); - double s = bbGetInputS(); bool ok = false; if (bbGetInputTypeIn()==0) // direction @@ -53,9 +51,9 @@ void MeshDeformation::Process() double pb[3]; // point base double np[3]; // new point double sx,sy,sz; - sx = s*2; - sy = sx; - sz = sy; + sx = s*4; + sy = s*4; + sz = s*4; double displcement_x = 0; double displcement_y = 0; @@ -67,6 +65,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 +84,6 @@ void MeshDeformation::Process() if (EdgeIdBack!=bbGetInputEdgeId() ) { EdgeIdBack = bbGetInputEdgeId(); - displcement_x = 0; - displcement_y = 0; - displcement_z = 0; voiIdPoints.clear(); for ( i=0 ; iModified(); bbGetInputIn()->Modified(); } // if distance_x y z != 0 - } // In != NULL ok active + } // In != NULL ok active } //===== // 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) @@ -151,6 +152,7 @@ void MeshDeformation::bbUserSetDefaultValues() 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) //===== @@ -164,19 +166,18 @@ void MeshDeformation::bbUserInitializeProcessing() } + //===== // 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