Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Regular_triangulation_vertex_base_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Regular_triangulation_vertex_base_3


Chronological Thread 
  • From: Vitaliy <>
  • To:
  • Subject: Re: [cgal-discuss] Regular_triangulation_vertex_base_3
  • Date: Mon, 24 Aug 2009 16:40:04 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=hNFKbGGdoZ9U6SAvIpT5awYhSn5SlWj4qhNmi9dn/gv838lIqGZeogset79DCBNpcX 7arAec1I3mru6w3dDmC2UA+o3KWeucPySRgU1r40qw9floSR1ThaSjNeGkzRQtdph884 rC++F1pxaogRNqhMZPQ3wkS2qLE+929sa0gt8=

Dear Manuel,

thanks a lot for you help!

Vitaliy

On Mon, Aug 24, 2009 at 10:57 AM, Manuel Caroli <> wrote:
Dear Vitaliy,


Vitaliy wrote:
Hello CGAL members !

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)

The answer to your question should be immediately clear from the documentation:
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

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss




Archive powered by MHonArc 2.6.16.

Top of Page