#include <kfbxgeometrybase.h>
Inherits KFbxLayerContainer.
Inherited by KFbxGeometry, and KFbxShape.
Inheritance diagram for KFbxGeometryBase:
Use the KFbxGeometryBase class to manage control points for mesh, nurbs, patches and normals (on Layer 0).
Definition at line 63 of file kfbxgeometrybase.h.
Control Points and Normals Management. | |
virtual void | InitControlPoints (int pCount) |
Allocate memory space for the array of control points. | |
void | InitNormals (int pCount=0) |
Allocate memory space for the array of normals. | |
virtual void | SetControlPointAt (KFbxVector4 &pCtrlPoint, KFbxVector4 &pNormal, int pIndex) |
Sets the control point and the normal values for a given index. | |
virtual int | GetControlPointsCount () const |
Get the number of control points. | |
virtual KFbxVector4 * | GetControlPoints () |
Get a pointer to the array of control points. | |
KFbxVector4 * | GetNormals () |
Get a pointer to the array of normals. |
virtual void InitControlPoints | ( | int | pCount | ) | [virtual] |
Allocate memory space for the array of control points.
pCount | The number of control points. |
void InitNormals | ( | int | pCount = 0 |
) |
Allocate memory space for the array of normals.
pCount | The desired size for the normal array. If pCount is specified, the array will have the same size as pCount. If pCount is not specified, the array will be the same length as the array of control points. |
virtual void SetControlPointAt | ( | KFbxVector4 & | pCtrlPoint, | |
KFbxVector4 & | pNormal, | |||
int | pIndex | |||
) | [virtual] |
Sets the control point and the normal values for a given index.
pCtrlPoint | The value of the control point. | |
pNormal | The value of the normal. | |
pIndex | The index of the control point/normal to be modified. |
Reimplemented in KFbxTrimNurbsSurface.
virtual int GetControlPointsCount | ( | ) | const [virtual] |
Get the number of control points.
Reimplemented in KFbxTrimNurbsSurface.
virtual KFbxVector4* GetControlPoints | ( | ) | [virtual] |
Get a pointer to the array of control points.
NULL
if the array has not been allocated. Reimplemented in KFbxTrimNurbsSurface.
KFbxVector4* GetNormals | ( | ) |
Get a pointer to the array of normals.
NULL
if the array hasn't been allocated yet.