|
Boost Users : |
Subject: [Boost-users] [boost-users] [geometry] segment concept
From: Sergei Politov (spolitov_at_[hidden])
Date: 2011-07-21 09:12:37
Hello,
I play with new boost geometry library.
There is thing that I don't understand, possible it is bug.
I'm trying to register segment concept.
It is struct with fields named "point1" and "point2", that represents
endpoints of this segment.
I've specified tag, point_type, indexed_access for this struct.
And length works fine. But intersection requires that this struct contains
fields named "first" and "second".
I'm new to this library, so I don't know whether it is bug in library or
my code.
I've attached minimal c++ file that reproduces the problem.
If I uncomment
//#define point1 first
//#define point2 second
all compiles and works fine.
Best Regards,
Sergey
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net