Macros | 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.

Macros

#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)
 

Macro Definition Documentation

◆ det2_

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

Definition at line 69 of file geom.h.

◆ det3_

#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 ) )
#define det2_(a1, a2, b1, b2)
Definition: geom.h:69

Definition at line 80 of file geom.h.

◆ dW

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

Definition at line 97 of file geom.h.

◆ dX

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

Definition at line 94 of file geom.h.

◆ dY

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

Definition at line 95 of file geom.h.

◆ dZ

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

Definition at line 96 of file geom.h.

◆ fabs_

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

Definition at line 27 of file geom.h.

◆ fmax_

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

Definition at line 35 of file geom.h.

◆ fmin_

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

Definition at line 43 of file geom.h.

◆ maximize_

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

Definition at line 51 of file geom.h.

◆ minimize_

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

Definition at line 59 of file geom.h.

Function Documentation

◆ qh_backnormal()

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

Definition at line 521 of file geom.c.

◆ qh_copypoints()

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

Definition at line 29 of file geom2.c.

◆ qh_crossproduct()

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

Definition at line 54 of file geom2.c.

◆ qh_determinant()

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

Definition at line 82 of file geom2.c.

◆ qh_detjoggle()

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

Definition at line 129 of file geom2.c.

◆ qh_detroundoff()

void qh_detroundoff ( void  )

Definition at line 192 of file geom2.c.

◆ qh_detsimplex()

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

Definition at line 304 of file geom2.c.

◆ qh_distnorm()

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

Definition at line 348 of file geom2.c.

◆ qh_distplane()

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

Definition at line 36 of file geom.c.

◆ qh_distround()

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

Definition at line 376 of file geom2.c.

◆ qh_divzero()

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

Definition at line 409 of file geom2.c.

◆ qh_facetarea()

realT qh_facetarea ( facetT facet)

Definition at line 457 of file geom2.c.

◆ qh_facetarea_simplex()

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

Definition at line 517 of file geom2.c.

◆ qh_facetcenter()

pointT* qh_facetcenter ( setT vertices)

Definition at line 591 of file geom2.c.

◆ qh_findbest()

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.

◆ qh_findbesthorizon()

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

Definition at line 281 of file geom.c.

◆ qh_findbestnew()

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

Definition at line 412 of file geom.c.

◆ qh_findgooddist()

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

Definition at line 630 of file geom2.c.

◆ qh_gausselim()

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

Definition at line 581 of file geom.c.

◆ qh_getangle()

realT qh_getangle ( pointT vect1,
pointT vect2 
)

Definition at line 644 of file geom.c.

◆ qh_getarea()

void qh_getarea ( facetT facetlist)

Definition at line 702 of file geom2.c.

◆ qh_getcenter()

pointT* qh_getcenter ( setT vertices)

Definition at line 669 of file geom.c.

◆ qh_getcentrum()

pointT* qh_getcentrum ( facetT facet)

Definition at line 700 of file geom.c.

◆ qh_getdistance()

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

Definition at line 728 of file geom.c.

◆ qh_gram_schmidt()

boolT qh_gram_schmidt ( int  dim,
realT **  rows 
)

Definition at line 763 of file geom2.c.

◆ qh_inthresholds()

boolT qh_inthresholds ( coordT normal,
realT angle 
)

Definition at line 811 of file geom2.c.

◆ qh_joggleinput()

void qh_joggleinput ( void  )

Definition at line 874 of file geom2.c.

◆ qh_maxabsval()

realT* qh_maxabsval ( realT normal,
int  dim 
)

Definition at line 937 of file geom2.c.

◆ qh_maxmin()

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

Definition at line 979 of file geom2.c.

◆ qh_maxouter()

realT qh_maxouter ( void  )

Definition at line 1066 of file geom2.c.

◆ qh_maxsimplex()

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

Definition at line 1098 of file geom2.c.

◆ qh_minabsval()

realT qh_minabsval ( realT normal,
int  dim 
)

Definition at line 1197 of file geom2.c.

◆ qh_mindiff()

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

Definition at line 1217 of file geom2.c.

◆ qh_normalize()

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

Definition at line 768 of file geom.c.

◆ qh_normalize2()

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

Definition at line 804 of file geom.c.

◆ qh_orientoutside()

boolT qh_orientoutside ( facetT facet)

Definition at line 1244 of file geom2.c.

◆ qh_outerinner()

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

Definition at line 1279 of file geom2.c.

◆ qh_pointdist()

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

Definition at line 1320 of file geom2.c.

◆ qh_printmatrix()

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

Definition at line 1345 of file geom2.c.

◆ qh_printpoints()

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

Definition at line 1369 of file geom2.c.

◆ qh_projectinput()

void qh_projectinput ( void  )

Definition at line 1424 of file geom2.c.

◆ qh_projectpoint()

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

Definition at line 893 of file geom.c.

◆ qh_projectpoints()

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

Definition at line 1531 of file geom2.c.

◆ qh_rotateinput()

void qh_rotateinput ( realT **  rows)

Definition at line 1584 of file geom2.c.

◆ qh_rotatepoints()

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

Definition at line 1610 of file geom2.c.

◆ qh_scaleinput()

void qh_scaleinput ( void  )

Definition at line 1646 of file geom2.c.

◆ qh_scalelast()

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

Definition at line 1675 of file geom2.c.

◆ qh_scalepoints()

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

Definition at line 1721 of file geom2.c.

◆ qh_setfacetplane()

void qh_setfacetplane ( facetT newfacets)

Definition at line 929 of file geom.c.

◆ qh_sethalfspace()

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

Definition at line 1844 of file geom2.c.

◆ qh_sethalfspace_all()

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

Definition at line 1918 of file geom2.c.

◆ qh_sethyperplane_det()

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.

◆ qh_sethyperplane_gauss()

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.

◆ qh_sharpnewfacets()

boolT qh_sharpnewfacets ( void  )

Definition at line 1961 of file geom2.c.

◆ qh_voronoi_center()

pointT* qh_voronoi_center ( int  dim,
setT points 
)

Definition at line 2012 of file geom2.c.



hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:02