C4 Engine
C4 Engine API Documentation

Mesh::CopyRigidMesh

Defined in:  C4Mesh.h
Copies the contents of a mesh and removes skinning data.
Prototype

void CopyRigidMesh(const Mesh *inputMesh, uint32 exclusionMask = 0);

Parameters
inputMesh The input mesh.
exclusionMask A bit mask indicating which arrays should be excluded from the copy.
Description
The CopyRigidMesh function copies the contents of the mesh specified by the inputMesh parameter to the mesh for which this function is called (the output mesh). The previous contents of the output mesh are deleted.

If the input mesh contains skinning data, then it is removed during the copy operation. The removed skinning data consists of the vertex weighting data, the bone hash array, and the inverse bind transform array.

If the exclusionMask parameter is not zero, then the position of the set bits correspond to the indexes of arrays that are excluded from the copy. For example, to prevent the tangent array from being copied, the exclusionMask parameter should be 1 << kArrayTangent. The bone hash array and inverse bind transform array are always excluded regardless of the value of the exclusionMask parameter.
See Also

Mesh::CopyMesh