aboutsummaryrefslogtreecommitdiff
path: root/src/mtx_qhull/zhull.h
diff options
context:
space:
mode:
authorFranz Zotter <fzotter@users.sourceforge.net>2012-08-25 22:51:30 +0000
committerFranz Zotter <fzotter@users.sourceforge.net>2012-08-25 22:51:30 +0000
commit04be907cbba161af7eda231f8a6a1856fc3a6042 (patch)
treec66978c79165fb745297856da9f50b51db6d56b9 /src/mtx_qhull/zhull.h
parent547a9740506d30ddd2f0dc3fe70b436423bc7a43 (diff)
improved deterministic behavior of [mtx_qhull], however planar polygons
do not fully work yet. svn path=/trunk/externals/iem/iemmatrix/; revision=16172
Diffstat (limited to 'src/mtx_qhull/zhull.h')
-rw-r--r--src/mtx_qhull/zhull.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/mtx_qhull/zhull.h b/src/mtx_qhull/zhull.h
index 2a20768..fc0ff14 100644
--- a/src/mtx_qhull/zhull.h
+++ b/src/mtx_qhull/zhull.h
@@ -1,9 +1,16 @@
#ifndef QHULL_ZHULL_H
#define QHULL_ZHULL_H
-#include <sys/types.h>
-#include "list.h"
#include "vectors.h"
+#include "list.h"
+#include <math.h>
+#include <stdlib.h>
+#include <stdio.h>
+#define TOL_OUTSIDEPOINT 1e-7
+#define TOL_INSIDEPOINT -1e-7
+#define TOL_DEGENERATE 1e-6
+#define MAXIT 1000000
+
typedef struct facet_ {
plane_t plane;
@@ -23,13 +30,13 @@ typedef struct zhull_ {
} zhull_t;
void calculateZHull(zhull_t *zh,int maxit);
+index_t getTriangleCorner(const zhull_t * const zh,
+ const index_t triangle_idx,
+ const index_t corner_idx);
void printZhull(const zhull_t * const zh);
void freeZhull(zhull_t *zh);
zhull_t zhullInitPoints(const float *x, const float *y,
const float *z, const size_t num_points);
void printFacet(const zhull_t * const zh,
const facet_t * const f);
-
-facet_t *getFacetByIndex(const list_t facets, const index_t index);
-
#endif /* QHULL_ZHULL_H */