[geos-commits] r4079 - trunk/src/algorithm

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Aug 12 09:52:25 PDT 2015


Author: pramsey
Date: 2015-08-12 09:52:25 -0700 (Wed, 12 Aug 2015)
New Revision: 4079

Modified:
   trunk/src/algorithm/ConvexHull.cpp
Log:
Add some interrupt checks to ConvexHull


Modified: trunk/src/algorithm/ConvexHull.cpp
===================================================================
--- trunk/src/algorithm/ConvexHull.cpp	2015-08-12 13:42:58 UTC (rev 4078)
+++ trunk/src/algorithm/ConvexHull.cpp	2015-08-12 16:52:25 UTC (rev 4079)
@@ -248,13 +248,19 @@
 		reduce(inputPts);
 	}
 
+    GEOS_CHECK_FOR_INTERRUPTS();
+    
 	// sort points for Graham scan.
 	preSort(inputPts);
 
+    GEOS_CHECK_FOR_INTERRUPTS();
+
 	// Use Graham scan to find convex hull.
 	Coordinate::ConstVect cHS;
 	grahamScan(inputPts, cHS);
 
+    GEOS_CHECK_FOR_INTERRUPTS();
+
 	return lineOrPolygon(cHS);
 
 }



More information about the geos-commits mailing list