Mojo3d mesh addtriangles
mojo3d:mojo3d.Mesh.AddTriangles
Method AddTriangles:Void( indices:UInt Ptr,count:Int,materialid:Int=0 )#
Method AddTriangles:Void( indices:UInt[],materialid:Int=0 )#
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.