CopyMesh()

Syntax

Result = CopyMesh(#Mesh, #NewMesh)
Description
Creates a #NewMesh which is the exact copy of the specified #Mesh. If #PB_Any is used as the '#NewMesh' parameter, then the new mesh number will be returned as 'Result'. Dynamic meshes are not supported for copy (meshes created with the #PB_Mesh_Dynamic flag).

If the Result equals 0, then the mesh copy has failed. If #NewMesh already exists, then it is freed and replaced by a new one.

Supported OS

All

<- BuildMeshTangents() - Mesh Index - CreateCapsule() ->