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 '#NewMesh' parameter, the new mesh number will be returned as 'Result'.

If the 'Result' is 0, the mesh copy has failed. If the #NewMesh was already created, it is automatically freed and replaced by the new one.

Supported OS

Windows, Linux

Mesh Index - CreateMesh() ->