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: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Constrained delaunay triangulation and boost's graph minimum spanning tree
  • Date: Wed, 22 Mar 2017 08:26:22 +0100
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:KgxXSxS0vKb6+W5pCMYwXVotG9psv+yvbD5Q0YIujvd0So/mwa6yZh2N2/xhgRfzUJnB7Loc0qyN4v2mBjRLuMzY+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe71/IRG2oAnLtMQanYRuJrsvxhfUv3BFZ/lYyWR0KFyJgh3y/N2w/Jlt8yRRv/Iu6ctNWrjkcqo7ULJVEi0oP3g668P3uxbDSxCP5mYHXWUNjhVIGQnF4wrkUZr3ryD3q/By2CiePc3xULA0RTGv5LplRRP0lCsKMSMy/WfKgcJyka1bugqsqQFhzY7aYI+VM/lwcK3TctwVR2VOQslfWjddAo6+dYYDE/YNMOhaooT7ulAArQG+BQ6pBO73xDNGm2H50rYg3OQ6DQHG3RIvH9QTu3rSq9X1LqYSUeepzKLVyTnNbu1Z2TD46IfWbhAhu/GNU7JqfsXN1UkvEBnFj1WVpYDrIjiY0f8Ns2yc7+p6VOKvjHInpxt0ojir3coshYzJiZgUylDA7yl23IE1JdihRUN9fNWqE4NQujmEO4dqRs4uWWJltSYgxrEbp5K2fzIGxIkjyhPRc/CKfImF7gj+WOuSLzp0nn1odbalixqv/0WtxevxXdSu3llQtCpKiNzMu2gN1xPN7siHTeNw/kK71jaO0wDf8+9FIVoomabCJZ4t37o9m5QJvUTMGS/2n0r2jKuIeUk+5ueo7OHnbq3npp+aKYB0lhnzProylsG7G+g1MQgDU3KG9eii17Dv51D1TbFEg/Eul6nWqpHaJcAVpq6jBA9V154u6w27DzehytQYnH4HLE5fdBKCi4jkIF7OIPXiAve+h1Sgiitkx/fDPrH5GJXCMmDDkKv9fbZ680NT1AUzwspb555NF74BIenzVVPstNzDFR80KBe0wubiCNVlzIwSQ2OPAqmDMKPTq1CE/OwvI/PfLLMS7T3yIvxg6//1hmIigncce7Oo1N0ZciOWBPNjdg+ibHDlmcsAHGFCmg0kTev2wB2tXDlWamqoTow17S08EpPnR8+XXYSqmr2GwGG+GrVZY2lHDhaHFnK+JNbMYOsFdC/HepwpqTcDT7X0E4I=
  • Organization: GeometryFactory

On 03/21/2017 02:16 PM, Ch'Gans wrote:
On 21 March 2017 at 15:34, Ch'Gans
<>
wrote:
Hi there,

[...]

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?

Indeed, I had to copy and adapt
graph_traits_Delaunay_Triangulation_2.h, first to add support for the
Constrained_Delaunay_Triangulation, and as well for the intersection
tag. On top of that I've modified the weight_map to return 0 for
constrained weight. Surprisingly, it was quite easy.
I just wondered why there's no generic graph_traits that could be used
for the whole (or part of) the triangulation family.
As well, I have the feeling that the weight map is sub-optimal in term
of CPU usage, it doesn't cache the weight value, tho I haven't
verified if the operator[] get called more than once for a given
edge... One might argue that caching is user choice, a decision that
should be based on trade off b/w time and space requirement.


I guess you only have to make the specialization of graph_traits inherit from the one from Delaunay and leave it empty, right?

Sebastien.

Chris


Any clarification or point out are very welcome,
Chris





Archive powered by MHonArc 2.6.18.

Top of Page