From 04be907cbba161af7eda231f8a6a1856fc3a6042 Mon Sep 17 00:00:00 2001 From: Franz Zotter Date: Sat, 25 Aug 2012 22:51:30 +0000 Subject: improved deterministic behavior of [mtx_qhull], however planar polygons do not fully work yet. svn path=/trunk/externals/iem/iemmatrix/; revision=16172 --- src/mtx_qhull/zhull.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'src/mtx_qhull/zhull.h') 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 -#include "list.h" #include "vectors.h" +#include "list.h" +#include +#include +#include +#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 */ -- cgit v1.2.1