CreateDataMesh()

Syntax

Result = CreateDataMesh(#Mesh, Array.PB_MeshVertex())
Description
Creates a new #Mesh from the specified 2 dimensional array of PB_MeshVertex type. This command allows faster mesh creation than using CreateMesh() by preparing an array and submitting in one batch to the command.

Parameters

#Mesh The number to identify the new mesh. #PB_Any can be used to auto-generate this number.
Array A 2 dimensional array of type PB_MeshVertex, which will be used to create the new mesh. The PB_MeshVertex structure is defined as the following:
  Structure PB_MeshVertex
    x.f
    y.f
    z.f
    NormalX.f
    NormalY.f
    NormalZ.f
    TangentX.f
    TangentY.f
    TangentZ.f 
    u.f
    v.f
    Color.l
  EndStructure   

Remarks

If the #Mesh was already created, then it is freed and replaced by a new one.

Supported OS

All

<- CreateCylinder() - Mesh Index - CreateIcoSphere() ->