Boost logo

Geometry :

Subject: Re: [geometry] Interesection points
From: Barend Gehrels (barend_at_[hidden])
Date: 2013-08-19 15:13:39


On 16-8-2013 11:54, Hunk wrote:
> hello sorry my example was wront

Indeed wrong ;-)

> he cant do the intersection between segment and polygon.

That is correct, that combination is not yet possible. Will be done.
However, with a linestring with two points you can do exactly this.

> It is possible to define lines with and origin point and a direction? not
> only a segment?

No unless you make it yourself (you can easily create a function doing
that). By default it is not supported.

> And i want the intersection point on the border of the polygon not the
> segment inside.

Intersection points, if any, should never be inside indeed, always on
the border.

Attached my version of your program (now complete and compiling and

Regards, Barend

Geometry list run by mateusz at