32 lines
563 B
C
32 lines
563 B
C
#ifndef GEOMETRY_HEADER
|
|
#include "geometry.h"
|
|
#endif
|
|
|
|
#ifndef STDIO_HEADER
|
|
#include <stdio.h>
|
|
#endif
|
|
|
|
#ifndef DCEL_HEADER
|
|
#define DCEL_HEADER
|
|
|
|
typedef struct halfEdge {
|
|
struct halfEdge *previous;
|
|
struct halfEdge *next;
|
|
struct halfEdge *twin;
|
|
int face;
|
|
int edge;
|
|
} halfEdge_t;
|
|
|
|
typedef struct edge {
|
|
halfEdge_t halfEdge;
|
|
} edge_t;
|
|
|
|
typedef struct face {
|
|
halfEdge_t start;
|
|
} face_t;
|
|
|
|
vertex_t **readPolygon(vertex_t **vertices, FILE *polygonFile, \
|
|
int *numVertices);
|
|
void freeVertices(vertex_t **vertices, int numVertices);
|
|
|
|
#endif
|