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: Ben Supnik <>
  • To:
  • Subject: Re: [cgal-discuss] triangulation face base with info
  • Date: Fri, 04 Sep 2009 06:15:15 -0400

Hi Sylvain,

Does this mean that the info class attached to the face-base-with-info can have its ctors skipped?

If so, what happens if this class contains STL types that need initialization?

cheers
ben

Sylvain Pion wrote:
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.


--
Scenery Home Page: http://scenery.x-plane.com/
Scenery blog: http://xplanescenery.blogspot.com/
Plugin SDK: http://www.xsquawkbox.net/xpsdk/
X-Plane Wiki: http://wiki.x-plane.com/
Scenery mailing list:

Developer mailing list:




Archive powered by MHonArc 2.6.16.

Top of Page