[Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x CurNurb.c CurNurb.h Blender.c Curve.c Types.c Types.h bpy_types.h modules.h
Stephen Swaney
sswaney at swbell.net
Wed Jul 21 23:01:16 CEST 2004
stiv (Stephen Swaney) 2004/07/21 23:01:16 CEST
Modified files:
blender/source/blender/python/api2_2x Blender.c Curve.c
Types.c Types.h
bpy_types.h modules.h
Added files:
blender/source/blender/python/api2_2x CurNurb.c CurNurb.h
Log:
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.
Revision Changes Path
1.42 +3 -1 blender/source/blender/python/api2_2x/Blender.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Blender.c.diff?r1=1.41&r2=1.42&cvsroot=bf-blender>
1.18 +981 -741 blender/source/blender/python/api2_2x/Curve.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Curve.c.diff?r1=1.17&r2=1.18&cvsroot=bf-blender>
1.16 +6 -3 blender/source/blender/python/api2_2x/Types.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Types.c.diff?r1=1.15&r2=1.16&cvsroot=bf-blender>
1.13 +3 -1 blender/source/blender/python/api2_2x/Types.h
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Types.h.diff?r1=1.12&r2=1.13&cvsroot=bf-blender>
1.5 +28 -3 blender/source/blender/python/api2_2x/bpy_types.h
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/bpy_types.h.diff?r1=1.4&r2=1.5&cvsroot=bf-blender>
1.42 +6 -0 blender/source/blender/python/api2_2x/modules.h
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/modules.h.diff?r1=1.41&r2=1.42&cvsroot=bf-blender>
More information about the Bf-blender-cvs
mailing list