Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Does CGAL::refine_Delaunay_mesh_2() support CGAL/Triangulation_euclidean_traits_xy_3.h?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Does CGAL::refine_Delaunay_mesh_2() support CGAL/Triangulation_euclidean_traits_xy_3.h?


Chronological Thread 
  • From: Camille Wormser <>
  • To:
  • Subject: Re: [cgal-discuss] Does CGAL::refine_Delaunay_mesh_2() support CGAL/Triangulation_euclidean_traits_xy_3.h?
  • Date: Thu, 2 Oct 2008 21:47:08 +0200

If I remove CGAL::refine_Delaunay_mesh_2(cdt, Criteria(0.125, 0.5))
function call from the code, the code compiles successfully. Does
refine_Delaunay_mesh_2() support
Triangulation_euclidean_traits_xy_3.h?

Hi, 
Refining the mesh means inserting the circumcenters of some facets. However, in the case of a terrain, the choice of a z-coordinate for the circumcenter is not clear. For this reason, refinement is not supported. 

See the documentation:

The geometric traits class of the constrained Delaunay triangulation must be a model of DelaunayMeshTraits_2.

The concept DelaunayMeshTraits_2 refines the concept ConformingDelaunayTriangulationTraits_2. It provides a construction objectConstruct_circumcenter_2.

The class is a model of the concept DelaunayTriangulationTraits_2 except that it does not provide the type and constructors required to build the dual Voronoi diagram.

If you still want to do that, you will have to provide a custom Construct_circumcenter_2 in a traits class derived from Triangulation_euclidean_traits_xy_3. 
-- 
Camille




Archive powered by MHonArc 2.6.16.

Top of Page