]> Creatis software - creaMaracasVisu.git/commitdiff
#3580 Bug DrawAxisTree3D
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 22 Jul 2025 15:26:48 +0000 (17:26 +0200)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 22 Jul 2025 15:26:48 +0000 (17:26 +0200)
bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx

index 02d0f4ad490f415f8720ec536c60e384d478ced8..54c73fe38630273a25111f764200de5ed9abcf69 100644 (file)
@@ -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