Subject: [ggl] Const-correctness of intersection_result::get_connection_type()
From: Mateusz Loskot (mateusz)
Date: 2009-04-13 20:11:08
Barend Gehrels wrote:
> Hi Mateusz,
>> Just for records, as it may be important. I have re-declared
>> get_connection_type() - member of intersection_result type - with
>> const qualifier, so the previous prototype:
>> inline connection_type get_connection_type()
>> has been changed to read:
>> inline connection_type get_connection_type() const
>> Committed in revision 547.
>> I hope it's OK.
> It is OK, sure, but... I think I mailed you before that I'm busy
> revising the intersections.
Yes, that's clear.
> The file intersection_segment.hpp will be replaced completely with
> the file intersection_policies.hpp from strategies (which is not
> completely finished yet, it will be splitted and one policy will be
> The idea is as following: for many operations (e.g. touch) it is
> necessary to know IF two segments intersect, and often HOW they
> intersect, but it is often not necessary to know the intersection
> point(s). The new approach is already used in e.g. de9im_segment.cpp
> and ogc_relationships.cpp in the geometry/dev, although unfinished.
Right, good point.
> I will check them tomorrow such that they compile using gcc (they
> already should using MSVC).
I can validate gcc compilation too.
Actually, I've started building with GGL using GCC 4.x.
-- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org
Geometry list run by mateusz at loskot.net