Home | History | Annotate | Download | only in libtess

Lines Matching defs:weights

414 			 void *data[4], GLfloat weights[4], int needed )
424 CALL_COMBINE_OR_COMBINE_DATA( coords, data, weights, &isect->data );
447 GLfloat weights[4] = { 0.5, 0.5, 0.0, 0.0 };
451 CallCombine( tess, e1->Org, data, weights, FALSE );
456 GLfloat *weights )
458 * Find some weights which describe how the intersection vertex is
468 weights[0] = 0.5 * t2 / (t1 + t2);
469 weights[1] = 0.5 * t1 / (t1 + t2);
470 isect->coords[0] += weights[0]*org->coords[0] + weights[1]*dst->coords[0];
471 isect->coords[1] += weights[0]*org->coords[1] + weights[1]*dst->coords[1];
472 isect->coords[2] += weights[0]*org->coords[2] + weights[1]*dst->coords[2];
486 GLfloat weights[4];
494 VertexWeights( isect, orgUp, dstUp, &weights[0] );
495 VertexWeights( isect, orgLo, dstLo, &weights[2] );
497 CallCombine( tess, isect, data, weights, TRUE );