Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Constructors/Destructors

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Constructors/Destructors


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Constructors/Destructors
  • Date: Tue, 08 Jun 2010 08:11:29 +0200

rcco wrote:
Hello, is it possible to subclass Polyhedron_3 so that when a new object
(halfedge, vertex and facet) is created/destroyed some function is called?

something like this (in pseudo-code):

class MyHalfedge : Halfedge {
public MyHalfedge() { super(); myFunction(); }
public ~MyHalfedge() { MyOtherFunction(); super(); }
}


Is this acceptable to do something like this?

Thank you, Rodrigo
Hello,

Halfedge, vertex and facet types are defined within an item class (
which ia a template parameter of Polyhedron class).

You can tune them as explained here:

http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Polyhedron/Chapter_main.html#Section_25.5


S.




Archive powered by MHonArc 2.6.16.

Top of Page