geom.h File Reference

#include "mesh.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 VertEq(u, v)   ((u)->s == (v)->s && (u)->t == (v)->t)
#define VertLeq(u, v)
#define EdgeEval(u, v, w)   __gl_edgeEval(u,v,w)
#define EdgeSign(u, v, w)   __gl_edgeSign(u,v,w)
#define TransLeq(u, v)
#define TransEval(u, v, w)   __gl_transEval(u,v,w)
#define TransSign(u, v, w)   __gl_transSign(u,v,w)
#define EdgeGoesLeft(e)   VertLeq( (e)->Dst, (e)->Org )
#define EdgeGoesRight(e)   VertLeq( (e)->Org, (e)->Dst )
#define ABS(x)   ((x) < 0 ? -(x) : (x))
#define VertL1dist(u, v)   (ABS(u->s - v->s) + ABS(u->t - v->t))
#define VertCCW(u, v, w)   __gl_vertCCW(u,v,w)

Functions

int __gl_vertLeq (GLUvertex *u, GLUvertex *v)
GLdouble __gl_edgeEval (GLUvertex *u, GLUvertex *v, GLUvertex *w)
GLdouble __gl_edgeSign (GLUvertex *u, GLUvertex *v, GLUvertex *w)
GLdouble __gl_transEval (GLUvertex *u, GLUvertex *v, GLUvertex *w)
GLdouble __gl_transSign (GLUvertex *u, GLUvertex *v, GLUvertex *w)
int __gl_vertCCW (GLUvertex *u, GLUvertex *v, GLUvertex *w)
void __gl_edgeIntersect (GLUvertex *o1, GLUvertex *d1, GLUvertex *o2, GLUvertex *d2, GLUvertex *v)

Define Documentation

#define ABS (  )     ((x) < 0 ? -(x) : (x))

Referenced by LongAxis().

#define EdgeEval ( u,
v,
 )     __gl_edgeEval(u,v,w)

Referenced by __gl_edgeIntersect(), and EdgeLeq().

#define EdgeGoesLeft (  )     VertLeq( (e)->Dst, (e)->Org )
#define EdgeGoesRight (  )     VertLeq( (e)->Org, (e)->Dst )
#define EdgeSign ( u,
v,
 )     __gl_edgeSign(u,v,w)
#define TransEval ( u,
v,
 )     __gl_transEval(u,v,w)

Referenced by __gl_edgeIntersect().

#define TransLeq ( u,
 ) 
Value:
(((u)->t < (v)->t) || \
                         ((u)->t == (v)->t && (u)->s <= (v)->s))

Referenced by __gl_edgeIntersect(), __gl_transEval(), and __gl_transSign().

#define TransSign ( u,
v,
 )     __gl_transSign(u,v,w)

Referenced by __gl_edgeIntersect().

#define VertCCW ( u,
v,
 )     __gl_vertCCW(u,v,w)
#define VertEq ( u,
 )     ((u)->s == (v)->s && (u)->t == (v)->t)
#define VertL1dist ( u,
 )     (ABS(u->s - v->s) + ABS(u->t - v->t))

Referenced by VertexWeights().

#define VertLeq ( u,
 ) 

Function Documentation

GLdouble __gl_edgeEval ( GLUvertex u,
GLUvertex v,
GLUvertex w 
)

References GLUvertex::s, GLUvertex::t, and VertLeq.

void __gl_edgeIntersect ( GLUvertex o1,
GLUvertex d1,
GLUvertex o2,
GLUvertex d2,
GLUvertex v 
)
GLdouble __gl_edgeSign ( GLUvertex u,
GLUvertex v,
GLUvertex w 
)

References GLUvertex::s, GLUvertex::t, and VertLeq.

GLdouble __gl_transEval ( GLUvertex u,
GLUvertex v,
GLUvertex w 
)

References GLUvertex::s, GLUvertex::t, and TransLeq.

GLdouble __gl_transSign ( GLUvertex u,
GLUvertex v,
GLUvertex w 
)

References GLUvertex::s, GLUvertex::t, and TransLeq.

int __gl_vertCCW ( GLUvertex u,
GLUvertex v,
GLUvertex w 
)

References GLUvertex::s, and GLUvertex::t.

int __gl_vertLeq ( GLUvertex u,
GLUvertex v 
)

References VertLeq.

Referenced by InitPriorityQ().


Generated on Mon Mar 21 07:33:55 2011 for K-3D by doxygen 1.6.3