From 147ea8d0631991fe4173e0a0ffa54ab174c67a95 Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Tue, 22 Jul 2025 17:26:48 +0200 Subject: [PATCH] #3580 Bug DrawAxisTree3D --- bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx | 30 ++++++++++-------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx b/bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx index 02d0f4a..54c73fe 100644 --- a/bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx +++ b/bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx @@ -194,7 +194,7 @@ void DrawAxisTree3D::Process() // Adding actors if (bbGetInputActive()==true) { - if ( (bbGetInputlstPointX().size()==bbGetInputlstPointY().size()) && + if ( (bbGetInputlstPointX().size()==bbGetInputlstPointY().size()) && (bbGetInputlstPointX().size()==bbGetInputlstPointZ().size()) ) { int iGeneral=0; @@ -215,8 +215,9 @@ void DrawAxisTree3D::Process() { bbSetOutputOutAxis( vecVtkActors[ bbGetInputiAxis() ] ); } else { - printf("DrawAxisTree3D .ERROR. iAxis for exist in actors vector ...\n"); - } // if + printf("DrawAxisTree3D .ERROR. iAxis not exist in actors vector ...\n"); + bbSetOutputOutAxis( NULL ); + } // if } else { printf("\nDrawAxisTree3D .ERROR. size of vectors lstPointX.size=%d lstPointY.size=%d lstPointZ.size=%d are not coherent \n\n",bbGetInputlstPointX().size(), bbGetInputlstPointY().size(), bbGetInputlstPointZ().size() ); }// size X Y Z @@ -261,23 +262,18 @@ void DrawAxisTree3D::bbUserSetDefaultValues() bbSetInputColourLaw(1); bbSetInputTransform(NULL); bbSetOutputOutAxis(NULL); - } +//----------------------------------------------------------------- +void DrawAxisTree3D::bbUserInitializeProcessing() +{ +} - //----------------------------------------------------------------- - void DrawAxisTree3D::bbUserInitializeProcessing() - { - } - - //----------------------------------------------------------------- - void DrawAxisTree3D::bbUserFinalizeProcessing() - { - } - - //----------------------------------------------------------------- - +//----------------------------------------------------------------- +void DrawAxisTree3D::bbUserFinalizeProcessing() +{ } -// EO namespace bbcreaMaracasVisu + +}// EO namespace bbcreaMaracasVisu -- 2.51.0