PDA

View Full Version : Creating Faces



KurtCob
08-11-2000, 01:29 AM
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 http://www.opengl.org/discussion_boards/ubb/confused.gif , 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

Kurt

Gunfighter
08-11-2000, 07:17 PM
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...)

Gunfighter