KFbxGeometryBase Class Reference

#include <kfbxgeometrybase.h>

Inherits KFbxLayerContainer.

Inherited by KFbxGeometry, and KFbxShape.

Inheritance diagram for KFbxGeometryBase:

Inheritance graph
List of all members.

Detailed Description

This class is the base class for managing control points.

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 KFbxVector4GetControlPoints ()
 Get a pointer to the array of control points.
KFbxVector4GetNormals ()
 Get a pointer to the array of normals.


Member Function Documentation

virtual void InitControlPoints ( int  pCount  )  [virtual]

Allocate memory space for the array of control points.

Parameters:
pCount The number of control points.
Remarks:
Any previously allocated array of control points will be cleared.

void InitNormals ( int  pCount = 0  ) 

Allocate memory space for the array of normals.

Parameters:
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.
Remarks:
This function must be called after function KFbxLayerContainer::InitControlPoints().

virtual void SetControlPointAt ( KFbxVector4 pCtrlPoint,
KFbxVector4 pNormal,
int  pIndex 
) [virtual]

Sets the control point and the normal values for a given index.

Parameters:
pCtrlPoint The value of the control point.
pNormal The value of the normal.
pIndex The index of the control point/normal to be modified.
Remarks:
If the arrays are not big enough to store the values at the given index, their size will be increased.

Reimplemented in KFbxTrimNurbsSurface.

virtual int GetControlPointsCount (  )  const [virtual]

Get the number of control points.

Returns:
The number of control points allocated in the geometry.

Reimplemented in KFbxTrimNurbsSurface.

virtual KFbxVector4* GetControlPoints (  )  [virtual]

Get a pointer to the array of control points.

Returns:
Pointer to the array of control points, or NULL if the array has not been allocated.
Remarks:
Use the function KFbxGeometryBase::InitControlPoints() to allocate the array.

Reimplemented in KFbxTrimNurbsSurface.

KFbxVector4* GetNormals (  ) 

Get a pointer to the array of normals.

Returns:
Pointer to array of normals, or NULL if the array hasn't been allocated yet.
Remarks:
Use the function KFbxGeometryBase::InitNormals() to allocate the array.