]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To to shallow copy of input data set to output one if there is no implicit function...
authorapo <apo@opencascade.com>
Wed, 28 Sep 2005 08:53:34 +0000 (08:53 +0000)
committerapo <apo@opencascade.com>
Wed, 28 Sep 2005 08:53:34 +0000 (08:53 +0000)
src/PIPELINE/SALOME_ExtractGeometry.cxx

index 816cf5339fa0fddc808a6e6ebc561ebe54f4ef3e..55db466479950bac566a429fe9cfa4691c7b4ab7 100755 (executable)
@@ -144,16 +144,20 @@ SALOME_ExtractGeometry
 {
   myElemVTK2ObjIds.clear();
   myNodeVTK2ObjIds.clear();
-  if(myImplicitBoolean.GetPointer()){
+
+  bool anIsNothingToDo = !this->ImplicitFunction;
+
+  if(!anIsNothingToDo && myImplicitBoolean.GetPointer()){
     if(vtkImplicitFunctionCollection* aFunction = myImplicitBoolean->GetFunction()){
-      if(aFunction->GetNumberOfItems() == 0){
-       vtkDebugMacro(<<"Extracting geometry - ShallowCopy");
-       GetOutput()->ShallowCopy(GetInput());
-        Modified();
-       return;
-      }
+      anIsNothingToDo = aFunction->GetNumberOfItems() == 0;
     }
   }
+
+  if(anIsNothingToDo){
+    GetOutput()->ShallowCopy(GetInput());
+    return;
+  }
+
   Execute2();
 }
 
@@ -179,8 +183,6 @@ SALOME_ExtractGeometry
   numCells = input->GetNumberOfCells();
   numPts = input->GetNumberOfPoints();
 
-  vtkDebugMacro(<< "Extracting geometry");
-
   if ( ! this->ImplicitFunction )
     {
     vtkErrorMacro(<<"No implicit function specified");