[Bf-python] CurNurb/IpoCurve/BezTriple hackery

Ken Hughes khughes at pacific.edu
Sun Jun 19 03:55:56 CEST 2005


Ken Hughes wrote:
> 
> On the stuff I'm experimenting with, I added a list of
> pointers in the Ipocurve (same could be done for CurNurbs).
> When a BezTriple is returned, a copy of the object is
> kept in the list.  So when a point is added or deleted
> from the Ipocurve, it quickly recalculates the pointers
> for the active bezTriples.  When the Ipocurve object is
> deleted, if frees its copies of the objects.  Seems to
> work OK, but haven't tested extensively.

Forgot to mention; when you delete a point from the list
(anywhere in the list), it invalidates the deleted point,
but also recalculates the new location of the remaining
points.  So, those BezTriple objects also point at the
right data too :-)

Ken





More information about the Bf-python mailing list