New Curve method Curve.appendPoint( numcurve, newpoint ) to add
authorStephen Swaney <sswaney@centurytel.net>
Wed, 21 Jul 2004 21:01:15 +0000 (21:01 +0000)
committerStephen Swaney <sswaney@centurytel.net>
Wed, 21 Jul 2004 21:01:15 +0000 (21:01 +0000)
commitbce2c02fdd6ebaf88ffc0950e87de96b0b65377f
tree708d01a564f56cb729d8e536c8de15c70f7349dd
parent1c5302e68b47c03fd60ab5edefb4a16d6294b7a7
New Curve method Curve.appendPoint( numcurve, newpoint ) to add
points to a Curve.

New supporting module CurNurb to provide access to the curves in a Curve
and their associated points.

Curve module now supports Python iterator and sequence protocols.
This allows typical python programming idioms using 'for' statement
and the [] operator.

# example 1
for curve in a_curve:
for point in curve:
print point

#example 2

curnurb = a_curve[0]
curnurb.append( [1,1,1,1] )

Still under construction.  Epydoc will follow.
source/blender/python/SConscript
source/blender/python/api2_2x/Blender.c
source/blender/python/api2_2x/CurNurb.c [new file with mode: 0644]
source/blender/python/api2_2x/CurNurb.h [new file with mode: 0644]
source/blender/python/api2_2x/Curve.c
source/blender/python/api2_2x/Types.c
source/blender/python/api2_2x/Types.h
source/blender/python/api2_2x/bpy_types.h
source/blender/python/api2_2x/modules.h