Subject: CGAL users discussion list
List archive
- From: ju21 <>
- To:
- Subject: [cgal-discuss] Re: vertex_handle index of a Mesh_triangulation_3 element ??
- Date: Tue, 24 Jul 2012 07:53:07 -0700 (PDT)
Olivier Devillers-2 wrote
>
>
> There is no such index, you have to add it yourself modifying the
> triangulation your mesh inherit from
> adding an int in the vertex (and initializing that int)
>
> http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Triangulation_3/Chapter_main.html#Subsection_39.5.2
>
>
I can't use the function *info()* and really I don't know why.
Here is the answer of my compiler :
/***************************************************************************/
error: ‘class
CGAL::Mesh_vertex_base_3<CGAL::Robust_weighted_circumcenter_filtered_traits_3........ETC>’
has no member named ‘info’
/***************************************************************************/
And this is the code generating this error :
/***************************************************************************/
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/Polyhedral_mesh_domain_3.h>
#include <CGAL/Triangulation_3.h>
#include <CGAL/Mesh_triangulation_3.h>
#include <CGAL/Mesh_complex_3_in_triangulation_3.h>
#include <CGAL/Mesh_criteria_3.h>
#include <CGAL/make_mesh_3.h>
#include <CGAL/Triangulation_data_structure_3.h>
#include <CGAL/Triangulation_vertex_base_with_info_3.h>
#include <CGAL/Triangulation_cell_base_with_info_3.h>
//---
// Domain
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Polyhedron_3<K> Polyhedron;
typedef CGAL::Polyhedral_mesh_domain_3<Polyhedron, K> Mesh_domain;
// Conversion BbMesh3D* -> CgalPolyhedron
typedef CgalPolyhedron<K> PolyH;
// Triangulation
typedef CGAL::Mesh_triangulation_3<Mesh_domain>::type Tr;
typedef CGAL::Mesh_complex_3_in_triangulation_3
C3t3;
typedef CGAL::Triangulation_3<K> Triangulation;
// Criteria
typedef CGAL::Mesh_criteria_3
Mesh_criteria;
// Triangulation data structure with info
typedef int Info;
typedef CGAL::Triangulation_vertex_base_with_info_3<Info, K> Vb;
typedef CGAL::Triangulation_cell_base_3<K> Cb;
typedef CGAL::Triangulation_data_structure_3<Vb, Cb> Tds;
//---
// _c3t3 is built with make_mesh_3();
Tr t = _c3t3.triangulation();
Tr::Finite_cells_iterator finiteCellsIt = t.finite_cells_begin();
for( ; finiteCellsIt != t.finite_cells_end(); ++finiteCellsIt )
{
const Tr::Cell c( *finiteCellsIt );
const Tr::Vertex_handle vertex0 = c.vertex(0);
vertex0->info();
}
/***************************************************************************/
I hope you can help me because I can't see the problem. Thanks
Julie
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/vertex-handle-index-of-a-Mesh-triangulation-3-element-tp4655511p4655522.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] vertex_handle index of a Mesh_triangulation_3 element ??, ju21, 07/23/2012
- Re: [cgal-discuss] vertex_handle index of a Mesh_triangulation_3 element ??, Olivier Devillers, 07/24/2012
- [cgal-discuss] Re: vertex_handle index of a Mesh_triangulation_3 element ??, ju21, 07/24/2012
- [cgal-discuss] Re: vertex_handle index of a Mesh_triangulation_3 element ??, ju21, 07/24/2012
- [cgal-discuss] Re: vertex_handle index of a Mesh_triangulation_3 element ??, Op3rAtor, 07/24/2012
- [cgal-discuss] Re: vertex_handle index of a Mesh_triangulation_3 element ??, ju21, 07/24/2012
- Re: [cgal-discuss] Re: vertex_handle index of a Mesh_triangulation_3 element ??, Monique Teillaud, 07/24/2012
- [cgal-discuss] Re: vertex_handle index of a Mesh_triangulation_3 element ??, Op3rAtor, 07/24/2012
- [cgal-discuss] Re: vertex_handle index of a Mesh_triangulation_3 element ??, ju21, 07/24/2012
- [cgal-discuss] Re: vertex_handle index of a Mesh_triangulation_3 element ??, Op3rAtor, 07/24/2012
- Re: [cgal-discuss] vertex_handle index of a Mesh_triangulation_3 element ??, Olivier Devillers, 07/24/2012
Archive powered by MHonArc 2.6.18.