Defines | Functions
geom.h File Reference
#include "libqhull.h"
Include dependency graph for geom.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define det2_(a1, a2, b1, b2)   (( a1 )*( b2 ) - ( a2 )*( b1 ))
#define det3_(a1, a2, a3, b1, b2, b3, c1, c2, c3)
#define dW(p1, p2)   ( *( rows[p1]+3 ) - *( rows[p2]+3 ))
#define dX(p1, p2)   ( *( rows[p1] ) - *( rows[p2] ))
#define dY(p1, p2)   ( *( rows[p1]+1 ) - *( rows[p2]+1 ))
#define dZ(p1, p2)   ( *( rows[p1]+2 ) - *( rows[p2]+2 ))
#define fabs_(a)   ((( a ) < 0 ) ? -( a ):( a ))
#define fmax_(a, b)   ( ( a ) < ( b ) ? ( b ) : ( a ) )
#define fmin_(a, b)   ( ( a ) > ( b ) ? ( b ) : ( a ) )
#define maximize_(maxval, val)   { if (( maxval ) < ( val )) ( maxval )= ( val ); }
#define minimize_(minval, val)   { if (( minval ) > ( val )) ( minval )= ( val ); }

Functions

void qh_backnormal (realT **rows, int numrow, int numcol, boolT sign, coordT *normal, boolT *nearzero)
coordTqh_copypoints (coordT *points, int numpoints, int dimension)
void qh_crossproduct (int dim, realT vecA[3], realT vecB[3], realT vecC[3])
realT qh_determinant (realT **rows, int dim, boolT *nearzero)
realT qh_detjoggle (pointT *points, int numpoints, int dimension)
void qh_detroundoff (void)
realT qh_detsimplex (pointT *apex, setT *points, int dim, boolT *nearzero)
realT qh_distnorm (int dim, pointT *point, pointT *normal, realT *offsetp)
void qh_distplane (pointT *point, facetT *facet, realT *dist)
realT qh_distround (int dimension, realT maxabs, realT maxsumabs)
realT qh_divzero (realT numer, realT denom, realT mindenom1, boolT *zerodiv)
realT qh_facetarea (facetT *facet)
realT qh_facetarea_simplex (int dim, coordT *apex, setT *vertices, vertexT *notvertex, boolT toporient, coordT *normal, realT *offset)
pointTqh_facetcenter (setT *vertices)
facetTqh_findbest (pointT *point, facetT *startfacet, boolT bestoutside, boolT isnewfacets, boolT noupper, realT *dist, boolT *isoutside, int *numpart)
facetTqh_findbesthorizon (boolT ischeckmax, pointT *point, facetT *startfacet, boolT noupper, realT *bestdist, int *numpart)
facetTqh_findbestnew (pointT *point, facetT *startfacet, realT *dist, boolT bestoutside, boolT *isoutside, int *numpart)
facetTqh_findgooddist (pointT *point, facetT *facetA, realT *distp, facetT **facetlist)
void qh_gausselim (realT **rows, int numrow, int numcol, boolT *sign, boolT *nearzero)
realT qh_getangle (pointT *vect1, pointT *vect2)
void qh_getarea (facetT *facetlist)
pointTqh_getcenter (setT *vertices)
pointTqh_getcentrum (facetT *facet)
realT qh_getdistance (facetT *facet, facetT *neighbor, realT *mindist, realT *maxdist)
boolT qh_gram_schmidt (int dim, realT **rows)
boolT qh_inthresholds (coordT *normal, realT *angle)
void qh_joggleinput (void)
realTqh_maxabsval (realT *normal, int dim)
setTqh_maxmin (pointT *points, int numpoints, int dimension)
realT qh_maxouter (void)
void qh_maxsimplex (int dim, setT *maxpoints, pointT *points, int numpoints, setT **simplex)
realT qh_minabsval (realT *normal, int dim)
int qh_mindiff (realT *vecA, realT *vecB, int dim)
void qh_normalize (coordT *normal, int dim, boolT toporient)
void qh_normalize2 (coordT *normal, int dim, boolT toporient, realT *minnorm, boolT *ismin)
boolT qh_orientoutside (facetT *facet)
void qh_outerinner (facetT *facet, realT *outerplane, realT *innerplane)
coordT qh_pointdist (pointT *point1, pointT *point2, int dim)
void qh_printmatrix (FILE *fp, const char *string, realT **rows, int numrow, int numcol)
void qh_printpoints (FILE *fp, const char *string, setT *points)
void qh_projectinput (void)
pointTqh_projectpoint (pointT *point, facetT *facet, realT dist)
void qh_projectpoints (signed char *project, int n, realT *points, int numpoints, int dim, realT *newpoints, int newdim)
void qh_rotateinput (realT **rows)
void qh_rotatepoints (realT *points, int numpoints, int dim, realT **rows)
void qh_scaleinput (void)
void qh_scalelast (coordT *points, int numpoints, int dim, coordT low, coordT high, coordT newhigh)
void qh_scalepoints (pointT *points, int numpoints, int dim, realT *newlows, realT *newhighs)
void qh_setfacetplane (facetT *newfacets)
boolT qh_sethalfspace (int dim, coordT *coords, coordT **nextp, coordT *normal, coordT *offset, coordT *feasible)
coordTqh_sethalfspace_all (int dim, int count, coordT *halfspaces, pointT *feasible)
void qh_sethyperplane_det (int dim, coordT **rows, coordT *point0, boolT toporient, coordT *normal, realT *offset, boolT *nearzero)
void qh_sethyperplane_gauss (int dim, coordT **rows, pointT *point0, boolT toporient, coordT *normal, coordT *offset, boolT *nearzero)
boolT qh_sharpnewfacets (void)
pointTqh_voronoi_center (int dim, setT *points)

Define Documentation

#define det2_ (   a1,
  a2,
  b1,
  b2 
)    (( a1 )*( b2 ) - ( a2 )*( b1 ))

Definition at line 69 of file geom.h.

#define det3_ (   a1,
  a2,
  a3,
  b1,
  b2,
  b3,
  c1,
  c2,
  c3 
)
Value:
( ( a1 )*det2_( b2,b3,c2,c3 ) \
                - ( b1 )*det2_( a2,a3,c2,c3 ) + ( c1 )*det2_( a2,a3,b2,b3 ) )

Definition at line 80 of file geom.h.

#define dW (   p1,
  p2 
)    ( *( rows[p1]+3 ) - *( rows[p2]+3 ))

Definition at line 97 of file geom.h.

#define dX (   p1,
  p2 
)    ( *( rows[p1] ) - *( rows[p2] ))

Definition at line 94 of file geom.h.

#define dY (   p1,
  p2 
)    ( *( rows[p1]+1 ) - *( rows[p2]+1 ))

Definition at line 95 of file geom.h.

#define dZ (   p1,
  p2 
)    ( *( rows[p1]+2 ) - *( rows[p2]+2 ))

Definition at line 96 of file geom.h.

#define fabs_ (   a)    ((( a ) < 0 ) ? -( a ):( a ))

Definition at line 27 of file geom.h.

#define fmax_ (   a,
 
)    ( ( a ) < ( b ) ? ( b ) : ( a ) )

Definition at line 35 of file geom.h.

#define fmin_ (   a,
 
)    ( ( a ) > ( b ) ? ( b ) : ( a ) )

Definition at line 43 of file geom.h.

#define maximize_ (   maxval,
  val 
)    { if (( maxval ) < ( val )) ( maxval )= ( val ); }

Definition at line 51 of file geom.h.

#define minimize_ (   minval,
  val 
)    { if (( minval ) > ( val )) ( minval )= ( val ); }

Definition at line 59 of file geom.h.


Function Documentation

void qh_backnormal ( realT **  rows,
int  numrow,
int  numcol,
boolT  sign,
coordT normal,
boolT nearzero 
)

Definition at line 521 of file geom.c.

coordT* qh_copypoints ( coordT points,
int  numpoints,
int  dimension 
)

Definition at line 27 of file geom2.c.

void qh_crossproduct ( int  dim,
realT  vecA[3],
realT  vecB[3],
realT  vecC[3] 
)

Definition at line 52 of file geom2.c.

realT qh_determinant ( realT **  rows,
int  dim,
boolT nearzero 
)

Definition at line 80 of file geom2.c.

realT qh_detjoggle ( pointT points,
int  numpoints,
int  dimension 
)

Definition at line 127 of file geom2.c.

void qh_detroundoff ( void  )

Definition at line 190 of file geom2.c.

realT qh_detsimplex ( pointT apex,
setT points,
int  dim,
boolT nearzero 
)

Definition at line 302 of file geom2.c.

realT qh_distnorm ( int  dim,
pointT point,
pointT normal,
realT offsetp 
)

Definition at line 346 of file geom2.c.

void qh_distplane ( pointT point,
facetT facet,
realT dist 
)

Definition at line 36 of file geom.c.

realT qh_distround ( int  dimension,
realT  maxabs,
realT  maxsumabs 
)

Definition at line 375 of file geom2.c.

realT qh_divzero ( realT  numer,
realT  denom,
realT  mindenom1,
boolT zerodiv 
)

Definition at line 408 of file geom2.c.

realT qh_facetarea ( facetT facet)

Definition at line 456 of file geom2.c.

realT qh_facetarea_simplex ( int  dim,
coordT apex,
setT vertices,
vertexT notvertex,
boolT  toporient,
coordT normal,
realT offset 
)

Definition at line 516 of file geom2.c.

pointT* qh_facetcenter ( setT vertices)

Definition at line 590 of file geom2.c.

facetT* qh_findbest ( pointT point,
facetT startfacet,
boolT  bestoutside,
boolT  isnewfacets,
boolT  noupper,
realT dist,
boolT isoutside,
int *  numpart 
)

Definition at line 140 of file geom.c.

facetT* qh_findbesthorizon ( boolT  ischeckmax,
pointT point,
facetT startfacet,
boolT  noupper,
realT bestdist,
int *  numpart 
)

Definition at line 281 of file geom.c.

facetT* qh_findbestnew ( pointT point,
facetT startfacet,
realT dist,
boolT  bestoutside,
boolT isoutside,
int *  numpart 
)

Definition at line 412 of file geom.c.

facetT* qh_findgooddist ( pointT point,
facetT facetA,
realT distp,
facetT **  facetlist 
)

Definition at line 629 of file geom2.c.

void qh_gausselim ( realT **  rows,
int  numrow,
int  numcol,
boolT sign,
boolT nearzero 
)

Definition at line 581 of file geom.c.

realT qh_getangle ( pointT vect1,
pointT vect2 
)

Definition at line 644 of file geom.c.

void qh_getarea ( facetT facetlist)

Definition at line 701 of file geom2.c.

pointT* qh_getcenter ( setT vertices)

Definition at line 669 of file geom.c.

pointT* qh_getcentrum ( facetT facet)

Definition at line 700 of file geom.c.

realT qh_getdistance ( facetT facet,
facetT neighbor,
realT mindist,
realT maxdist 
)

Definition at line 728 of file geom.c.

boolT qh_gram_schmidt ( int  dim,
realT **  rows 
)

Definition at line 762 of file geom2.c.

boolT qh_inthresholds ( coordT normal,
realT angle 
)

Definition at line 810 of file geom2.c.

void qh_joggleinput ( void  )

Definition at line 873 of file geom2.c.

realT* qh_maxabsval ( realT normal,
int  dim 
)

Definition at line 936 of file geom2.c.

setT* qh_maxmin ( pointT points,
int  numpoints,
int  dimension 
)

Definition at line 978 of file geom2.c.

realT qh_maxouter ( void  )

Definition at line 1064 of file geom2.c.

void qh_maxsimplex ( int  dim,
setT maxpoints,
pointT points,
int  numpoints,
setT **  simplex 
)

Definition at line 1096 of file geom2.c.

realT qh_minabsval ( realT normal,
int  dim 
)

Definition at line 1195 of file geom2.c.

int qh_mindiff ( realT vecA,
realT vecB,
int  dim 
)

Definition at line 1215 of file geom2.c.

void qh_normalize ( coordT normal,
int  dim,
boolT  toporient 
)

Definition at line 768 of file geom.c.

void qh_normalize2 ( coordT normal,
int  dim,
boolT  toporient,
realT minnorm,
boolT ismin 
)

Definition at line 804 of file geom.c.

Definition at line 1242 of file geom2.c.

void qh_outerinner ( facetT facet,
realT outerplane,
realT innerplane 
)

Definition at line 1277 of file geom2.c.

coordT qh_pointdist ( pointT point1,
pointT point2,
int  dim 
)

Definition at line 1318 of file geom2.c.

void qh_printmatrix ( FILE *  fp,
const char *  string,
realT **  rows,
int  numrow,
int  numcol 
)

Definition at line 1343 of file geom2.c.

void qh_printpoints ( FILE *  fp,
const char *  string,
setT points 
)

Definition at line 1367 of file geom2.c.

void qh_projectinput ( void  )

Definition at line 1422 of file geom2.c.

pointT* qh_projectpoint ( pointT point,
facetT facet,
realT  dist 
)

Definition at line 893 of file geom.c.

void qh_projectpoints ( signed char *  project,
int  n,
realT points,
int  numpoints,
int  dim,
realT newpoints,
int  newdim 
)

Definition at line 1524 of file geom2.c.

void qh_rotateinput ( realT **  rows)

Definition at line 1577 of file geom2.c.

void qh_rotatepoints ( realT points,
int  numpoints,
int  dim,
realT **  rows 
)

Definition at line 1603 of file geom2.c.

void qh_scaleinput ( void  )

Definition at line 1639 of file geom2.c.

void qh_scalelast ( coordT points,
int  numpoints,
int  dim,
coordT  low,
coordT  high,
coordT  newhigh 
)

Definition at line 1668 of file geom2.c.

void qh_scalepoints ( pointT points,
int  numpoints,
int  dim,
realT newlows,
realT newhighs 
)

Definition at line 1714 of file geom2.c.

void qh_setfacetplane ( facetT newfacets)

Definition at line 929 of file geom.c.

boolT qh_sethalfspace ( int  dim,
coordT coords,
coordT **  nextp,
coordT normal,
coordT offset,
coordT feasible 
)

Definition at line 1836 of file geom2.c.

coordT* qh_sethalfspace_all ( int  dim,
int  count,
coordT halfspaces,
pointT feasible 
)

Definition at line 1908 of file geom2.c.

void qh_sethyperplane_det ( int  dim,
coordT **  rows,
coordT point0,
boolT  toporient,
coordT normal,
realT offset,
boolT nearzero 
)

Definition at line 1103 of file geom.c.

void qh_sethyperplane_gauss ( int  dim,
coordT **  rows,
pointT point0,
boolT  toporient,
coordT normal,
coordT offset,
boolT nearzero 
)

Definition at line 1201 of file geom.c.

Definition at line 1950 of file geom2.c.

pointT* qh_voronoi_center ( int  dim,
setT points 
)

Definition at line 2000 of file geom2.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


libqhull
Author(s): Robert Krug
autogenerated on Tue Jun 18 2013 12:38:50