]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/src/bbcreaVtkPointPickerNearest.cxx
MeshManager
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkPointPickerNearest.cxx
index fc2442a9977d9e9066fa24d9500a06ab067498d8..99a8d6c755ed3e7a8d1b96532a5fe142e629e408 100644 (file)
@@ -36,8 +36,6 @@ void PointPickerNearest::Process()
     std::vector<double> lstNormal;
     std::vector<double> refPoint = bbGetInputPoint();
 
-    printf ("EED PointPickerNearest::Process 1\n");
-
     if ((bbGetInputActive()==true) && ( bbGetInputMesh()!=NULL) && (refPoint.size()==3) )
     {
         double      p[3];
@@ -65,7 +63,6 @@ void PointPickerNearest::Process()
             } // if distMax
         } // for i
 
-        printf ("EED PointPickerNearest::Process 3\n");
         if (iBack>=0)
         {
             vtkPointData    *pointdata  = bbGetInputMesh()->GetPointData();
@@ -79,12 +76,10 @@ void PointPickerNearest::Process()
                 printf("EED creaVtkCallbackPointPicker::Execute dataarray=%s  n=%ld p=%ld\n", dataarray->GetName(),dataarray->GetNumberOfValues() ,polydata->GetNumberOfPoints() );
             } // for i
             */
-            printf ("EED PointPickerNearest::Process 4\n");
             dataarray   = pointdata->GetNormals();
             if (dataarray!=NULL)
             {
                 pValue      = dataarray->GetTuple3( iBack );
-                printf ("EED PointPickerNearest::Process 5\n");
                 lstNormal.push_back(pValue[0]);
                 lstNormal.push_back(pValue[1]);
                 lstNormal.push_back(pValue[2]);
@@ -92,7 +87,6 @@ void PointPickerNearest::Process()
         } // if iBack
         bbSetOutputPointId( iBack );
         bbSetOutputNormal( lstNormal );
-        printf ("EED PointPickerNearest::Process 6 %ld\n", iBack);
         std::vector<double> lstPointOut;
         if (iBack>=0){
             points->GetPoint(iBack,p);
@@ -102,6 +96,7 @@ void PointPickerNearest::Process()
             printf ("EED PointPickerNearest::Process 7 pointOut=%f %f %f\n", lstPointOut[0],lstPointOut[1],lstPointOut[2]);
         }// if iBack
         bbSetOutputPointOut( lstPointOut );
+        bbSignalOutputModification();
     } else {
         bbSetOutputPointId( -1 );
         lstNormal.push_back(0);
@@ -109,10 +104,9 @@ void PointPickerNearest::Process()
         lstNormal.push_back(2);
         bbSetOutputNormal( lstNormal );
         bbSetOutputPointOut( bbGetInputPoint() );
+        bbSignalOutputModification();
     }
-    
     printf ("EED PointPickerNearest::Process END\n");
-
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)