Up: Home page for Qhull
Up: Qhull manual: Table of Contents
Up: Programs • Options • Output • Formats • Geomview • Print • Qhull • Precision • Trace
Up: Qhull internals: Table of Contents
To: Qhull functions, macros, and data structures
To: Geom • Global • Io • Mem • Merge • Poly • Qhull • Set • Stat • User

## global.c -- global variables and their functions

> Qhull uses a global data structure, `qh`, to store globally defined constants, lists, sets, and variables. This allows multiple instances of Qhull to execute at the same time. The structure may be statically allocated or dynamically allocated with malloc(). See QHpointer.

Copyright © 1995-2003 The Geometry Center, Minneapolis MN

» Geom • Global • Io • Mem • Merge • Poly • Qhull • Set • Stat • User

### Index to global.c and qhull.h

- Qhull's global variables
- Global variable and initialization routines

### »Qhull's global variables

- qh_version version string
- qh all global variables for qhull are in `qh,qhmem`, and `qhstat`
- qh constants configuration flags and constants for Qhull
- qh precision constants precision constants for Qhull
- qh internal constants internal constants for Qhull
- qh facet and vertex lists lists of facets and vertices
- qh global variables minimum and maximum distances, next visit ids, several flags, and other global variables.
- qh global sets global sets for merging, hashing, input, etc.
- qh global buffers buffers for matrix operations and input
- qh static variables static variables for individual functions

### »Global variable and initialization routines

- qh_appendprint append output format to `qh.PRINTout`
- qh_freebuffers free global memory buffers
- qh_freeqhull free memory used by qhull
- qh_init_A called before error handling initialized
- qh_init_B called after points are defined
- qh_init_qhull_command build `qh.qhull_command` from `argc/argv`
- qh_initflags set flags and constants from command line
- qh_initqhull_buffers initialize global memory buffers
- qh_initqhull_globals initialize global variables
- qh_initqhull_mem initialize Qhull memory management
- qh_initqhull_start initialize default values at Qhull startup
- qh_initthresholds initialize 'Pdn' and 'PDn' thresholds
- qh_option append option description to `qh.global_options`
- qh_restore_qhull restores a previously saved qhull
- qh_save_qhull saves qhull for a later qh_restore_qhull()
- qh_strtol duplicates strtod() and strtol()

Up: Home page for Qhull
Up: Qhull manual: Table of Contents
Up: Programs • Options • Output • Formats • Geomview • Print • Qhull • Precision • Trace
Up: Qhull internals: Table of Contents
To: Qhull functions, macros, and data structures
To: Geom • Global • Io • Mem • Merge • Poly • Qhull • Set • Stat • User

The Geometry Center Home Page

Comments to: qhull@qhull.org
Created: May 2, 1997 --- Last modified: see top