27 lines
434 B
Text
27 lines
434 B
Text
|
#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
|
||
|
|