Subject: CGAL users discussion list
List archive
- From: Manuel Caroli <>
- To:
- Subject: Re: [cgal-discuss] Regular_triangulation_vertex_base_3
- Date: Mon, 24 Aug 2009 10:57:03 +0200
Dear Vitaliy,
Vitaliy wrote:
Hello CGAL members !The answer to your question should be immediately clear from the documentation:
Could you help me, how is it possible to make regular triangulation with info in 3D if there is no class CGAL::Regular_triangulation_vertex_base_3? (Only for Kinetic)
It should be like this (in 2D case it works):
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Regular_triangulation_filtered_traits_3<K> Gt;
typedef CGAL::Regular_triangulation_vertex_base_3<Gt> Vb;
But there is no such class (only Regular_triangulation_vertex_base_2)
1) Template parameters of Regular_triangulation_3:
"The second template argument must be a model of the TriangulationDataStructure_3 concept. It has the default value Triangulation_data_structure_3<Triangulation_vertex_base_3<RegularTriangulationTraits_3>, Regular_triangulation_cell_base_3<RegularTriangulationTraits_3> >."
This means there is no specialized vertex base class required.
If we now have a look at the documentation of Triangulation_vertex_base_with_info_3 we will find the following:
2a) "The class Triangulation_vertex_base_with_info_3 is a model of the concept TriangulationVertexBase_3, the base vertex of a 3D-triangulation."
and
2b) "The third template argument is a vertex base class from which Triangulation_vertex_base_with_info_3 derives. It has the default value Triangulation_vertex_base_3<TriangulationTraits_3>."
So what must be third parameter in Triangulation_vertex_base_with_info_3 ?All this to say that you can just omit the third template parameter making use of the default or you explicitly put Triangulation_vertex_base_3 or any other model of the concept TriangulationDSVertexBase_3.
best
Manuel
typedef CGAL::Triangulation_vertex_base_with_info_3<int,Gt,Vb> VbI; typedef CGAL::Regular_triangulation_cell_base_3<K> Cb;
typedef CGAL::Triangulation_data_structure_3<VbI, Cb> Tds;
typedef CGAL::Regular_triangulation_3<Gt, Tds> RegTr;
Please tell me what should I use for.
Thank you.
Vitaliy
- [cgal-discuss] Regular_triangulation_vertex_base_3, Vitaliy, 08/22/2009
- Re: [cgal-discuss] Regular_triangulation_vertex_base_3, Manuel Caroli, 08/24/2009
- Re: [cgal-discuss] Regular_triangulation_vertex_base_3, Vitaliy, 08/24/2009
- Re: [cgal-discuss] Regular_triangulation_vertex_base_3, Manuel Caroli, 08/24/2009
Archive powered by MHonArc 2.6.16.