From 77325e410be3e121828dcea72b57a5e8afa0ca68 Mon Sep 17 00:00:00 2001 From: enk Date: Fri, 27 Jan 2006 08:45:07 +0000 Subject: [PATCH] Fix for Bug IPAL11386: HangUp at attempt to create polyhedral volume --- src/VTKViewer/VTKViewer_ConvexTool.cxx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/VTKViewer/VTKViewer_ConvexTool.cxx b/src/VTKViewer/VTKViewer_ConvexTool.cxx index a4dded2cc..679e48428 100644 --- a/src/VTKViewer/VTKViewer_ConvexTool.cxx +++ b/src/VTKViewer/VTKViewer_ConvexTool.cxx @@ -48,6 +48,10 @@ typedef std::map TPTOIDS; // id points -> unique ids namespace CONVEX_TOOL { + // all pairs + typedef std::pair TPair; + typedef std::set TSet; + void WriteToFile(vtkUnstructuredGrid* theDataSet, const std::string& theFileName) { @@ -384,7 +388,7 @@ static void GetAndRemoveIdsOnOneLine(vtkPoints* points, float P[3][3]; vtkIdType current_points_ids[2]; if(MYDEBUG_REMOVE) - if(input_two_points_ids.size()!=2) cout << "Error. Must be two ids in variable input_two_points_ids"<