Subject: CGAL users discussion list
List archive
- 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 objectHello,
(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
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.
- [cgal-discuss] Constructors/Destructors, rcco, 06/07/2010
- Re: [cgal-discuss] Constructors/Destructors, Sebastien Loriot (GeometryFactory), 06/08/2010
- [cgal-discuss] Re: Constructors/Destructors, rcco, 06/08/2010
- Re: [cgal-discuss] Re: Constructors/Destructors, Sebastien Loriot (GeometryFactory), 06/08/2010
- [cgal-discuss] Re: Constructors/Destructors, rcco, 06/12/2010
- Re: [cgal-discuss] Re: Constructors/Destructors, Joachim Reichel, 06/12/2010
- [cgal-discuss] Re: Constructors/Destructors, rcco, 06/12/2010
- Re: [cgal-discuss] Re: Constructors/Destructors, Sebastien Loriot (GeometryFactory), 06/08/2010
- [cgal-discuss] Re: Constructors/Destructors, rcco, 06/08/2010
- Re: [cgal-discuss] Constructors/Destructors, Sebastien Loriot (GeometryFactory), 06/08/2010
Archive powered by MHonArc 2.6.16.