Creating Faces

Hello people,

see the specificatins below:

struct Section{
struct Section *next;
struct Points_in_Section *points;

struct Points_in_Section{
struct Points_in_Section *next
float coords[3];

With this data structure I’m allocating a model, that is scanned in slices by a 3D digitizer, but now I would like to render it, so I need to create the faces , and may be the normals also, to use the rendering options from OpenGL, does anyone know a way to calculate the faces, in triangles or quads?

Thanks a lot

Best regards


I think you just can’t calculate faces, you need to know which vertices to link for each face…

As I am just a beginner, I don’t discard the possibility of doing that… but I think you’d better get a faces list somehow (even looking at the object and the vertexmaps, and editing a faces datafile by hand…)