[Bf-python] CurNurb/IpoCurve/BezTriple hackery

Ken Hughes khughes at pacific.edu
Sat Jun 18 20:08:41 CEST 2005


Stephen Swaney wrote:
> On Sat, Jun 18, 2005 at 09:28:29AM -0700, Ken Hughes wrote:
> 
>>One other point; for the work I'm doing on the unification, should
>>I assume you prefer for Ipocurves to work like CurNurbs?  Iterators
>>and such, get rid of getPoints(), etc?  I think that's what the
>>wiki page describes, but hadn't thought about describing it that
>>way explicitly.
> 
> 
> Yeah, I think a CurNurb-like implementation is essentially the way we
> want to go.  Iterators, operator[], and so on.  Martin (theeth) and I
> have chatted about this and he agrees with moving away from
> getPoints() style attribute access.  We need to drag Willian into this
> discussion.  Note: Java People will freak out, but it *is* more
> pythonic.
> 
> For backwards, compatibility, we will need to hang on to getPoints()
> and friends for awhile.
> 
> disclaimer: I do not consider CurNurb the end-all be-all example
> implementation.  It has been a sort of testbed for iterators.
> Currently, I am switching it over to use tp_getset rather than getattr
> methods.

Ok, I'll use CurNurbs as the inspiration for everything common to
Ipocurves that would be placed in the base class.

Ken



More information about the Bf-python mailing list