|
Geometry : |
Subject: Re: [geometry] [algorithms] new algorithm proposed: num_segments
From: Menelaos Karavelas (menelaos.karavelas_at_[hidden])
Date: 2014-08-06 08:07:05
Hi Adam.
Yes there is. It is going to be used in bg::distance along with another
feature I want to implement: an iterator for the segments of a geometry.
I can provide more details if you want.
- m.
On 06/08/2014 03:02 μμ, Adam Wulkiewicz wrote:
> Hi,
>
> Menelaos Karavelas wrote:
>> Hi all.
>>
>> I have recently implemented the analogue of num_points with respect
>> to segments, and call it num_segments. It returns the number of
>> segments in a geometry.
>>
>> See the corresponding pull request:
>> https://github.com/boostorg/geometry/pull/126
>> It also contains the documentation for this new algorithm.
>
> I'm curious. Do you have some specific use case for this algorithm or
> is this only for consistency with num_points?
>
> Regards,
> Adam
> _______________________________________________
> Geometry mailing list
> Geometry_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/geometry
Geometry list run by mateusz at loskot.net