]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Issue 0020657: EDF 1244 SMESH: Bad display of tetras
authorouv <ouv@opencascade.com>
Wed, 20 Jan 2010 15:23:48 +0000 (15:23 +0000)
committerouv <ouv@opencascade.com>
Wed, 20 Jan 2010 15:23:48 +0000 (15:23 +0000)
src/VTKViewer/VTKViewer_ExtractUnstructuredGrid.cxx

index cb326fff6d2846869658cb8299d82e595f72d96d..243c2cd08d3ea429e9de00f50fa8fc393144a9d3 100755 (executable)
@@ -278,7 +278,10 @@ void VTKViewer_ExtractUnstructuredGrid::Execute()
     vtkUnsignedCharArray* aCellTypesArray = vtkUnsignedCharArray::New();
     aCellTypesArray->SetNumberOfComponents(1);
     aCellTypesArray->Allocate(aNbElems*aCellTypesArray->GetNumberOfComponents());
-    if(myChangeMode == ePassAll || myCellIds.empty() && myCellTypes.empty() && myChangeMode == eRemoving){
+    // additional condition has been added to treat a case described in IPAL21372
+    // note that it is significant only when myExtractionMode == ePoints
+    if(myChangeMode == ePassAll || myCellIds.empty() && myCellTypes.empty() && myChangeMode == eRemoving ||
+       !anInput->GetCellTypesArray()){
       if(myStoreMapping) myOut2InId.reserve(aNbElems);
       for(vtkIdType aCellId = 0, anOutId = 0; aCellId < aNbElems; aCellId++,anOutId++){
         InsertPointCell(aConnectivity,aCellTypesArray,aCellId,anIdList,