I've been trying this for days and no solution that I've come up with has worked. I thought you clever people could give me a hand! Thank you in advance :)
I need to store the coordinates of hundreds of triangles in C. Three points for each triangle, each with its own (x y z) coordinates. It's a pain that it must be done in C however - I just can't figure out a way (let alone the best way) to do so..!
It must be possible to amend the 'list' after its creation by deleting the data for a triangle or adding a new one to the list. It is not necessary for the triangles to be in any specific order.
For example:
triangle 1 ----> point 1 ----> x
y
z
point 2 ----> x
y
z
point 3 ----> x
y
z