mojo3d.Mesh.SetTriangles - nitrologic/monkey2 GitHub Wiki

mojo3d::mojo3d.mojo3d.Mesh.SetTriangles

Method SetTriangles:Void( indices:monkey:monkey.types.Uint Ptr,first:monkey:monkey.types.Int,count:monkey:monkey.types.Int,materialid:monkey:monkey.types.Int=0 )
Method SetTriangles:Void( indices:monkey:monkey.types.Uint[],materialid:monkey:monkey.types.Int=0 )

Sets tthe triangles for a material in the mesh.

materialid must be a valid material id in the range 0 to NumMaterials inclusive.