]> Creatis software - creaMaracasVisu.git/commitdiff
no message
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 1 Mar 2011 17:46:55 +0000 (17:46 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 1 Mar 2011 17:46:55 +0000 (17:46 +0000)
bbtk/src/bbmaracasvisuAxeVolume.cxx
bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx

index dfadc27204c3ab7640d317eb5904f473280b323b..bee0a9a0792a6244fffe56ff7872b4ba8a713f37 100644 (file)
@@ -48,13 +48,14 @@ void AxeVolume::Process()
         {
                if (sizeLstPointR<iAxe)
                {
-                       r = bbGetInputlstPointR()[ bbGetInputlstPointR().size() ];
+                       r = bbGetInputlstPointR()[ bbGetInputlstPointR().size()-1 ];
                } else {
                        r = bbGetInputlstPointR()[ iAxe ];
                }
                px = bbGetInputlstPointX()[iAxe];
                py = bbGetInputlstPointY()[iAxe];
                pz = bbGetInputlstPointZ()[iAxe];
+                printf("AxeVolume::Process %d ->  %f, %f, %f\n",iAxe, px,py,pz);
                px1 = px - r;
                py1 = py - r;
                pz1 = pz - r;
index d58332c113e402f8ec2b6f513dad040612dfe7e7..79e256866eec7bbcffb0488464e5df65a426310a 100644 (file)
@@ -44,6 +44,7 @@ void DrawAxisTree3D::DrawOneAxis(int iGeneral,int numPoints, int iAxis)
                        allPoints->InsertNextPoint( bbGetInputlstPointX()[i]*spc[0],  
                                                                                bbGetInputlstPointY()[i]*spc[1], 
                                                                                bbGetInputlstPointZ()[i]*spc[2] );
+                       printf("DrawAxisTree3D::DrawOneAxis point  %d -> %f, %f, %f \n", i,  bbGetInputlstPointX()[i], bbGetInputlstPointY()[i], bbGetInputlstPointZ()[i] );
                        allTopology->InsertCellPoint( i-iGeneral );
                } // rof
                polydata->SetPoints( allPoints );
@@ -112,12 +113,11 @@ void DrawAxisTree3D::Process()
                DrawOneAxis(iGeneral,numPoints,iAxis);
                iGeneral = iGeneral+numPoints;
                
-               if ((iAxis % 10)==0)
+               if ((iAxis % 1)==0)
                {
-                       printf("EED DrawAxisTree3D  %d/%d\n", iAxis,sizeLstAxis );
+                       printf("EED  DrawAxisTree3D::Process  %d/%d\n", iAxis,sizeLstAxis );
                }
        }
-       printf("EED DrawAxisTree3D  %d/%d\n", iAxis,sizeLstAxis );
 
 
        bbSetOutputOutAxis( vecVtkActors[ bbGetInputiAxis() ] );