From b801e58f0dc2ec8257026283ea4f1a657c93f700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 23 Aug 2012 13:25:42 +0000 Subject: protect headers against double inclusion and include headers needed svn path=/trunk/externals/iem/iemmatrix/; revision=16169 --- src/mtx_qhull/list.h | 2 ++ src/mtx_qhull/vectors.h | 8 ++++++++ src/mtx_qhull/zhull.h | 10 ++++++++++ 3 files changed, 20 insertions(+) (limited to 'src/mtx_qhull') diff --git a/src/mtx_qhull/list.h b/src/mtx_qhull/list.h index ca76cb7..dfccede 100644 --- a/src/mtx_qhull/list.h +++ b/src/mtx_qhull/list.h @@ -1,6 +1,8 @@ #ifndef QHULL_LIST_H #define QHULL_LIST_H +#include + typedef long int entry_t; typedef long int index_t; diff --git a/src/mtx_qhull/vectors.h b/src/mtx_qhull/vectors.h index 201205a..fadb370 100644 --- a/src/mtx_qhull/vectors.h +++ b/src/mtx_qhull/vectors.h @@ -1,3 +1,9 @@ +#ifndef QHULL_VECTORS_H +#define QHULL_VECTORS_H + +#include +#include "list.h" + typedef struct vec_ { float c[3]; } vector_t; @@ -38,3 +44,5 @@ plane_t planeFromListedPoints(points_t points, list_t list); void printPlane(plane_t p); void printVector(vector_t v); + +#endif /* QHULL_VECTORS_H */ diff --git a/src/mtx_qhull/zhull.h b/src/mtx_qhull/zhull.h index dd520e1..2a20768 100644 --- a/src/mtx_qhull/zhull.h +++ b/src/mtx_qhull/zhull.h @@ -1,3 +1,9 @@ +#ifndef QHULL_ZHULL_H +#define QHULL_ZHULL_H + +#include +#include "list.h" +#include "vectors.h" typedef struct facet_ { plane_t plane; @@ -23,3 +29,7 @@ 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