Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Inheriting vertex class

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Inheriting vertex class


Chronological Thread 
  • From: Lauri Lehtovaara <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Inheriting vertex class
  • Date: Tue, 03 Feb 2009 18:59:01 +0200

Dear Monique,

Thank you for your quick reply.

Monique Teillaud wrote:
Background: I'm trying to build my own 3d mesh generator (for FEM based electronic structure calculations) on top of CGAL. My earlier code uses TETGEN, but it's too slow as I have to insert one point at time when refinining the mesh. (And I prefer using CGAL for other reasons as well.)

I wrote a simple test using Delaunay_d<Cartesian_d<double> >, and everything worked out fine.

You mention 3d mesh generator above. Do you need dimension higher than 3?

Not at the moment, but in future I might do need 4d for time-dependent simulations.

Problem: Now, I would like to inherit a vertex class and store some information for the mesh generator (e.g. position of the closest atom). My question is, what is the proper way to do this? (And should I inherit vertex class or maybe some other class.)

If you need dimension 3 only, you can use CGAL::Delaunay_triangulation_3.
Yes, I know. The only reason why I chose Delaunay_d was that it had more flexible license (LGPL). I'm planning to publish my work under some open source license when it's ready, but QPL is too strict for me.

The user manual of the 3D triangulations chapter (chapter 31 in the manual of CGAL 3.4) explains you several ways to change the vertex class to add additional information.
I will take a closer look on this chapter.


Thanks once again,

- Lauri



Archive powered by MHonArc 2.6.16.

Top of Page