{
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();
}
numCells = input->GetNumberOfCells();
numPts = input->GetNumberOfPoints();
- vtkDebugMacro(<< "Extracting geometry");
-
if ( ! this->ImplicitFunction )
{
vtkErrorMacro(<<"No implicit function specified");