| Home | Trees | Index | Help |
|
|---|
| Module Curve :: Class CurNurb |
|
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 | |
|---|---|
| BezTriple (Bezier Curve) or List of 5 floats [x, y, z, w, t] for Poly or Nurbs |
Get the Nth element in the curve. |
| PyNone |
Replace the Nth point in the curve. |
| PyNone |
Appends a new point to a curve. |
| integer |
Get the CurNurb knot flag U. |
| integer |
Get the CurNurb knot flag V. |
| integer |
Returns the Material index for this CurNurb. |
| PyNone |
Set the type of the curve and converts the curve to its new type if needed |
| boolean |
Boolean method checks whether a CurNurb is cyclic (a closed curve) or not. |
| boolean |
Boolean method used to determine whether a CurNurb is of type Bezier or of type Nurb. |
| PyNone |
Set the entire CurNurb knot flag U (knots are recalculated automatically). |
| PyNone |
Set the CurNurb knot flag V (knots are recalculated automatically). |
| PyNone |
Sets the Material index for this CurNurb. |
| Instance Variable Summary | |
|---|---|
| int | flagU: The CurNurb knot flag U. |
| int | flagV: The CurNurb knot flag V. |
| int | type: The type of the curve (Poly: 0, Bezier: 1, NURBS: 4) |
| Method Details |
|---|
__getitem__(n)
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 element is
independant on the curve, modifying it will not affect the curve. NOTE
2: Each successive call returns a new object.
|
__setitem__(n,
point)
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.
|
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. List of 4 floats (optional 5th float is the tilt value in radians) for Nurbs or BezTriple for Bezier.
|
getFlagU()Get the CurNurb knot flag U.
|
getFlagV()Get the CurNurb knot flag V.
|
getMatIndex()Returns the Material index for this CurNurb.
|
getType(value)Set the type of the curve and converts the curve to its new type if needed
|
isCyclic()Boolean method checks whether a CurNurb is cyclic (a closed curve) or not.
|
isNurb()Boolean method used to determine whether a CurNurb is of type Bezier or of type Nurb.
|
setFlagU(flag)Set the entire CurNurb knot flag U (knots are recalculated automatically). The flag can be one of six values:
|
setFlagV(value)Set the CurNurb knot flag V (knots are recalculated automatically).
|
setMatIndex(index)Sets the Material index for this CurNurb.
|
| Instance Variable Details |
|---|
flagUThe CurNurb knot flag U. SeesetFlagU for description.
|
flagVThe CurNurb knot flag V. SeesetFlagU for description.
|
typeThe type of the curve (Poly: 0, Bezier: 1, NURBS: 4)
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Jan 26 09:17:44 2006 | http://epydoc.sf.net |