Subject: CGAL users discussion list
List archive
- 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.
- [cgal-discuss] Re: Inheriting vertex class, Monique Teillaud, 02/03/2009
- Re: [cgal-discuss] Re: Inheriting vertex class, Lauri Lehtovaara, 02/03/2009
- Re: [cgal-discuss] Re: Inheriting vertex class, Lauri Lehtovaara, 02/03/2009
- Re: [cgal-discuss] Re: Inheriting vertex class, Laurent Rineau (GeometryFactory), 02/03/2009
- Re: [cgal-discuss] Re: Inheriting vertex class, Lauri Lehtovaara, 02/03/2009
- Re: [cgal-discuss] Re: Inheriting vertex class, Lauri Lehtovaara, 02/03/2009
Archive powered by MHonArc 2.6.16.