Skip to content

Mojo3d mesh new

mojo3d:mojo3d.Mesh.New

Method New:Void( )#
Method New:Void( vertices:mojo.graphics.Vertex3f[],indices:UInt[] )#

Creates a new mesh.

Creates a new empty mesh.

Meshes don't actual contain instances of materials. Instead, mesh triangles are added to 'logical' materials which are effectively just integer indices.

Actual materials are stored in models, and can be accessed via the Model.Materials property.