Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66902 - trunk/boost/polygon
From: lucanus.j.simonson_at_[hidden]
Date: 2010-11-30 12:53:40


Author: ljsimons
Date: 2010-11-30 12:53:40 EST (Tue, 30 Nov 2010)
New Revision: 66902
URL: http://svn.boost.org/trac/boost/changeset/66902

Log:
fixed trac 4868 polygon concept contains function
Text files modified:
   trunk/boost/polygon/polygon_traits.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/polygon/polygon_traits.hpp
==============================================================================
--- trunk/boost/polygon/polygon_traits.hpp (original)
+++ trunk/boost/polygon/polygon_traits.hpp 2010-11-30 12:53:40 EST (Tue, 30 Nov 2010)
@@ -1170,7 +1170,7 @@
     //odd count implies boundary condition
     if(counts[0] % 2 || counts[1] % 2) return consider_touch;
     //an odd number of edges to the left implies interior pt
- return counts[0] % 4 != 0;
+ return counts[winding(polygon) == COUNTERCLOCKWISE ? 0 : 1] % 4 != 0;
   }
 
   //TODO: refactor to expose as user APIs


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