Hi Joan,

joan wrote On 6-11-2013 14:22:

> Hi,

> I'd also need to know in the case of a self-intersection on a polygon on

> which points the self intersection occurs. And even better on which segment

> of my polygon !

This can be done by calling the (not yet documented) function self_turns

It returns "turn-info" points, each point has an intersection point,

including the segment-identifier (exactly giving the causing segments of

your polygon).

Best reference is in the unit-test self_intersection_points.cpp where it

is called.

Note that there are some issues left in self-intersection points, for

example a self-tangent point is sometimes reported too (but it should be

excluded). Will be fixed soon.

Regards, Barend

_______________________________________________

Geometry mailing list

[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/geometry