Lines Matching refs:fTop
252 fTop->fID, fBottom->fID, other.fTop->fID, other.fBottom->fID);
253 if (fTop == other.fTop || fBottom == other.fBottom ||
254 fTop == other.fBottom || fBottom == other.fTop) {
262 fLine, fTop->fPoint, fBottom->fPoint,
263 other.fLine, other.fTop->fPoint, other.fBottom->fPoint,
282 *alpha = std::max((1.0 - s) * fTop->fAlpha + s * fBottom->fAlpha,
283 (1.0 - t) * other.fTop->fAlpha + t * other.fBottom->fAlpha);
294 TESS_LOG("removing edge %g -> %g\n", edge->fTop->fID, edge->fBottom->fID);
317 vertices.append(e->fTop);
394 e->fTop->fID, e->fBottom->fID, fID, side == kLeft_Side ? "left" : "right");
629 TESS_LOG("inserting edge %g -> %g\n", edge->fTop->fID, edge->fBottom->fID);
654 if (fTop->fPoint == fBottom->fPoint ||
655 c.sweep_lt(fBottom->fPoint, fTop->fPoint)) {
658 TESS_LOG("insert edge (%g -> %g) above vertex %g\n", fTop->fID, fBottom->fID, v->fID);
662 if (next->isRightOf(fTop)) {
672 if (fTop->fPoint == fBottom->fPoint ||
673 c.sweep_lt(fBottom->fPoint, fTop->fPoint)) {
676 TESS_LOG("insert edge (%g -> %g) below vertex %g\n", fTop->fID, fBottom->fID, v->fID);
690 SkASSERT(edge->fTop && edge->fBottom);
691 TESS_LOG("removing edge (%g -> %g) above vertex %g\n", edge->fTop->fID, edge->fBottom->fID,
698 SkASSERT(edge->fTop && edge->fBottom);
700 edge->fTop->fID, edge->fBottom->fID, edge->fTop->fID);
702 edge, &edge->fTop->fFirstEdgeBelow, &edge->fTop->fLastEdgeBelow);
725 Vertex* top = e->fTop;
727 ((top->fLeftEnclosingEdge && !top->fLeftEnclosingEdge->isLeftOf(e->fTop)) ||
728 (top->fRightEnclosingEdge && !top->fRightEnclosingEdge->isRightOf(e->fTop)))) {
741 Vertex* top = edge->fTop;
744 Vertex* leftTop = edge->fLeft->fTop;
758 Vertex* rightTop = edge->fRight->fTop;
778 fBreadcrumbList.append(fAlloc, edge->fTop->fPoint, edge->fBottom->fPoint, v->fPoint,
781 edge->fTop = v;
792 fBreadcrumbList.append(fAlloc, edge->fTop->fPoint, edge->fBottom->fPoint, v->fPoint,
804 if (coincident(edge->fTop->fPoint, other->fTop->fPoint)) {
806 edge->fTop->fPoint.fX, edge->fTop->fPoint.fY,
808 rewind(activeEdges, current, edge->fTop, c);
811 edge->fTop = edge->fBottom = nullptr;
812 } else if (c.sweep_lt(edge->fTop->fPoint, other->fTop->fPoint)) {
813 rewind(activeEdges, current, edge->fTop, c);
815 this->setBottom(edge, other->fTop, activeEdges, current, c);
817 rewind(activeEdges, current, other->fTop, c);
819 this->setBottom(other, edge->fTop, activeEdges, current, c);
827 edge->fTop->fPoint.fX, edge->fTop->fPoint.fY,
829 rewind(activeEdges, current, edge->fTop, c);
832 edge->fTop = edge->fBottom = nullptr;
834 rewind(activeEdges, current, other->fTop, c);
838 rewind(activeEdges, current, edge->fTop, c);
848 return left->fTop->fPoint == right->fTop->fPoint ||
849 !left->isLeftOf(right->fTop) || !right->isRightOf(left->fTop);
883 if (!edge->fTop || !edge->fBottom || v == edge->fTop || v == edge->fBottom) {
887 edge->fTop->fID, edge->fBottom->fID, v->fID, v->fPoint.fX, v->fPoint.fY);
894 if (c.sweep_lt(v->fPoint, edge->fTop->fPoint)) {
898 bottom = edge->fTop;
924 if (!left->fTop || !left->fBottom || !right->fTop || !right->fBottom) {
927 if (left->fTop == right->fTop || left->fBottom == right->fBottom) {
930 if (c.sweep_lt(left->fTop->fPoint, right->fTop->fPoint)) {
931 if (!left->isLeftOf(right->fTop)) {
932 rewind(activeEdges, current, right->fTop, c);
933 return this->splitEdge(left, right->fTop, activeEdges, current, c);
936 if (!right->isRightOf(left->fTop)) {
937 rewind(activeEdges, current, left->fTop, c);
938 return this->splitEdge(right, left->fTop, activeEdges, current, c);
961 edge->insertBelow(edge->fTop, c);
1077 p = clamp(p, left->fTop->fPoint, left->fBottom->fPoint, c);
1078 p = clamp(p, right->fTop->fPoint, right->fBottom->fPoint, c);
1080 if (coincident(p, left->fTop->fPoint)) {
1081 v = left->fTop;
1084 } else if (coincident(p, right->fTop->fPoint)) {
1085 v = right->fTop;
1090 if (left->fTop->fPartner) {
1250 TESS_LOG(" edge %g -> %g, winding %d\n", e->fTop->fID, e->fBottom->fID, e->fWinding);
1253 TESS_LOG(" edge %g -> %g, winding %d\n", e->fTop->fID, e->fBottom->fID, e->fWinding);
1264 if (left->fTop == right->fTop) {
1267 } else if (c.sweep_lt(left->fTop->fPoint, right->fTop->fPoint)) {
1268 SkASSERT(left->isLeftOf(right->fTop));
1270 SkASSERT(right->isRightOf(left->fTop));
1273 SkASSERT(left->isLeftOf(right->fTop));
1274 SkASSERT(right->isRightOf(left->fTop));
1380 e->fTop->fID, e->fBottom->fID,
1387 e->fTop->fID, e->fBottom->fID,
1458 e->fTop->fID, e->fBottom->fID,