Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Constrained delaunay triangulation and boost's graph minimum spanning tree

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Constrained delaunay triangulation and boost's graph minimum spanning tree


Chronological Thread 
  • From: "Ch'Gans" <>
  • To:
  • Subject: Re: [cgal-discuss] Constrained delaunay triangulation and boost's graph minimum spanning tree
  • Date: Fri, 24 Mar 2017 18:34:58 +1300
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:KiQeAxxcVaPZZHHXCy+O+j09IxM/srCxBDY+r6Qd1OIVIJqq85mqBkHD//Il1AaPBtSHraocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze6/9pncbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRDqhicJNzA3/mLKhMJukK1Wuw6hqwBlzoLIfI2ZKPhzc6XAdt0aX2pBWcNRWjRPDo6ib4sDDOsPMvxer4nmqVcFsByzChWsBOPg0DBIgGT20LY10+QnCw7KxgsgH8gBsHnNqtj+KakcUeewzKbSzDXDaetb2Tb76IjScxAuu+uAXbxqccbJxkkvFh/FjlWNqYP+JT+ayuMNs22d4uF9Vuyvk3Yqpx9trjWr3MshiYnEipgLxlza6Sl12ps5KN+5RUN9fNWqCoFftzuAOItzWs4iQ39nuCI9yrAevJ60ZikKyJA+yx7GaPyLb5GE4hz+WOuTIDp0nn1leLW4hxa99Uiv1PfwWdWz0FZPtiZFk9/MuW4R1xHL9MSLVv9w8l2i1DuPzQzf9P9ILVwumabGKZMsw6Y8lp8JvkTCGi/2ll/2jKiTdkg85ueo6+vnba/gpp+HLIJ0hQT+Pb4vmsy7G+g3Lg8OX22D9eSmyLLj5VH5QKlNjvAujqbZv4rVJcACqqGkAg9VyZos6wukDze9y9kYhnkGLFddeB2dlYTpOlfOIOr5DfilmVisni1rlLj7OKb8CMDNMmTbi+WmOq1s7lZVjgs119FWoZxOTaoQJer6HU73utufBRAwN0m4wv3sFc5mhb8ZDGmAC6vcPKLJukKT/couJfONbckbomXTMf8gsrTFjTAWkFkGN+H91psYYXajNvtgKgOee3W60YRJKnsDogdrFL+is1aFSzMGP3s=

On 24 March 2017 at 03:31, Andreas Fabri
<>
wrote:
>
> Hello,
>
> In the pull request https://github.com/CGAL/cgal/pull/1991
> I added the graph_traits and free functions so that now
> all triangulation classes can be used with the BGL.

Cool, thanks a lot! I'll give it a try.

>
> Concerning the edge weights, you might store them in
> a boost::unordered_map<edge_descriptor,double>,
> fill it as you like, wrap it in a boost associative
> property map, and then pass it to the MST algorithm,
> instead of redefining T2_edge_weight_map. The weight map
> is a parameter of the MST algorithm.

Thanks for the tip, will try that.

Chris

>
> best,
>
> andreas
>
>
> On 21/03/2017 03:34, Ch'Gans wrote:
>>
>> Hi there,
>>
>> I'm doing some experiment with CGAL Constrained Delaunay Triangulation
>> and boost graph Minimum Spanning Tree.
>>
>> The constrained edges of CDT correspond to path that already exist,
>> the non constrained edges of CDT are transient edges for the MST
>> algorithm.
>> To make sure that MST will use the constrained edges, i'm setting
>> their associated 'weight' (length) to zero, and for the
>> non-constrained edges i'm setting their 'weight' to their squared
>> length.
>>
>> I'm currently doing all of these manually, including 'transforming'
>> the data structures between the steps of my 'pipeline'. I know it is
>> not optimal, but at least i am able to get the whole pipeline working.
>>
>> I went through the chapter 'CGAL and the Boost Graph Library' (BTW big
>> thumb up for the documentation!) and saw that CGAL provides all the
>> bolts and nuts to bind CGAL with boost graph. For example, CGAL
>> provide the edge weight map needed by MST, filters that allow to
>> filter out infinite edges, ...
>>
>> I am now wondering if I could use a filter to hide/proxy the weight of
>> the constrained edges or if i should use a different approach.
>> Maybe I should redefine T2_edge_weight_map
>> (CGAL/boost/graph/graph_traits_Triangulation_2.h) so that it takes a
>> CDT as a ctor argument...
>>
>> Actually it looks like i cannot use graph_traits_Triangulation_2.h or
>> graph_traits_Delaunay_Triangulation_2.h, i would need to write my own
>> version for CDT, do I?
>>
>> Any clarification or point out are very welcome,
>> Chris
>>
>
> --
> Andreas Fabri, PhD
> Chief Officer, GeometryFactory
> Editor, The CGAL Project
>
> phone: +33.492.954.912 skype: andreas.fabri
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>



Archive powered by MHonArc 2.6.18.

Top of Page