Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] triangulation face base with info

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] triangulation face base with info


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] triangulation face base with info
  • Date: Fri, 04 Sep 2009 12:13:12 +0200
  • Organization: INRIA

Sylvain Pion wrote:
cyril Bordreuil wrote:
hi everybody
I use a constrained triangulation 2 with face_base_info. In my constructor of info, i initialize a variable at -1.
Then, i insert a point in the triangulation. I thought that new face around the new vertex would be created but my variable
in info was not at -1. Any Hints?
Must i enforce every new face at -1?

I am afraid that there is currently no easy solution, you have to go over
all the "new" faces and re-initialize your data. This is not too hard
since in this case you only have to walk around the new vertex.

Following up to myself : there is actually a way to cheat, probably with
a small performance impact : define your face_base class in the hard way
(not using the with_info class), and overload its set_neighbor() function
so that it re-initialize your data.

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page