clone method
Returns a deep copy of this instance, preserving originalPointer.
Implementation
@override
MeshD clone() => .new(
originalPointer: originalPointer,
vertexCount: vertexCount,
triangleCount: triangleCount,
boneCount: boneCount,
vertices: .from(vertices),
texcoords: .from(texcoords),
texcoords2: .from(texcoords2),
normals: .from(normals),
tangents: .from(tangents),
colors: .from(colors),
indices: .from(indices),
animVertices: .from(animVertices),
animNormals: .from(animNormals),
boneIds: .from(boneIds),
boneWeights: .from(boneWeights),
boneMatrices: boneMatrices.map((x) => x.clone()).toList(),
vaoId: vaoId,
vboId: .from(vboId),
);