Closed walbourn closed 3 years ago
For DirectXMesh, the concat is basically very a simple remap generator.
The documentation should recommend doing Clean
, AttributeSort
, and CompactVB
before concat.
The transformation behavior is potentially something that would be added to the
Mesh
utility instead. It uses the matrix for positions, inverse transpose for normals, and texture xforms for the uvs.
A function to combine multiple meshes into a single mesh.
The original D3DX function would create a 'union' of the input layouts as needed to generate the final vertex buffer if a specific one was not provided.
The DirectXMesh version would likely only operate on the indices and an array of XMFLOAT3 positions, and provide a remap array for each of the original input mesh indices to the new indices for dealing with other vertex data.