432{
434 cloneMesh->res = res;
435 cloneMesh->sc = sc;
436 cloneMesh->maxHeight = maxHeight;
437 cloneMesh->vertexCount = vertexCount;
438 cloneMesh->indexCount = indexCount;
439 cloneMesh->vert =
new Vert[vertexCount];
440 memcpy(cloneMesh->vert, vert,
sizeof(
Vert) * vertexCount);
441 cloneMesh->indices = new int[indexCount];
442 memcpy(cloneMesh->indices, indices, sizeof(int) * indexCount);
443 return cloneMesh;
444}