Counting Vertices to Triangles

Hi JGO,

So I have an array of vertices that I generate. I then generate indices that connect them together.

I store each Triangle as an object for later use. This is done using indices. I need to create a table of Triangles beforehand.

I don’t know any method of pre-calculating how many vertices will generate the amount of triangles.

I have 20*20=400 vertices and I end up with 722 triangles.

Google likes to tell me how to find the perimeter :slight_smile: