File indexing completed on 2024-11-15 09:44:14
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 #ifndef qhDEFqhulla
0026 #define qhDEFqhulla 1
0027
0028 #include "libqhull_r.h" /* Includes user_r.h and data types */
0029
0030 #include "stat_r.h"
0031 #include "random_r.h"
0032 #include "mem_r.h"
0033 #include "qset_r.h"
0034 #include "geom_r.h"
0035 #include "merge_r.h"
0036 #include "poly_r.h"
0037 #include "io_r.h"
0038
0039 #include <setjmp.h>
0040 #include <string.h>
0041 #include <math.h>
0042 #include <float.h> /* some compilers will not need float.h */
0043 #include <limits.h>
0044 #include <time.h>
0045 #include <ctype.h>
0046 #include <stdio.h>
0047 #include <stdlib.h>
0048
0049
0050
0051
0052
0053 #if qh_CLOCKtype == 2
0054 #include <sys/types.h>
0055 #include <sys/times.h>
0056 #include <unistd.h>
0057 #endif
0058
0059 #ifdef _MSC_VER
0060 #pragma warning( disable : 4100)
0061 #pragma warning( disable : 4127)
0062 #pragma warning( disable : 4706)
0063 #pragma warning( disable : 4996)
0064 #endif
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075
0076
0077
0078
0079 #ifndef qh_NOtrace
0080 #define trace0(args) {if (qh->IStracing) qh_fprintf args;}
0081 #define trace1(args) {if (qh->IStracing >= 1) qh_fprintf args;}
0082 #define trace2(args) {if (qh->IStracing >= 2) qh_fprintf args;}
0083 #define trace3(args) {if (qh->IStracing >= 3) qh_fprintf args;}
0084 #define trace4(args) {if (qh->IStracing >= 4) qh_fprintf args;}
0085 #define trace5(args) {if (qh->IStracing >= 5) qh_fprintf args;}
0086 #else
0087 #define trace0(args) {}
0088 #define trace1(args) {}
0089 #define trace2(args) {}
0090 #define trace3(args) {}
0091 #define trace4(args) {}
0092 #define trace5(args) {}
0093 #endif
0094
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104 #if defined(__cplusplus) && defined(__INTEL_COMPILER) && !defined(QHULL_OS_WIN)
0105 template <typename T>
0106 inline void qhullUnused(T &x) { (void)x; }
0107 # define QHULL_UNUSED(x) qhullUnused(x);
0108 #else
0109 # define QHULL_UNUSED(x) (void)x;
0110 #endif
0111
0112 #ifdef __cplusplus
0113 extern "C" {
0114 #endif
0115
0116
0117
0118 void qh_qhull(qhT *qh);
0119 boolT qh_addpoint(qhT *qh, pointT *furthest, facetT *facet, boolT checkdist);
0120 void qh_build_withrestart(qhT *qh);
0121 vertexT *qh_buildcone(qhT *qh, pointT *furthest, facetT *facet, int goodhorizon, facetT **retryfacet);
0122 boolT qh_buildcone_mergepinched(qhT *qh, vertexT *apex, facetT *facet, facetT **retryfacet);
0123 boolT qh_buildcone_onlygood(qhT *qh, vertexT *apex, int goodhorizon);
0124 void qh_buildhull(qhT *qh);
0125 void qh_buildtracing(qhT *qh, pointT *furthest, facetT *facet);
0126 void qh_errexit2(qhT *qh, int exitcode, facetT *facet, facetT *otherfacet);
0127 void qh_findhorizon(qhT *qh, pointT *point, facetT *facet, int *goodvisible,int *goodhorizon);
0128 pointT *qh_nextfurthest(qhT *qh, facetT **visible);
0129 void qh_partitionall(qhT *qh, setT *vertices, pointT *points,int npoints);
0130 void qh_partitioncoplanar(qhT *qh, pointT *point, facetT *facet, realT *dist, boolT allnew);
0131 void qh_partitionpoint(qhT *qh, pointT *point, facetT *facet);
0132 void qh_partitionvisible(qhT *qh, boolT allpoints, int *numpoints);
0133 void qh_joggle_restart(qhT *qh, const char *reason);
0134 void qh_printsummary(qhT *qh, FILE *fp);
0135
0136
0137
0138 void qh_appendprint(qhT *qh, qh_PRINT format);
0139 void qh_freebuild(qhT *qh, boolT allmem);
0140 void qh_freebuffers(qhT *qh);
0141 void qh_initbuffers(qhT *qh, coordT *points, int numpoints, int dim, boolT ismalloc);
0142
0143
0144
0145 void qh_allstatA(qhT *qh);
0146 void qh_allstatB(qhT *qh);
0147 void qh_allstatC(qhT *qh);
0148 void qh_allstatD(qhT *qh);
0149 void qh_allstatE(qhT *qh);
0150 void qh_allstatE2(qhT *qh);
0151 void qh_allstatF(qhT *qh);
0152 void qh_allstatG(qhT *qh);
0153 void qh_allstatH(qhT *qh);
0154 void qh_freebuffers(qhT *qh);
0155 void qh_initbuffers(qhT *qh, coordT *points, int numpoints, int dim, boolT ismalloc);
0156
0157 #ifdef __cplusplus
0158 }
0159 #endif
0160
0161 #endif