Home | Trees | Indices | Help |
|
---|
|
This object provides access to the control points of the curves that make up a Blender Curve ObData.
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.
Note that CurNurb is used for accesing poly, bezier and nurbs type curves.
Instance Methods | |||
None |
|
||
BezTriple (Bezier Curve) or List of 5 floats [x, y, z, w, t] for Poly or Nurbs |
|
||
None |
|
||
None |
|
||
integer |
|
||
boolean |
|
||
boolean |
|
||
integer |
|
||
None |
|
||
integer |
|
||
None |
|
||
integer |
|
||
None |
|
Instance Variables | |
int |
flagU The CurNurb knot flag U. |
int |
flagV The CurNurb knot flag V. |
tuple of floats |
knotsU The knot vector in the U direction. |
tuple of floats |
knotsV The knot vector in the V direction. |
int |
orderU The CurNurb knot order U, for nurbs curves only, this is clamped by the number of points, so the orderU will never be greater. |
bool |
smooth Set the smoothing for this curve (applies to cuve objects that have a bevel) |
int |
type The type of the curve (Poly: 0, Bezier: 1, NURBS: 4) |
Method Details |
Replace the Nth point in the curve. The type of the argument must match the type of the curve. List of 4 floats (optional 5th float is the tilt value in radians) for Nurbs or BezTriple for Bezier.
|
Get the Nth element in the curve. For Bezier curves, that element is a BezTriple. For the rest (Poly and Nurbs), it is a list of 5 floats: x, y, z, weight, tilt (in radians). NOTE 1: This element is independent on the curve, modifying it will not affect the curve. NOTE 2: Each successive call returns a new object.
|
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. List of 4 floats (optional 5th float is the tilt value in radians) for Nurbs or BezTriple for Bezier.
|
Sets the Material index for this CurNurb.
|
Returns the Material index for this CurNurb.
|
Boolean method used to determine whether a CurNurb is of type Bezier or of type Nurb.
|
Boolean method checks whether a CurNurb is cyclic (a closed curve) or not.
|
Get the CurNurb knot flag U.
|
Set the entire CurNurb knot flag U (knots are recalculated automatically). The flag can be one of six values:
Bit 0 controls whether or not the curve is cyclic (1 = cyclic).
|
Get the CurNurb knot flag V.
|
Set the CurNurb knot flag V (knots are recalculated automatically).
|
Get the type of the curve.
|
Set the type of the curve and converts the curve to its new type if needed
|
Instance Variable Details |
flagUThe CurNurb knot flag U. See setFlagU for description.
|
flagVThe CurNurb knot flag V. See setFlagU for description.
|
knotsUThe knot vector in the U direction. The tuple will be empty if the curve isn't a NURB or doesn't have knots in this direction.
|
knotsVThe knot vector in the V direction. The tuple will be empty if the curve isn't a NURB or doesn't have knots in this direction.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Mon Aug 31 23:12:22 2009 | http://epydoc.sourceforge.net |