From: apo Date: Thu, 20 Sep 2007 09:55:33 +0000 (+0000) Subject: Fix for Bug NPAL16976 X-Git-Tag: T_24092007 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cf3c8fb4251c8dd3e53f7af68d69263557ae8424;p=modules%2Fgui.git Fix for Bug NPAL16976 bug in appearance of polyhedron in VTK viewer after debug NPAL16814. The bug was fixed by introduction one additianal line of code, namely - myPoints->Modified(); // the VTK bug --- diff --git a/src/VTKViewer/VTKViewer_ConvexTool.cxx b/src/VTKViewer/VTKViewer_ConvexTool.cxx index 04c68d127..6d08b21a6 100644 --- a/src/VTKViewer/VTKViewer_ConvexTool.cxx +++ b/src/VTKViewer/VTKViewer_ConvexTool.cxx @@ -108,6 +108,8 @@ VTKViewer_Triangulator vtkIdType theCellId) { myPoints->Reset(); + myPoints->Modified(); // the VTK bug + vtkIdType aNumPts; theInput->GetCellPoints(theCellId, aNumPts, myPointIds); if ( aNumPts > 0 ) { @@ -231,7 +233,7 @@ VTKViewer_Triangulator static vtkFloatingPointType EPS = 1.0E-2; vtkFloatingPointType aDistEps = aCellLength/3.0 * EPS; - if(DEBUG_TRIA_EXECUTE) cout<<"\taCellLength = "< TPointIds; @@ -397,9 +399,9 @@ VTKViewer_Triangulator aCenter[0] += aPntCoord[0]; aCenter[1] += aPntCoord[1]; aCenter[2] += aPntCoord[2]; - if(DEBUG_TRIA_EXECUTE) cout << "Added = TRUE" << endl; + if(DEBUG_TRIA_EXECUTE) cout << "; Added = TRUE" << endl; } else { - if(DEBUG_TRIA_EXECUTE) cout << "Added = FALSE" << endl; + if(DEBUG_TRIA_EXECUTE) cout << "; Added = FALSE" << endl; } } int aNbPoints = aPointIds.size();