]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx
#3266 creaMaracasVisu Feature New Normal - ManualContour_Box by segments
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuDrawAxisTree3D.cxx
index f56b4164065fab81ce73a0ff4544765802d9bd05..45ec0b7d52bf1de570da9ba36a9a9a416a08b0c8 100644 (file)
@@ -192,7 +192,12 @@ void DrawAxisTree3D::Process()
 {
 
        int iGeneral=0;
-       int iAxis,sizeLstAxis=bbGetInputlstIndexs().size();
+       std::vector<int> lstIndexs = bbGetInputlstIndexs();
+       if ( bbGetInputlstIndexs().size()==0 )
+       {
+               lstIndexs.push_back( bbGetInputlstPointX().size() );
+       } // if
+       int iAxis,sizeLstAxis=lstIndexs.size();
     int iActor,sizeActors = vecVtkActors.size();
        int numPoints;
 
@@ -217,7 +222,7 @@ void DrawAxisTree3D::Process()
 
         for ( iAxis=0 ; iAxis<sizeLstAxis ; iAxis++)
         {
-            numPoints = bbGetInputlstIndexs()[iAxis];
+            numPoints = lstIndexs[iAxis];
             DrawOneAxis(iGeneral,numPoints,iAxis);
             iGeneral = iGeneral+numPoints;