Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] AABB Tree: closest_point

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] AABB Tree: closest_point


Chronological Thread 
  • From: "" <>
  • To:
  • Subject: Re: [cgal-discuss] AABB Tree: closest_point
  • Date: Tue, 19 Dec 2017 15:53:10 +0100 (CET)
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:XCSgZRPyYHWvg6F/2LEl6mtUPXoX/o7sNwtQ0KIMzox0K/36p8bcNUDSrc9gkEXOFd2Cra4c0qyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUmTaxe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoJOT438HvJhMJzjq1brg+vqBNjzI7VZ4+VKOFzcbnBcdwGXmVMRNpdWi5HD4ihb4UPFe0BPeNAooXzuVQOqRS+BQi3C+z0zT9IgGT73akg3OQ5FgHGxxAgEMwUvHTSstr1KKkeWv2ywabWyTXDYPJW1izm54jPdBAsuvWMUqhoccrW0kkvCx3Kgk+WqYP7IzOYz+IAuHWY4ep4Te+jlmoqpg5rrjSy28shiJPFipwIxl3K7yl0w545KcC2RUJne9KpEZpduzuHO4Z3X88uWWFltDsixrEbpZK3ZjUGxIokyhLFa/GKd5KE7xLsWeuXPDx2nmhqeKiliBa36UWgyvPzVs2z0FtStSpFl8XMtmgX2xzX8MeHUvx9/ly92TmRzQzT7P9LIVwsmaraLZ4u3KIwm4IOvUnHESL6glj6gLKUe0k+5OSk9urqbq/lq5OEMo97kAD+MqAgmsylBuQ4NxADX2eB+eui273j+lf5QbVQgv0yjKbZv4raKt4apq6/GAJV1pws6w64Dze9zNQXg2MLLFRbdxKbl4TpIU3BIOjkDfejhFShiCtkx//cMb3lG5nCM3nDkKz9crZg8E5c0xE+zctf5pJRErEOOuj/Wk73tNzCDx82KRa4w+j9CNll04MeXn+ADbGBPaPJtF+I+vovI+6RZI8JoDr9K+Yq5/rpjXIhnV8dZa+p0YIPaHCiA/tqOkCZYWHwgtcbDWsHvgQzQPbyiF2YVj5TfHGyUL895j4lEI6mDIHDSZ6xgLGZwSu3Aodaan1YBl2PC3vld4GJV+0MZS+dOsNhlyYLVbmlS48vzxGuswr6xqJoLurO5CIYupXj1MJ15uHJkRE96zN0D96H3GGMSWF5hWcISCUu3KB4ukx91kmM3bJ+g/NGCdxf/+lJXRsiNZ7A0+x6DMj/VR7OftiTTFaqW8ipATAqTt0t3t8OeF19Fs6jjhDFxSqqAqUam6aFBJwu9K/Xwmb8J8Jgy3bdyKkukUMmTNZONWynmKFy7xTfVMb1lBCSmK+uMKgdxyXQ73yrzGyUvUgeXhQja6jdWWEjYR7bqdv47EnFSZeqAKwgKRdMj8iPNvhkcNrs2B9LQPjiMt7ZZUq1kn+3HgqFgLWBcMCiL2gZ0yTXAk8CuwQa5XGdKQV4ACq99TGNRAdyHE7iNhu/udJ1r2m2Gxc5

Thank you for you answer.


Sure, we end-up in a kd-tree-like strategy, but then we can use the same code path for query against any type of entity : 0D, 1D or 2D. (although less efficient for 0D, but that is not the core of our problems).


Best regards,

G.




De: "Sebastien Loriot (GeometryFactory)" <>
À:
Envoyé: Mardi 19 Décembre 2017 13:17:06
Objet: Re: [cgal-discuss] AABB Tree: closest_point

I might have miss something but it seems to me that what you achieve is
what a kd-tree would be doing, right? Provided a kd-tree is internally
use by the AABB-tree to speed up distance queries it seems to me
that using a kd-tree directly would be better.

Did I miss something?

Sebastien.



On 12/19/2017 12:27 PM, wrote:
> Dear all,
>
> first of all, thank you very much for the time you invest on CGAL, it is
> a very valuable library !
>
>
> In our library, we have a quite extensive use of AABB Tree for efficient
> distance computation. Lately, I tried to use CGAL (maybe a little bit
> out of his scope...) to compute point to point distances with AABB Trees.
>
> Indeed, only "point to 1D" and "point to 2D" queries are coded at the
> moment. I managed to "hack" CGAL/Cartesian/function_objects.h to make it
> work. Basically, it consists in adding operator()( const Point_3& s,
> const Point_3& p ) in class Construct_projected_point_3.
>
>
> My questions are the following:
>
> 1/ Is it a bad idea ?
>
> 2/ if not, would you be interested in an upstream merge request ?
>
>
> Best regards,
>
> G.
>
>
>




Archive powered by MHonArc 2.6.18.

Top of Page