[Bf-python] CurNurb/IpoCurve/BezTriple hackery

Martin Poirier theeth at yahoo.com
Sun Jun 19 03:26:33 CEST 2005



--- Martin Poirier <theeth at yahoo.com> wrote:

> 
> --- 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.

Clarification (I reread myself and what I meant didn't
sound clear). I meant having a pointe to the array in
addition of what Stephen suggested, so you can access
the curve and then compare both pointers to the
arrays.

Martin


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



More information about the Bf-python mailing list