From cf3c8fb4251c8dd3e53f7af68d69263557ae8424 Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 20 Sep 2007 09:55:33 +0000 Subject: [PATCH] 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 --- src/VTKViewer/VTKViewer_ConvexTool.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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(); -- 2.39.2