Subject: CGAL users discussion list
List archive
- From: Philipp Moeller <>
- To:
- Subject: Re: [cgal-discuss] Re: Surface Mesh cell base
- Date: Mon, 14 May 2012 14:44:57 +0200
- Organization: GeometryFactory
Michele
<>
writes:
> I have took the example 47.3.1 "Mesh Isosurfaces defined by Inplicit
> Function" and I have create
> ....
> typedef Tr::Cell_handle Cell_handle;
> typedef Tr::Finite_cells_iterator Finite_cells_iterator;
> ....
>
> and if I do the following:
> for(Finite_cells_iterator ci=tr.finite_cells_iterator;....;ci++)
> {
> ci->info()=1;
> }
>
> I get the compiling error "ci has no named info"
Looks like the triangulation you use has not been instantiated with a
Triangulation_data_structure that has a cell base with info.
Use something like this:
typedef CGAL::Triangulation_3<
Traits,
CGAL::Triangulation_data_structure_3<
CGAL::Triangulation_vertex_base_3< Traits >,
CGAL::Triangulation_cell_base_with_info_3< MyInfo, Traits >
>
> Tr;
Where Traits are the traits you would like to use and MyInfo the type of
the Info.
HTH,
Philipp Moeller
GeometryFactory
- [cgal-discuss] Surface Mesh cell base, Michele, 05/14/2012
- Re: [cgal-discuss] Surface Mesh cell base, Sebastien Loriot (GeometryFactory), 05/14/2012
- [cgal-discuss] Re: Surface Mesh cell base, Michele, 05/14/2012
- Re: [cgal-discuss] Re: Surface Mesh cell base, Philipp Moeller, 05/14/2012
- [cgal-discuss] Re: Surface Mesh cell base, Michele, 05/14/2012
- Re: [cgal-discuss] Surface Mesh cell base, Sebastien Loriot (GeometryFactory), 05/14/2012
Archive powered by MHonArc 2.6.16.