26 lines
434 B
C++
26 lines
434 B
C++
#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
|
|
|