Blender Git Commit Log

Git Commits -> Revision bce2c02

Revision bce2c02 by Stephen Swaney (master)
July 21, 2004, 21:01 (GMT)
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.

Commit Details:

Full Hash: bce2c02fdd6ebaf88ffc0950e87de96b0b65377f
SVN Revision: 2866
Parent Commit: 1c5302e
Lines Changed: +1722, -746

2 Added Paths:

/source/blender/python/api2_2x/CurNurb.c (+686, -0) (View)
/source/blender/python/api2_2x/CurNurb.h (+11, -0) (View)

7 Modified Paths:

/source/blender/python/api2_2x/Blender.c (+3, -1) (Diff)
/source/blender/python/api2_2x/bpy_types.h (+28, -3) (Diff)
/source/blender/python/api2_2x/Curve.c (+978, -738) (Diff)
/source/blender/python/api2_2x/modules.h (+6, -0) (Diff)
/source/blender/python/api2_2x/Types.c (+6, -3) (Diff)
/source/blender/python/api2_2x/Types.h (+3, -1) (Diff)
/source/blender/python/SConscript (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021