geom.c File Reference

#include "gluos.h"
#include <assert.h>
#include <k3d-platform-config.h>
#include <GL/glu.h>
#include "mesh.h"
Include dependency graph for geom.c:
This graph shows which files directly or indirectly include this file:

Defines

#define RealInterpolate(a, x, b, y)
#define Interpolate(a, x, b, y)   RealInterpolate(a,x,b,y)
#define Swap(a, b)   if (1) { GLUvertex *t = a; a = b; b = t; } else

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 Interpolate ( a,
x,
b,
 )     RealInterpolate(a,x,b,y)
#define RealInterpolate ( a,
x,
b,
 ) 
Value:
(a = (a < 0) ? 0 : a, b = (b < 0) ? 0 : b,    \
  ((a <= b) ? ((b == 0) ? ((x+y) / 2)     \
                        : (x + (y-x) * (a/(a+b))))  \
            : (y + (x-y) * (b/(a+b)))))
#define Swap ( a,
 )     if (1) { GLUvertex *t = a; a = b; b = t; } else

Referenced by __gl_edgeIntersect(), and pqInit().


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:54 2011 for K-3D by doxygen 1.6.3