#include <FCDGeometrySpline.h>
Inheritance diagram for FCDNURBSSpline:

Public Member Functions | |
| FCDNURBSSpline (FCDocument *document) | |
| Constructor. | |
| virtual | ~FCDNURBSSpline () |
| Destructor. | |
| virtual FUDaeSplineType::Type | GetSplineType () const |
| FCDSpline method implementation. | |
| uint32 | GetDegree () const |
| Get the degree for this NURBS. | |
| void | SetDegree (uint32 deg) |
| Set the degree for this NURBS. | |
| bool | AddCV (const FMVector3 &cv, float weight) |
| Add a control vertex as a 3D position and a weight attribute specific to this CV. | |
| float * | GetWeight (size_t index) |
| Retrieves a reference to the weight specified by the index. | |
| const float * | GetWeight (size_t index) const |
| See above. | |
| size_t | GetKnotCount () const |
| Retrieves the knot count in this NURB. | |
| void | AddKnot (float knot) |
| Add a knot to this NURB. | |
| float * | GetKnot (size_t index) |
| Retrieves a reference to the knot specified by the index. | |
| const float * | GetKnot (size_t index) const |
| See above. | |
| FloatList & | GetWeights () |
| Retrieves a const reference to the weight list. | |
| const FloatList & | GetWeights () const |
| See above. | |
| FloatList & | GetKnots () |
| Retrieves a const reference to the knot list. | |
| const FloatList & | GetKnots () const |
| See above. | |
| virtual bool | IsValid () const |
| Determines if the spline is valid. | |
| virtual FCDSpline * | Clone (FCDSpline *clone) const |
| [INTERNAL] Copies the spline into a clone. | |
This is a typical NURBS spline. It uses a list of FMVector3 for its control vertices, along with a list of float to represent each vertex weight. A knot vector (uniform or not, clamped or not), together with a degree, complete the specification.
|
|
Constructor.
|
|
||||||||||||
|
Add a control vertex as a 3D position and a weight attribute specific to this CV.
|
|
|
Add a knot to this NURB.
|
|
|
[INTERNAL] Copies the spline into a clone. The clone may reside in another document.
Reimplemented from FCDSpline. |
|
|
Get the degree for this NURBS.
|
|
|
Retrieves a reference to the knot specified by the index.
|
|
|
Retrieves the knot count in this NURB.
|
|
|
Retrieves a const reference to the knot list.
|
|
|
FCDSpline method implementation.
Implements FCDSpline. |
|
|
Retrieves a reference to the weight specified by the index.
|
|
|
Retrieves a const reference to the weight list.
|
|
|
Determines if the spline is valid.
|
|
|
Set the degree for this NURBS.
|
1.4.6-NO