I have a program where I pick a 2d polygon and his height from a spatial database. I choose a reference point in WGS84 from the points returned, and then I compute the relative points which will be the 3D vertices. Until here everything is ok, however I need to output the mesh in OBJ format. To do that, I need to specify the mesh faces. How can I compute the triangles in order to get it correctly rendered ?
What keywors should I search for this topic ?