]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for Bug GVIEW10709
authorapo <apo@opencascade.com>
Wed, 14 Dec 2005 10:37:46 +0000 (10:37 +0000)
committerapo <apo@opencascade.com>
Wed, 14 Dec 2005 10:37:46 +0000 (10:37 +0000)
   wrong presentation of quadratic mesh elements
(a small file (arche.resu.tetra.med) with a few well connected tetras that dos not show well either on wireframe or surface representation)

src/VTKViewer/VTKViewer_GeometryFilter.cxx

index a3ca1c04e2510d44ab553b0b9473d07cb5518563..d1baa5b115af77e360ce622ebad33b0a1a1a811e 100755 (executable)
@@ -493,7 +493,7 @@ void VTKViewer_GeometryFilter::UnstructuredGridExecute()
              for (int j=0; j < cell->GetNumberOfFaces(); j++){
                vtkCell *face = cell->GetFace(j);
                input->GetCellNeighbors(cellId, face->PointIds, cellIds);
-               if ( cellIds->GetNumberOfIds() <= 0 && myShowInside ) {
+               if ( cellIds->GetNumberOfIds() <= 0 || myShowInside ) {
                  face->Triangulate(0,pts,coords);
                  for (i=0; i < pts->GetNumberOfIds(); i+=3) {
                    aNewPts[0] = pts->GetId(i);