Module Curve :: Class CurNurb
[frames | no frames]

Class CurNurb


The CurNurb Object

This object provides access to the control points of the curves that make up a Blender Curve.

The CurNurb supports the python iterator protocol which means you can use a python for statement to access the points in a curve.

The CurNurb also supports the sequence protocol which means you can access the control points of a CurNurb using the [] operator.
Method Summary
PyNone append(new_point)
Appends a new point to a curve.
integer getMatIndex()
Returns the Material index for this CurNurb.
boolean isNurb()
Boolean method used to determine whether a CurNurb is of type Bezier or of type Nurb.
PyNone setMatIndex(index)
Sets the Material index for this CurNurb.

Method Details

append(new_point)

Appends a new point to a curve. This method appends points to both Bezier and Nurb curves. The type of the argument must match the type of the curve. An empty curve will assume the type of the first appended point.
Parameters:
new_point - the new point to be appended to the curve. The new point can be either a BezTriple type or a list of 4 floats in x,y,z,w format for a Nurb curve.
           (type=BezTriple or list of 4 floats)
Returns:
PyNone
           (type=PyNone)

getMatIndex()

Returns the Material index for this CurNurb.
Returns:
integer
           (type=integer)

isNurb()

Boolean method used to determine whether a CurNurb is of type Bezier or of type Nurb.
Returns:
True or False
           (type=boolean)

setMatIndex(index)

Sets the Material index for this CurNurb.
Parameters:
index - the new value for the Material number of this CurNurb. No range checking is done.
           (type=integer)
Returns:
PyNone
           (type=PyNone)

Generated by Epydoc 2.1 on Tue Jan 4 13:43:06 2005 http://epydoc.sf.net