From: Eduardo DAVILA Date: Thu, 10 Aug 2023 16:29:50 +0000 (+0200) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=0e6cb4ca72960a6df5670a618ab1efb9558bf650;p=creaVtk.git Clean code --- diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkBooleanOperationPolyDataFilter.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkBooleanOperationPolyDataFilter.cxx index f610d86..963ab8b 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkBooleanOperationPolyDataFilter.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkBooleanOperationPolyDataFilter.cxx @@ -38,6 +38,8 @@ void BooleanOperationPolyDataFilter::Process() // bbSetOutputOut( bbGetInputIn() ); // std::cout << "Output value = " <bbSetOutputMeshNames( GetMeshNames() ); mBox->bbSetOutputAllPolyDatas( GetAllPolyDatas() ); mBox->bbSetOutputMeshSelection( GetCurrentMesh() ); - if(signalBox==true){ + if(signalBox==true) + { mBox->bbSignalOutputModification(); } } @@ -52,20 +53,17 @@ void MeshManager::Process() if (meshManagerModel_Box==NULL) { meshManagerModel_Box = new MeshManagerModel_Box(this); - if(bbGetInputMemoryMode() == false){ meshManagerModel_Box->MeshMemoryModeOff(); meshManagerModel_Box->AddMeshes_( bbGetInputMeshVector() ); meshManagerModel_Box->AddMesh_( bbGetInputMesh() ); meshManagerModel_Box->ResetHistory(); - } - else{ + } else { meshManagerModel_Box->MeshMemoryModeOn(); meshManagerModel_Box->SetHistory(50); meshManagerModel_Box->AddMesh_( bbGetInputMesh() ); meshManagerModel_Box->SaveMemoryMode(); } - //meshManagerModel_Box->SetMeshBase( bbGetInputMesh() ); meshManagerModel_Box->RefreshOutputs(false); bbSetOutputMeshManagerModel( meshManagerModel_Box ); diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkMeshManager_tool.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshManager_tool.cxx index e1fc4ed..ba2efcf 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkMeshManager_tool.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkMeshManager_tool.cxx @@ -27,6 +27,10 @@ void MeshManager_tool::Process() // bbSetOutputOut( bbGetInputIn() ); // std::cout << "Output value = " <