]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug NPAL14169 and 15200. V3_2_6pre4
authorenk <enk@opencascade.com>
Thu, 12 Apr 2007 05:55:05 +0000 (05:55 +0000)
committerenk <enk@opencascade.com>
Thu, 12 Apr 2007 05:55:05 +0000 (05:55 +0000)
src/VISU_I/VISU_PrsMerger_i.cc

index 165afce1854eef4603bf16039527b81d304fd3c2..c021c9d34f9c41f67e0035d12afffc6d19637d6b 100644 (file)
@@ -543,11 +543,15 @@ VISU::PrsMerger_i
   if(!anIDMapper) return false;
   
   bool aAllPoints = true;
-  if(anIDMapper->GetVTKOutput()->GetNumberOfCells()>0){
+  int aNbCellsInGeom     = anIDMapper->GetVTKOutput()->GetNumberOfCells();
+  if(aNbCellsInGeom>0){
     int aVtkCellType = anIDMapper->GetVTKOutput()->GetCellType(0);
     if (MYDEBUG) MESSAGE("CellType="<<aVtkCellType);
     switch(myEntity){
     case NODE_ENTITY:
+      // Warning. May be unstable. Created for NPAL15200
+      aAllPoints = false;
+      break;
     case CELL_ENTITY:
       if(aVtkCellType != VTK_LINE &&
         aVtkCellType != VTK_POLY_LINE &&