static void CALLBACK vrml_tess_combine( GLdouble coords[3], void* vertex_data[4], GLfloat weight[4], void** outData, void* user_data ) { VRML_LAYER* lp = (VRML_LAYER*) user_data; *outData = lp->AddExtraVertex( coords[0], coords[1] ); }
static void CALLBACK vrml_tess_combine( GLdouble coords[3], VERTEX_3D* vertex_data[4], GLfloat weight[4], void** outData, void* user_data ) { VRML_LAYER* lp = (VRML_LAYER*) user_data; // the plating is set to true only if all are plated bool plated = vertex_data[0]->pth; if( !vertex_data[1]->pth ) plated = false; if( vertex_data[2] && !vertex_data[2]->pth ) plated = false; if( vertex_data[3] && !vertex_data[3]->pth ) plated = false; *outData = lp->AddExtraVertex( coords[0], coords[1], plated ); }