Boost logo

Geometry :

Subject: [geometry] Problems with strategy::within::winding
From: Visvardis Marios (visvardis.marios_at_[hidden])
Date: 2014-05-15 07:21:27

Hi all,

I have some, robustness-related, problems with the within() function for
some test cases.

Source code for a reproducible example:

The invalid result is produced only when using the
strategy::within::winding strategy.

I traced the source of the problem to floating number comparisons in
point_in_poly_winding.hpp:check_segment() function.

I tried a workaround that passes this specific test case but I am not sure
fits the general case:



Geometry list run by mateusz at