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:41:05 +1300
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:1X1yhB8JrH4J2v9uRHKM819IXTAuvvDOBiVQ1KB42+kcTK2v8tzYMVDF4r011RmSDNmds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2e2//5Lebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMMvrRr42RDui9b9mRx3miCkHOTA383zZhNJsg69AvBKtuwZyz5LIbI2JNvdzeL7Wc9MARWpGW8ZcTyJND528b4cMDuQOJ+BYr5Lzq1ATqhaxGQmsBOz1xT9OnX/7xqI60+I7Hg3c2wwgBd0OvW3Sod7oOqkSVuW1w7PJzTXFd/5W2DH96JLJch87u/2MU6hwfdLeyUkuCwPFjkiQppf/MzyJ0eQNtm6W5PdjW+K3k2MrtR19rzy1ysovioTFnJwZxk3F+Clj3Yo4JsC0RUhmatC+CpRQrTuVN45uT8MiXW5ovCE6x6UDuZGhfSgKzI0rxwfDa/CbaoSI7A/vWeWMLTtii3Jlf7W/hxm28Ue+0OHzSs600FNSoipElNnDqGwN2gTN5sSbTvZx5ESs1DaV2wzN9+1JIFo4mbfYJpI82rIwk4AcsUXHHi/4gkX2i6qWe1049eio5OToeLPmpoSHOo97jwHxKKUumsilDeskNQgOWnCX+f6g27374U35XLJKg+UqnanWqp/aId0XqbO4Aw9Ozokj9g2/Dyy93dQDnXgHKUpFdwidg4joPVHOOvH4Au2lj1Siijc4j83AJaDrV5XRMmDYwvCmZqd480cayQwpzNkZ6YgTEaAEOPu0W0n/s5vTARY9dgC12O36E84u6oRLUm2GBuqVMbjZrESTzuMpOeiFIoEP6xjnLP1wrdXuwlAwn0RXNf2i3ZQebmuQEfJvZUKDbiy/0Z86DW4Ws19mH6TRg1qYXGsLag==
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.
BTW, what is the rational behind all these 'copy/paste' in these
graph_traits, isn't it possible to parametrise the templates with a
triangulation instead of the triangulation own params?
eg:
template<class Triangulation>
struct graph_traits< Triangulation > {
typedef typename Triangulation::Vertex_handle vertex_descriptor;
}
Chris
>
> 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.
>
> 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
>
>
- [cgal-discuss] Constrained delaunay triangulation and boost's graph minimum spanning tree, Ch'Gans, 03/21/2017
- Re: [cgal-discuss] Constrained delaunay triangulation and boost's graph minimum spanning tree, Ch'Gans, 03/21/2017
- Re: [cgal-discuss] Constrained delaunay triangulation and boost's graph minimum spanning tree, Sebastien Loriot (GeometryFactory), 03/22/2017
- Re: [cgal-discuss] Constrained delaunay triangulation and boost's graph minimum spanning tree, Andreas Fabri, 03/23/2017
- Re: [cgal-discuss] Constrained delaunay triangulation and boost's graph minimum spanning tree, Ch'Gans, 03/24/2017
- Re: [cgal-discuss] Constrained delaunay triangulation and boost's graph minimum spanning tree, Ch'Gans, 03/24/2017
- Re: [cgal-discuss] Constrained delaunay triangulation and boost's graph minimum spanning tree, Andreas Fabri, 03/24/2017
- Re: [cgal-discuss] Constrained delaunay triangulation and boost's graph minimum spanning tree, Ch'Gans, 03/21/2017
Archive powered by MHonArc 2.6.18.