room101/FACE.HPP

27 lines
434 B
Text
Raw Normal View History

#ifndef __FACE_H
#define __FACE_H
#include "matrix.hpp"
#include "plane.hpp"
#include "picture.hpp"
typedef struct
{
Vector* vertices;
Plane* hull;
Plane plane;
int colour;
int surfaceid;
} Face;
void FaceDelete(Face*);
float FaceDistanceTo(Face*, Vector, Vector);
void FaceRead(Face*, FILE*);
void FaceWrite(Face*, FILE*);
Face* FaceArrayRead(FILE*);
#endif