Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Inheriting vertex class


Chronological Thread 
  • From: Monique Teillaud <>
  • To: CGAL Mailinglist <>
  • Subject: [cgal-discuss] Re: Inheriting vertex class
  • Date: Tue, 03 Feb 2009 17:33:04 +0100

Lauri Lehtovaara wrote:
Hello everybody,

I just downloaded CGAL and made few tests and it seems very promising. However, I ran to a small, probably quite simple, problem.

Dear Lauri,

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?

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.

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.

Best regards,
Monique Teillaud

PS: could you please disable the behavior in your mailer that sends answers to you only, instead of to the whole list? Answers may be useful to all subscribers. thanks.



Archive powered by MHonArc 2.6.16.

Top of Page