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: Laurent Rineau <>
  • 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:48:49 +0200

On Thursday 02 October 2008 21:28:46 M. Hazegh wrote:
> Hello everyone,
>
> I am using CGAL/Triangulation_euclidean_traits_xy_3.h to mesh a
> surface on xy plane. I get the following error when I compile with
> VS2005 and CGAL-3.3.1:
>
> error C2039: 'FT' : is not a member of 'CGAL::Etxy3<R>' c:\Program
> Files\CGAL-3.3.1\include\CGAL\Mesh_2\Clusters.h 58
>
> 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?

No, as you have seen with your code.

CGAL::Triangulation_euclidean_traits_xy_3<K> is not a model of the needed
concept DelaunayMeshTraits_2 but only a model of
DelaunayTriangulationTraits_2. The concept DelaunayMeshTraits_2 is refinement
of the following concepts:
DelaunayTriangulationTraits_2,
ConstrainedTriangulationTraits_2,
ConformingDelaunayTriangulationTraits_2

To use CGAL::Triangulation_euclidean_traits_xy_3<K> with
CGAL::refine_Delaunay_mesh_2(), you need to add all the types and functors
documented here:
http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Triangulation_2_ref/Concept_ConstrainedTriangulationTraits_2.html
http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Mesh_2_ref/Concept_ConformingDelaunayTriangulationTraits_2.html
http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Mesh_2_ref/Concept_DelaunayMeshTraits_2.html

--
Laurent Rineau, PhD
Engineer at GeometryFactory
http://www.geometryfactory.com/



Archive powered by MHonArc 2.6.16.

Top of Page