Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

qhull_a.h

Go to the documentation of this file.
00001 /*<html><pre>  -<a                             href="qh-qhull.htm"
00002   >-------------------------------</a><a name="TOP">-</a>
00003 
00004    qhull_a.h 
00005    all header files for compiling qhull
00006 
00007    see qh-qhull.htm
00008 
00009    see qhull.h for user-level definitions
00010    
00011    see user.h for user-defineable constants
00012    
00013    defines internal functions for qhull.c global.c
00014 
00015    copyright (c) 1993-2001, The Geometry Center
00016 
00017    Notes:  grep for ((" and (" to catch fprintf("lkasdjf");
00018            full parens around (x?y:z)
00019            use '#include qhull/qhull_a.h' to avoid name clashes
00020 */
00021 
00022 #ifndef qhDEFqhulla
00023 #define qhDEFqhulla
00024 
00025 #include <stdio.h>
00026 #include <stdlib.h>
00027 #include <setjmp.h>
00028 #include <string.h>
00029 #include <math.h>
00030 #include <float.h>    /* some compilers will not need float.h */
00031 #include <limits.h>
00032 #include <time.h>
00033 #include <ctype.h>
00034 /*** uncomment here and qset.c
00035      if string.h does not define memcpy()
00036 #include <memory.h>
00037 */
00038 #include "qhull.h"
00039 #include "mem.h"
00040 #include "qset.h"
00041 #include "geom.h"
00042 #include "merge.h"
00043 #include "poly.h"
00044 #include "io.h"
00045 #include "stat.h"
00046 
00047 #if qh_CLOCKtype == 2  /* defined in user.h from qhull.h */
00048 #include <sys/types.h>
00049 #include <sys/times.h>
00050 #include <unistd.h>
00051 #endif
00052 
00053 #ifdef _MSC_VER  /* Microsoft Visual C++ */
00054 #pragma warning( disable : 4056)  /* float constant expression.  Looks like a compiler bug */
00055 #pragma warning( disable : 4146)  /* unary minus applied to unsigned type */
00056 #pragma warning( disable : 4244)  /* conversion from 'unsigned long' to 'real' */
00057 #pragma warning( disable : 4305)  /* conversion from 'const double' to 'float' */
00058 #endif
00059 
00060 /* ======= -macros- =========== */
00061 
00062 /*-<a                             href="qh-qhull.htm#TOC"
00063   >--------------------------------</a><a name="traceN">-</a>
00064   
00065   traceN((fp.ferr, "format\n", vars));  
00066     calls fprintf if qh.IStracing >= N
00067   
00068   notes:
00069     removing tracing reduces code size but doesn't change execution speed
00070 */
00071 #ifndef qh_NOtrace
00072 #define trace0(args) {if (qh IStracing) fprintf args;}
00073 #define trace1(args) {if (qh IStracing >= 1) fprintf args;}
00074 #define trace2(args) {if (qh IStracing >= 2) fprintf args;}
00075 #define trace3(args) {if (qh IStracing >= 3) fprintf args;}
00076 #define trace4(args) {if (qh IStracing >= 4) fprintf args;}
00077 #define trace5(args) {if (qh IStracing >= 5) fprintf args;}
00078 #else /* qh_NOtrace */
00079 #define trace0(args) {}
00080 #define trace1(args) {}
00081 #define trace2(args) {}
00082 #define trace3(args) {}
00083 #define trace4(args) {}
00084 #define trace5(args) {}
00085 #endif /* qh_NOtrace */
00086 
00087 /***** -qhull.c prototypes (alphabetical after qhull) ********************/
00088 
00089 void    qh_qhull (void);
00090 boolT   qh_addpoint (pointT *furthest, facetT *facet, boolT checkdist);
00091 void    qh_buildhull(void);
00092 void    qh_buildtracing (pointT *furthest, facetT *facet);
00093 void    qh_build_withrestart (void);
00094 void    qh_errexit2(int exitcode, facetT *facet, facetT *otherfacet);
00095 void    qh_findhorizon(pointT *point, facetT *facet, int *goodvisible,int *goodhorizon);
00096 pointT *qh_nextfurthest (facetT **visible);
00097 void    qh_partitionall(setT *vertices, pointT *points,int npoints);
00098 void    qh_partitioncoplanar (pointT *point, facetT *facet, realT *dist);
00099 void    qh_partitionpoint (pointT *point, facetT *facet);
00100 void    qh_partitionvisible(boolT allpoints, int *numpoints);
00101 void    qh_precision (char *reason);
00102 void    qh_printsummary(FILE *fp);
00103 
00104 /***** -global.c internal prototypes (alphabetical) ***********************/
00105 
00106 void    qh_appendprint (qh_PRINT format);
00107 void    qh_freebuild (boolT allmem);
00108 void    qh_freebuffers (void);
00109 void    qh_initbuffers (coordT *points, int numpoints, int dim, boolT ismalloc);
00110 void    qh_option (char *option, int *i, realT *r);
00111 int     qh_strtol (const char *s, char **endp);
00112 double  qh_strtod (const char *s, char **endp);
00113 
00114 /***** -stat.c internal prototypes (alphabetical) ***********************/
00115 
00116 void    qh_allstatA (void);
00117 void    qh_allstatB (void);
00118 void    qh_allstatC (void);
00119 void    qh_allstatD (void);
00120 void    qh_allstatE (void);
00121 void    qh_allstatF (void);
00122 void    qh_freebuffers (void);
00123 void    qh_initbuffers (coordT *points, int numpoints, int dim, boolT ismalloc);
00124 
00125 #endif /* qhDEFqhulla */
 

Powered by Plone

This site conforms to the following standards: