[Bf-python] CurNurb/IpoCurve/BezTriple hackery

Martin Poirier theeth at yahoo.com
Sun Jun 19 03:18:47 CEST 2005


--- Stephen Swaney <sswaney at centurytel.net> wrote:

> One way to get around this problem is to change the
> bpy BezTriple
> implementation so that it holds a pointer to the
> Nurb that contains
> our BezTriple and an index to the specific array
> element we want.
> This way, a BezTriple becomes, in a sense, a
> convenience function for a
> particular array element. Also, trying to access a
> deleted point can at
> least throw an execption.

It could also hold a pointer to the underlying nurbs
array, this way, if the array is changed, which could
invalidate the index, we can just throw and exception.
This makes the BezTriple object only valid for as long
as element are not added or removed from the curve.

Martin


		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com



More information about the Bf-python mailing list