36 #if !defined(SAG_COM) && !defined(__CYGWIN__) && (defined(WIN64) || defined(_WIN64) || defined(__WIN64__) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)) 38 #elif defined(__MWERKS__) && defined(__INTEL__) 53 #define qh_FILENAMElen 500 70 #define MSG_TRACE1 1000 71 #define MSG_TRACE2 2000 72 #define MSG_TRACE3 3000 73 #define MSG_TRACE4 4000 74 #define MSG_TRACE5 5000 75 #define MSG_ERROR 6000 76 #define MSG_WARNING 7000 77 #define MSG_STDERR 8000 78 #define MSG_OUTPUT 9000 79 #define MSG_QHULL_ERROR 10000 80 #define MSG_FIXUP 11000 81 #define MSG_MAXLEN 3000 89 #define qh_OPTIONline 80 146 #define REALmax FLT_MAX 147 #define REALmin FLT_MIN 148 #define REALepsilon FLT_EPSILON 149 #define qh_REALdigits 8 150 #define qh_REAL_1 "%6.8g " 151 #define qh_REAL_2n "%6.8g %6.8g\n" 152 #define qh_REAL_3n "%6.8g %6.8g %6.8g\n" 154 #elif (REALfloat == 0) 156 #define REALmax DBL_MAX 157 #define REALmin DBL_MIN 158 #define REALepsilon DBL_EPSILON 159 #define qh_REALdigits 16 160 #define qh_REAL_1 "%6.16g " 161 #define qh_REAL_2n "%6.16g %6.16g\n" 162 #define qh_REAL_3n "%6.16g %6.16g %6.16g\n" 165 #error unknown float option 184 #define COUNTmax 0x7fffffff 214 #define qh_CLOCKtype 1 216 #if (qh_CLOCKtype == 1) 218 #if defined(CLOCKS_PER_SECOND) 219 #define qh_CPUclock ((unsigned long)clock()) 220 #define qh_SECticks CLOCKS_PER_SECOND 222 #elif defined(CLOCKS_PER_SEC) 223 #define qh_CPUclock ((unsigned long)clock()) 224 #define qh_SECticks CLOCKS_PER_SEC 226 #elif defined(CLK_TCK) 227 #define qh_CPUclock ((unsigned long)clock()) 228 #define qh_SECticks CLK_TCK 231 #define qh_CPUclock ((unsigned long)clock()) 232 #define qh_SECticks 1E6 235 #elif (qh_CLOCKtype == 2) 236 #define qh_CPUclock qh_clock() 237 #define qh_SECticks 100 240 #error unknown clock option 275 #define qh_RANDOMtype 5 277 #if (qh_RANDOMtype == 1) 278 #define qh_RANDOMmax ((realT)0x7fffffffUL) 279 #define qh_RANDOMint random() 280 #define qh_RANDOMseed_(qh, seed) srandom(seed); 282 #elif (qh_RANDOMtype == 2) 284 #define qh_RANDOMmax ((realT)RAND_MAX) 286 #define qh_RANDOMmax ((realT)32767) 288 #define qh_RANDOMint rand() 289 #define qh_RANDOMseed_(qh, seed) srand((unsigned)seed); 291 #elif (qh_RANDOMtype == 3) 292 #define qh_RANDOMmax ((realT)0x7fffffffUL) 293 #define qh_RANDOMint rand() 294 #define qh_RANDOMseed_(qh, seed) srand((unsigned)seed); 296 #elif (qh_RANDOMtype == 4) 297 #define qh_RANDOMmax ((realT)0x7fffffffUL) 298 #define qh_RANDOMint lrand48() 299 #define qh_RANDOMseed_(qh, seed) srand48(seed); 301 #elif (qh_RANDOMtype == 5) 302 #define qh_RANDOMmax ((realT)2147483646UL) 303 #define qh_RANDOMint qh_rand(qh) 304 #define qh_RANDOMseed_(qh, seed) qh_srand(qh, seed); 308 #error: unknown random option 317 #define qh_ORIENTclock 0 344 #define qh_JOGGLEdefault 30000.0 352 #define qh_JOGGLEincrease 10.0 363 #define qh_JOGGLEretry 2 374 #define qh_JOGGLEagain 1 386 #define qh_JOGGLEmaxincrease 1e-2 394 #define qh_JOGGLEmaxretry 100 409 #define qh_HASHfactor 2 420 #define qh_VERIFYdirect 1000000 428 #define qh_INITIALsearch 6 440 #define qh_INITIALmax 8 465 #define qh_MEMalign ((int)(fmax_(sizeof(realT), sizeof(void *)))) 476 #define qh_MEMbufsize 0x10000 487 #define qh_MEMinitbuf 0x20000 495 #define qh_INFINITE -10.101 506 #define qh_DEFAULTbox 0.5 507 #define qh_DEFAULTzbox 1e6 544 #define qh_COMPUTEfurthest 0 555 #define qh_KEEPstatistics 1 568 #define qh_MAXoutside 1 604 flags, outfile, errfile);
615 #define qh_QUICKhelp 0 631 #define qh_DIMmergeVertex 6 639 #define qh_DIMreduceBuild 5 651 #define qh_BESTcentrum 20 652 #define qh_BESTcentrum2 2 663 #define qh_BESTnonconvex 15 674 #define qh_MAXnewmerges 2 687 #define qh_MAXnewcentrum 5 698 #define qh_COPLANARratio 3 728 #define qh_DISToutside ((qh_USEfindbestnew ? 2 : 1) * \ 729 fmax_((qh->MERGING ? 2 : 1)*qh->MINoutside, qh->max_outside)) 743 #define qh_RATIOnearinside 5 757 #define qh_SEARCHdist ((qh_USEfindbestnew ? 2 : 1) * \ 758 (qh->max_outside + 2 * qh->DISTround + fmax_( qh->MINvisible, qh->MAXcoplanar))); 772 #define qh_USEfindbestnew (zzval_(Ztotmerge) > 50) 788 #define qh_WIDEcoplanar 6 801 #define qh_WIDEduplicate 100 817 #define qh_MAXnarrow -0.99999999 829 #define qh_WARNnarrow -0.999999999999999 848 #define qh_ZEROdelaunay 2 873 #if defined(_MSC_VER) && defined(_DEBUG) && defined(QHULL_CRTDBG) 874 #define _CRTDBG_MAP_ALLOC
void qh_freeqhull(boolT allmem)
void qh_memfreeshort(int *curlong, int *totlong)
int qh_new_qhull(int dim, int numpoints, coordT *points, boolT ismalloc, char *qhull_cmd, FILE *outfile, FILE *errfile)