89 for(
f =
mesh->fHead.next;
f != &
mesh->fHead;
f =
f->next ) {
92 for(
f =
mesh->fHead.next;
f != &
mesh->fHead;
f =
f->next ) {
98 if(
f->inside && !
f->marked ) {
135 (*(
max.render))( tess,
max.eStart,
max.size );
146 #define Marked(f) (! (f)->inside || (f)->marked) 148 #define AddToTrail(f,t) ((f)->trail = (t), (t) = (f), (f)->marked = TRUE) 150 #define FreeTrail(t) do { \ 151 while( (t) != NULL ) { \ 152 (t)->marked = FALSE; t = (t)->trail; \ 168 for(
e = eOrig; !
Marked(
e->Lface );
e =
e->Onext ) {
172 for(
e = eOrig; !
Marked(
e->Rface );
e =
e->Oprev ) {
183 #define IsEven(n) (((n) & 1) == 0) 198 long headSize = 0, tailSize = 0;
202 for(
e = eOrig; !
Marked(
e->Lface ); ++tailSize,
e =
e->Onext ) {
211 for(
e = eOrig; !
Marked(
e->Rface ); ++headSize,
e =
e->Dnext ) {
220 newFace.
size = tailSize + headSize;
223 }
else if(
IsEven( headSize )) {
259 for( ;
f !=
NULL;
f =
f->trail ) {
268 newState = !
e->Rface->inside;
269 if( edgeState != newState ) {
270 edgeState = newState;
277 }
while(
e !=
f->anEdge );
294 e->Lface->marked =
TRUE;
316 e->Lface->marked =
TRUE;
322 e->Lface->marked =
TRUE;
344 for(
f =
mesh->fHead.next;
f != &
mesh->fHead;
f =
f->next ) {
351 }
while(
e !=
f->anEdge );
360 #define SIGN_INCONSISTENT 2 375 GLdouble dot, xc, yc, zc, xp, yp, zp,
n[3];
400 xp = xc; yp = yc; zp = zc;
406 n[0] = yp*zc - zp*yc;
407 n[1] = zp*xc - xp*zc;
408 n[2] = xp*yc - yp*xc;
420 }
else if( dot != 0 ) {
492 for( vc =
v0+1; vc <
vn; ++vc ) {
496 for( vc =
vn-1; vc >
v0; --vc ) {
static size_t double int int int * sign
#define CALL_VERTEX_OR_VERTEX_DATA(a)
void(* render)(GLUtesselator *, GLUhalfEdge *, long)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
_Tp _STLP_CALL norm(const complex< _Tp > &__z)
struct outqueuenode * head
GLboolean __gl_renderCache(GLUtesselator *tess)
CachedVertex cache[TESS_MAX_CACHE]
void __gl_renderMesh(GLUtesselator *tess, GLUmesh *mesh)
static void RenderMaximumFaceGroup(GLUtesselator *tess, GLUface *fOrig)
static void RenderStrip(GLUtesselator *tess, GLUhalfEdge *eStart, long size)
static struct FaceCount MaximumFan(GLUhalfEdge *eOrig)
#define CALL_EDGE_FLAG_OR_EDGE_FLAG_DATA(a)
#define GLU_TESS_WINDING_POSITIVE
#define CALL_END_OR_END_DATA()
void check(CONTEXT *pContext)
static int ComputeNormal(GLUtesselator *tess, GLdouble norm[3], int check)
#define SIGN_INCONSISTENT
#define CALL_BEGIN_OR_BEGIN_DATA(a)
#define GLU_TESS_WINDING_ODD
static void RenderTriangle(GLUtesselator *tess, GLUhalfEdge *eStart, long size)
static struct FaceCount MaximumStrip(GLUhalfEdge *eOrig)
void __gl_renderBoundary(GLUtesselator *tess, GLUmesh *mesh)
#define GLU_TESS_WINDING_NEGATIVE
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint vn
#define GL_TRIANGLE_STRIP
#define GLU_TESS_WINDING_ABS_GEQ_TWO
static void RenderLonelyTriangles(GLUtesselator *tess, GLUface *head)
#define GLU_TESS_WINDING_NONZERO
static void RenderFan(GLUtesselator *tess, GLUhalfEdge *eStart, long size)