Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Compact_mesh_cell_base_3 in CGAL 4.3-beta
- Date: Wed, 16 Oct 2013 16:03:21 +0200
- Organization: GeometryFactory
Hello Garth,
you can add infos, by writing
typedef Compact_mesh_cell_base_3<..> Cb;
typedef Triangulation_cell_base_with_info_3<int,Cb..>
As a side remark: We will finally not deprecate this
feature in CGAL 4.3 (which will be released in the next days).
Best,
andreas
On 15/10/2013 21:57, Garth Wells wrote:
I've been using Mesh_cell_base_3 to attach an int to mesh cells, but it's
deprecated in CGAL 4.3 and I'm having trouble to the new
Compact_mesh_cell_base_3 class in CGAL 4.3.
Previously, I had
// CGAL 3D triangulation vertex typedefs
typedef CGAL::Triangulation_vertex_base_3<Geom_traits> Tvb3_base;
typedef CGAL::Triangulation_vertex_base_with_info_3<int, Geom_traits,
Tvb3_base> Tvb3;
typedef CGAL::Mesh_vertex_base_3<Geom_traits, Mesh_domain, Tvb3>
Vertex_base;
// CGAL 3D triangulation cell typedefs
typedef CGAL::Triangulation_cell_base_3<Geom_traits> Tcb3_base;
typedef CGAL::Triangulation_cell_base_with_info_3<int, Geom_traits,
Tcb3_base> Tcb3;
typedef CGAL::Mesh_cell_base_3<Geom_traits, Mesh_domain, Tcv3> Cell_base;
typedef CGAL::Triangulation_data_structure_3<Vertex_base, Cell_base>
Tds_mesh;
typedef CGAL::Regular_triangulation_3<Geom_traits, Tds_mesh> Tr;
typedef CGAL::Mesh_complex_3_in_triangulation_3
C3t3;
However the new Compact_mesh_cell_base_3 class wants a triangulation as the
third template argument, but previously Mesh_cell_base_3 was a template
argument to the triangulation class. The new design appears circular - it's
not clear how I can construct a triangulation using cells with info, and
there are no examples. I'd be grateful for an explanation and/or example on
how to use Compact_mesh_cell_base_3.
Garth
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Compact-mesh-cell-base-3-in-CGAL-4-3-beta-tp4658202.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project
phone: +33.492.954.912 skype: andreas.fabri
- [cgal-discuss] Compact_mesh_cell_base_3 in CGAL 4.3-beta, Garth Wells, 10/15/2013
- Re: [cgal-discuss] Compact_mesh_cell_base_3 in CGAL 4.3-beta, Andreas Fabri, 10/16/2013
- Re: [cgal-discuss] Compact_mesh_cell_base_3 in CGAL 4.3-beta, Garth Wells, 10/17/2013
- Re: [cgal-discuss] Compact_mesh_cell_base_3 in CGAL 4.3-beta, Andreas Fabri, 10/16/2013
Archive powered by MHonArc 2.6.18.