i have a related question. i slightly
modified the code you previously attached, Barend (see
attachment).
- assume we have an intersection point C of a polygon with a
segment/linestring. C lies on the segment defined by the pair of
points A and B, which are stored in the polygon. is it possible to
return A and B, not only C?
- is it possible to have a polygon made of segment, something like
boost::geometry::model::polygon< segment > ?
questions not directly related to the thread's question, but
related to the attached code (should i start a new topic?):
- i use a custom point class myPoint. how to register the getter
and setter template methods (e.g. get<0>)?
- can i register std::shared_ptr<myPoint> instead of
myPoint?
- why is boost::geometry::model::polygon<
std::shared_ptr<point> > not working?
thanks
simon
On 08/19/2013 09:13 PM, Barend Gehrels wrote:
Hi,
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 working).
Regards, Barend
_______________________________________________
Geometry mailing list
Geometry@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/geometry