mesh copy/clone q

Blitz3D Forums/Blitz3D Programming/mesh copy/clone q

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

You could loop through all the vertices and use VertexCoords to move them to the same location as their original. Ie:
newmesh = copymesh(orgmesh)
for i = 1 to countsurfaces(orgmesh)
  surf = GetSurface(orgmesh, i)
  surf2 = GetSurface(newmesh, i)
  for j = 0 to countvertices(surf) - 1
    vertexcoords surf2, j, vertexx(surf, j), vertexy(surf, j), vertexz(surf, j)
  next
next

Another way is to render the mesh in a few passes: render -> new position ->render again, to make it look like there is two meshes.