Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Surface Mesh cell base

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Surface Mesh cell base


Chronological Thread 
  • 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



Archive powered by MHonArc 2.6.16.

Top of Page