Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] adding an info to a vertex in a regular 3D triangulation
- Date: Tue, 06 Mar 2012 09:36:40 +0100
On 03/06/2012 09:29 AM, Francois Berenger wrote:
On 03/06/2012 05:21 PM, Jakob van Bethlehem wrote:
Hello Francois,
It should work for regular triangulations using the same syntax as for
other triangulations. If it doesn't for you, maybe you could provide the
snippets of your code that fail to work. There may be some mistakes
there.
I'll try to investigate further in the near future.
For the moment, I will use a less efficient way (map from point to index
instead of directly accessing the info of a vertex).
Briefly, I could not add info to a weighted point.
Also, I'm frightened by this in the doc:
Try that
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Regular_triangulation_3.h>
#include <CGAL/Regular_triangulation_euclidean_traits_3.h>
#include <CGAL/Triangulation_vertex_base_with_info_3.h>
#include <vector>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Regular_triangulation_euclidean_traits_3<K> Traits;
typedef CGAL::Triangulation_vertex_base_with_info_3<unsigned, Traits> Vb;
typedef CGAL::Triangulation_data_structure_3<Vb,CGAL::Regular_triangulation_cell_base_3<Traits> > Tds;
typedef CGAL::Regular_triangulation_3<Traits, Tds> RT3;
Sebastien.
"38.5.7 Regular Triangulation
[...] Another difference is that a specific traits class has to be used
(at least at the moment)."
I interprete it as "this triangulation is different from others".
Greetsz, Jakob
On 03/06/2012 05:13 AM, Francois Berenger wrote:
Hello,
Is it possible to add an info to each vertex of such
a triangulation?
I understand from the doc that it is possible for other triangulations
but did not manage to make it work on this particular one.
Thanks,
F.
- [cgal-discuss] adding an info to a vertex in a regular 3D triangulation, Francois Berenger, 03/06/2012
- Re: [cgal-discuss] adding an info to a vertex in a regular 3D triangulation, Jakob van Bethlehem, 03/06/2012
- Re: [cgal-discuss] adding an info to a vertex in a regular 3D triangulation, Francois Berenger, 03/06/2012
- Re: [cgal-discuss] adding an info to a vertex in a regular 3D triangulation, Sebastien Loriot (GeometryFactory), 03/06/2012
- Re: [cgal-discuss] adding an info to a vertex in a regular 3D triangulation, Francois Berenger, 03/06/2012
- Re: [cgal-discuss] adding an info to a vertex in a regular 3D triangulation, Jakob van Bethlehem, 03/06/2012
Archive powered by MHonArc 2.6.16.