New API in TrianglesMesh.

- New API in TrianglesMesh to setup vertices, attributes and primitives.
- Need to apply it to other meshes.
-