Mesh with custom vertices

Hello,

I am trying to create a mesh with vertices that I provide at certain positions. I know in other languages one can simply provide an array of vector3's and a list that has the vertice's indexes in the order of which triangles to enclose. An example is that the triangle list will be 0, 2, 3 for the first triangle and 1, 2, 3 for the second. I am not quite sure how to do this in swift. Could you upload a basic code framework that I could use where I simply input the vertices position and triangle arrays. Are there any nuances I should be aware of regarding moving vertices.

Thanks
Which API are you trying to use? Metal? There's a great WWDC on Metal basics that will show you how to render a triangle to the screen if that's all you are trying to do. You can add your particular coordinates to a metal buffer. You can do it without an index buffer for a simple shape like a triangle.
Mesh with custom vertices
 
 
Q