Up: Home page for Qhull (local)
Up: Qhull manual: Table of Contents
Up: Programs • Options • Output • Formats • Geomview • Print • Qhull • Precision • Trace • Functions (local)
Up: Qhull code
To: Geom • Global • Io • Mem • Merge • Poly • Qhull • Set • Stat • User

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

> Qhull uses a data structure, `qhT`, to store globally defined constants, lists, sets, and variables. It is passed as the first argument to most functions.

Copyright © 1995-2020 C.B. Barber

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

### Index to global_r.c and libqhull_r.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`
- QHULL_LIB_CHECK Check for compatible library
- 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_checkflags check flags for multiple frontends to qhull
- qh_clear_outputflags clear output flags for QhullPoints
- qh_freebuffers free global memory buffers
- qh_freebuild free memory used by qh_initbuild and qh_buildhull
- 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_outputflags initialize flags concerned with output
- qh_initqhull_start allocate qh_qh and call qh_initqhull_start2()
- qh_initqhull_start2 initialize default values at Qhull startup
- qh_initthresholds initialize 'Pdn' and 'PDn' thresholds
- qh_lib_check check for compatible Qhull library. Invoked by QHULL_LIB_CHECK at start of each program.
- 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()
- qh_zero zeroes qhT before first use

Up: Home page for Qhull (local)
Up: Qhull manual: Table of Contents
Up: Programs • Options • Output • Formats • Geomview • Print • Qhull • Precision • Trace • Functions (local)
Up: Qhull code
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