Copying an FBX object
 
 
 

To copy an FBX object (i.e., an object of any class derived from KFbxObject, use the object’s Copy() member function. For example, to create a copy of a mesh object:

// Assume that myScene is a pointer to a valid scene object
KFbxMesh* mySourceMesh = KFbxMesh::Create (myScene, ““);
 
. . . // Define control points, etc. for mySourceMesh
 
// Thhis mesh will be overwritten
KFbxMesh* myTargetMesh = KFbxMesh::Create (myScene, ““);
 
// Copy the data of mySourceMesh into myTargetMesh
myTargetMesh->Copy(mySourceMesh);

Notes on copying FBX objects