mojo3d.Mesh.AddTriangles - nitrologic/monkey2 GitHub Wiki
mojo3d::mojo3d.mojo3d.Mesh.AddTriangles
monkey:monkey.types.Uint Ptr,count:monkey:monkey.types.Int,materialid:monkey:monkey.types.Int=0 )
Method AddTriangles:Void( indices:monkey:monkey.types.Uint[],materialid:monkey:monkey.types.Int=0 )
Method AddTriangles:Void( indices:Adds triangles to the mesh.
count
is the number of indices to add and must be a multiple of 3.
materialid
must be a valid material id in the range 0 to NumMaterials inclusive.
If materialid
is equal to NumMaterials, a new material is automatically added first.