Re: Can't override class |__new__

2009-03-05 Thread jelle feringa
> Aaron explained it better than I did. Basically the C/C++ module uses > C/C++ version of Facet class directly without consulting python > interpreter, this is what I meant by static linking. Thanks so much for the explanation Lie, I understood it fully now. Thanks again, -jelle -- http:

Re: Can't override class |__new__

2009-03-05 Thread Lie Ryan
jelle feringa wrote: CGAL.Facet = OtherFacet CGAL.Polyhedron.Facet = OtherFacet p = CGAL.Polyhedron_3() You're not creating Facet object here, not even Polyhedron.Facet. Right, which is not the point; I'm trying to override the Facet, a topological entity of which a Polyhedron is composed o

Re: Can't override class |__new__

2009-03-05 Thread jelle feringa
> > CGAL.Facet = OtherFacet > > CGAL.Polyhedron.Facet = OtherFacet > > p = CGAL.Polyhedron_3() > You're not creating Facet object here, not even Polyhedron.Facet. Right, which is not the point; I'm trying to override the Facet, a topological entity of which a Polyhedron is composed of . ( vertex

Re: Can't override class |__new__

2009-03-05 Thread Lie Ryan
jelle feringa wrote: Hi, I'm working with a C++ module ( CGAL, comp.geom. with exact arithmic ) and am having troubles finding a way to override how the modules returns objects. What I'm trying to do is to extend the Facet class, but when I try to use my version of the class, the parent class is

Re: Can't override class |__new__

2009-03-05 Thread jelle feringa
Hi Aaron, Thanks so much for your feedback. > Regardless of CGAL's dictionary, it instantiates a Facet. True, when I add attributes to it, they are disregarded when looping through the facets later on. > Depending on the details, you may need only to cut-and-paste your own > 'make_triangle' fu

Re: Can't override class |__new__

2009-03-05 Thread Aaron Brady
On Mar 5, 2:27 am, jelle feringa wrote: > Hi, > > I'm working with a C++ module ( CGAL, comp.geom. with exact arithmic ) > and am having troubles finding a way to override how the modules returns > objects. What I'm trying to do is to extend the Facet class, but when I try > to use my version of t

Can't override class |__new__

2009-03-05 Thread jelle feringa
Hi, I'm working with a C++ module ( CGAL, comp.geom. with exact arithmic ) and am having troubles finding a way to override how the modules returns objects. What I'm trying to do is to extend the Facet class, but when I try to use my version of the class, the parent class is still being returned