//That can happen, if you invert the order of the points in the triangle array. Try moving the camera below the Mesh to confirm that there are black faces. To fix, just invert the order of the points in the triangle array
Here is what the above code is Doing:
1. We create a Mesh object, and pass it a list of vertices and a list of triangles.
2. We create a Material object, and pass it a color.
3. We create a MeshRenderer object, and pass it the Mesh and the Material.
4. We add the MeshRenderer to the scene.