From: apo Date: Wed, 14 Dec 2005 10:37:46 +0000 (+0000) Subject: Fix for Bug GVIEW10709 X-Git-Tag: TG-D5-38-2003_D2005-29-12~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=41e4be042aa03eeb968f04e915aed6eda2afa41a;p=modules%2Fgui.git Fix for Bug GVIEW10709 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) --- diff --git a/src/VTKViewer/VTKViewer_GeometryFilter.cxx b/src/VTKViewer/VTKViewer_GeometryFilter.cxx index a3ca1c04e..d1baa5b11 100755 --- a/src/VTKViewer/VTKViewer_GeometryFilter.cxx +++ b/src/VTKViewer/VTKViewer_GeometryFilter.cxx @@ -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);