comp20003-project02/voronoi.h

27 lines
924 B
C
Raw Normal View History

#ifndef DCEL_HEADER
#include "dcel.h"
#endif
#ifndef VORONOI_HEADER
#define VORONOI_HEADER
/* Prints bisectors to an output file */
void stage1PrintBisector(bisector_t *bisector, FILE *outputFile);
2021-09-13 12:27:17 +10:00
/* Prints intersections to an output file */
void stage2PrintIntersection(intersection_t *intersection, FILE *outputFile);
2021-09-09 21:23:53 +10:00
/* Outputs the bisector equations from pointsFile into outputFile */
void stage1(char *pointsFileName, char *outputFileName);
/* Outputs the intersections the bisectors make with the polygon */
void stage2(char *pointsFileName, char *polygonFileName, char *outputFileName);
/* Constructs a Voronoi diagram and prints the resulting diameters */
void stage3(char *dataFileName, char *polygonFileName, char *outputFileName);
/* Same as stage3, but prints diameters in ascending order */
void stage4(char *dataFileName, char *polygonFileName, char *outputFileName);
#endif