Salome HOME
Merge with OCC_development_01
[modules/visu.git] / src / CONVERTOR / VISU_ExtractUnstructuredGrid.cxx
index a8ba1e375f7e53c4aeb0f4e079eefbcae2841b68..6fc53d05f40b1fd9c1cd3499301aa8c5cc57dfc9 100644 (file)
@@ -75,11 +75,10 @@ void VISU_ExtractUnstructuredGrid::Execute(){
   vtkUnstructuredGrid *anInput = this->GetInput(), *anOutput = this->GetOutput();
   vtkIdType aNbCells = anInput->GetNumberOfCells();
   anOutput->Allocate(aNbCells);
-  if(MYDEBUG) MESSAGE("Execute - anInput->GetNumberOfCells() = "<<anInput->GetNumberOfCells());
+  MSG(MYDEBUG,"Execute - anInput->GetNumberOfCells() = "<<anInput->GetNumberOfCells());
   vtkIdList *aCellIds = vtkIdList::New();
-  if(MYDEBUG) 
-    MESSAGE("Execute - myRemovedCellIds.empty() = "<<myRemovedCellIds.empty()<<
-           "; myRemovedCellTypes.empty() = "<<myRemovedCellTypes.empty());
+  MSG(MYDEBUG,"Execute - myRemovedCellIds.empty() = "<<myRemovedCellIds.empty()<<
+      "; myRemovedCellTypes.empty() = "<<myRemovedCellTypes.empty());
   if(myRemovedCellIds.empty() && myRemovedCellTypes.empty())
     anOutput->CopyStructure(anInput);
   else if(!myRemovedCellIds.empty() && myRemovedCellTypes.empty()){
@@ -97,5 +96,5 @@ void VISU_ExtractUnstructuredGrid::Execute(){
          InsertCell(anInput,anOutput,aCellId,aCellIds);
   aCellIds->Delete();
   anOutput->SetPoints(anInput->GetPoints());
-  if(MYDEBUG) MESSAGE("Execute - anOutput->GetNumberOfCells() = "<<anOutput->GetNumberOfCells());
+  MSG(MYDEBUG,"Execute - anOutput->GetNumberOfCells() = "<<anOutput->GetNumberOfCells());
 }