This method add a single line, triangle, or quad to the mesh.
Returns the index of the new primitive.
THe number of arguments must match the mesh primitive type.