Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73429 - trunk/boost/geometry/algorithms/detail/overlay
From: barend.gehrels_at_[hidden]
Date: 2011-07-29 06:32:57


Author: barendgehrels
Date: 2011-07-29 06:32:56 EDT (Fri, 29 Jul 2011)
New Revision: 73429
URL: http://svn.boost.org/trac/boost/changeset/73429

Log:
Added a utility to skip the check on self intersections in overlays, if you know the input is valid.
(BOOST_GEOMETRY_OVERLAY_SKIP_CHECK_SELF_INTERSECTIONS)

Text files modified:
   trunk/boost/geometry/algorithms/detail/overlay/overlay.hpp | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/boost/geometry/algorithms/detail/overlay/overlay.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/overlay/overlay.hpp (original)
+++ trunk/boost/geometry/algorithms/detail/overlay/overlay.hpp 2011-07-29 06:32:56 EDT (Fri, 29 Jul 2011)
@@ -25,7 +25,9 @@
 #include <boost/geometry/algorithms/detail/overlay/traversal_info.hpp>
 #include <boost/geometry/algorithms/detail/overlay/turn_info.hpp>
 
-#include <boost/geometry/algorithms/detail/has_self_intersections.hpp>
+#if ! defined(BOOST_GEOMETRY_OVERLAY_SKIP_CHECK_SELF_INTERSECTIONS)
+# include <boost/geometry/algorithms/detail/has_self_intersections.hpp>
+#endif
 
 
 #include <boost/geometry/algorithms/num_points.hpp>
@@ -169,8 +171,10 @@
>(geometry1, geometry2, out);
         }
         
+#if ! defined(BOOST_GEOMETRY_OVERLAY_SKIP_CHECK_SELF_INTERSECTIONS)
         has_self_intersections(geometry1);
         has_self_intersections(geometry2);
+#endif
 
         container_type turn_points;
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk