Lines Matching refs:wt
5382 static void debugShowLineIntersection(int pts, const Work& wt, const Work& wn, in debugShowLineIntersection() argument
5387 __FUNCTION__, LINE_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts())); in debugShowLineIntersection()
5391 i.fT[0][0], LINE_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowLineIntersection()
5402 static void debugShowQuadLineIntersection(int pts, const Work& wt, in debugShowQuadLineIntersection() argument
5407 __FUNCTION__, QUAD_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts())); in debugShowQuadLineIntersection()
5411 i.fT[0][0], QUAD_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowQuadLineIntersection()
5422 static void debugShowQuadIntersection(int pts, const Work& wt, in debugShowQuadIntersection() argument
5427 __FUNCTION__, QUAD_DEBUG_DATA(wt.pts()), QUAD_DEBUG_DATA(wn.pts())); in debugShowQuadIntersection()
5431 i.fT[0][0], QUAD_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowQuadIntersection()
5442 static void debugShowCubicLineIntersection(int pts, const Work& wt, in debugShowCubicLineIntersection() argument
5447 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), LINE_DEBUG_DATA(wn.pts())); in debugShowCubicLineIntersection()
5451 i.fT[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowCubicLineIntersection()
5462 static void debugShowCubicQuadIntersection(int pts, const Work& wt, in debugShowCubicQuadIntersection() argument
5467 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), QUAD_DEBUG_DATA(wn.pts())); in debugShowCubicQuadIntersection()
5471 i.fT[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowCubicQuadIntersection()
5482 static void debugShowCubicIntersection(int pts, const Work& wt, in debugShowCubicIntersection() argument
5487 __FUNCTION__, CUBIC_DEBUG_DATA(wt.pts()), CUBIC_DEBUG_DATA(wn.pts())); in debugShowCubicIntersection()
5491 i.fT[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowCubicIntersection()
5502 static void debugShowCubicIntersection(int pts, const Work& wt, const Intersections& i) { in debugShowCubicIntersection() argument
5506 CUBIC_DEBUG_DATA(wt.pts())); in debugShowCubicIntersection()
5510 i.fT[0][0], CUBIC_DEBUG_DATA(wt.pts()), PT_DEBUG_DATA(i, 0)); in debugShowCubicIntersection()
5550 Work wt; in addIntersectTs() local
5551 wt.init(test); in addIntersectTs()
5556 if (test == next && !wn.startAfter(wt)) { in addIntersectTs()
5560 if (!Bounds::Intersects(wt.bounds(), wn.bounds())) { in addIntersectTs()
5566 switch (wt.segmentType()) { in addIntersectTs()
5573 pts = HLineIntersect(wn.pts(), wt.left(), in addIntersectTs()
5574 wt.right(), wt.y(), wt.xFlipped(), ts); in addIntersectTs()
5575 debugShowLineIntersection(pts, wt, wn, ts); in addIntersectTs()
5579 pts = HQuadIntersect(wn.pts(), wt.left(), in addIntersectTs()
5580 wt.right(), wt.y(), wt.xFlipped(), ts); in addIntersectTs()
5584 pts = HCubicIntersect(wn.pts(), wt.left(), in addIntersectTs()
5585 wt.right(), wt.y(), wt.xFlipped(), ts); in addIntersectTs()
5586 debugShowCubicLineIntersection(pts, wn, wt, ts); in addIntersectTs()
5599 pts = VLineIntersect(wn.pts(), wt.top(), in addIntersectTs()
5600 wt.bottom(), wt.x(), wt.yFlipped(), ts); in addIntersectTs()
5601 debugShowLineIntersection(pts, wt, wn, ts); in addIntersectTs()
5605 pts = VQuadIntersect(wn.pts(), wt.top(), in addIntersectTs()
5606 wt.bottom(), wt.x(), wt.yFlipped(), ts); in addIntersectTs()
5610 pts = VCubicIntersect(wn.pts(), wt.top(), in addIntersectTs()
5611 wt.bottom(), wt.x(), wt.yFlipped(), ts); in addIntersectTs()
5612 debugShowCubicLineIntersection(pts, wn, wt, ts); in addIntersectTs()
5622 pts = HLineIntersect(wt.pts(), wn.left(), in addIntersectTs()
5624 debugShowLineIntersection(pts, wt, wn, ts); in addIntersectTs()
5627 pts = VLineIntersect(wt.pts(), wn.top(), in addIntersectTs()
5629 debugShowLineIntersection(pts, wt, wn, ts); in addIntersectTs()
5632 pts = LineIntersect(wt.pts(), wn.pts(), ts); in addIntersectTs()
5633 debugShowLineIntersection(pts, wt, wn, ts); in addIntersectTs()
5638 pts = QuadLineIntersect(wn.pts(), wt.pts(), ts); in addIntersectTs()
5639 debugShowQuadLineIntersection(pts, wn, wt, ts); in addIntersectTs()
5644 pts = CubicLineIntersect(wn.pts(), wt.pts(), ts); in addIntersectTs()
5645 debugShowCubicLineIntersection(pts, wn, wt, ts); in addIntersectTs()
5655 pts = HQuadIntersect(wt.pts(), wn.left(), in addIntersectTs()
5659 pts = VQuadIntersect(wt.pts(), wn.top(), in addIntersectTs()
5663 pts = QuadLineIntersect(wt.pts(), wn.pts(), ts); in addIntersectTs()
5664 debugShowQuadLineIntersection(pts, wt, wn, ts); in addIntersectTs()
5668 pts = QuadIntersect(wt.pts(), wn.pts(), ts); in addIntersectTs()
5669 debugShowQuadIntersection(pts, wt, wn, ts); in addIntersectTs()
5675 pts = CubicQuadIntersect(wn.pts(), wt.pts(), ts); in addIntersectTs()
5676 debugShowCubicQuadIntersection(pts, wn, wt, ts); in addIntersectTs()
5678 wt.promoteToCubic(); in addIntersectTs()
5679 pts = CubicIntersect(wt.cubic(), wn.pts(), ts); in addIntersectTs()
5680 debugShowCubicIntersection(pts, wt, wn, ts); in addIntersectTs()
5691 pts = HCubicIntersect(wt.pts(), wn.left(), in addIntersectTs()
5693 debugShowCubicLineIntersection(pts, wt, wn, ts); in addIntersectTs()
5696 pts = VCubicIntersect(wt.pts(), wn.top(), in addIntersectTs()
5698 debugShowCubicLineIntersection(pts, wt, wn, ts); in addIntersectTs()
5701 pts = CubicLineIntersect(wt.pts(), wn.pts(), ts); in addIntersectTs()
5702 debugShowCubicLineIntersection(pts, wt, wn, ts); in addIntersectTs()
5707 pts = CubicQuadIntersect(wt.pts(), wn.pts(), ts); in addIntersectTs()
5708 debugShowCubicQuadIntersection(pts, wt, wn, ts); in addIntersectTs()
5711 pts = CubicIntersect(wt.pts(), wn.cubic(), ts); in addIntersectTs()
5712 debugShowCubicIntersection(pts, wt, wn, ts); in addIntersectTs()
5717 pts = CubicIntersect(wt.pts(), wn.pts(), ts); in addIntersectTs()
5718 debugShowCubicIntersection(pts, wt, wn, ts); in addIntersectTs()
5740 int testTAt = wt.addUnsortableT(wt, start, point, ts.fT[swap][pt]); in addIntersectTs()
5741 wt.addOtherT(testTAt, ts.fT[swap][pt], testTAt); in addIntersectTs()
5750 && wt.segmentType() <= Work::kLine_Segment) { in addIntersectTs()
5751 wt.addCoincident(wn, ts, swap); in addIntersectTs()
5755 && wt.segmentType() >= Work::kQuad_Segment in addIntersectTs()
5758 wt.addCoincident(wn, ts, swap); in addIntersectTs()
5767 int testTAt = wt.addT(wn, point, ts.fT[swap][pt]); in addIntersectTs()
5768 int nextTAt = wn.addT(wt, point, ts.fT[!swap][pt]); in addIntersectTs()
5769 wt.addOtherT(testTAt, ts.fT[!swap][pt ^ ts.fFlip], nextTAt); in addIntersectTs()
5773 } while (wt.advance()); in addIntersectTs()
5778 Work wt; in addSelfIntersectTs() local
5779 wt.init(test); in addSelfIntersectTs()
5781 if (wt.segmentType() != Work::kCubic_Segment) { in addSelfIntersectTs()
5785 int pts = CubicIntersect(wt.pts(), ts); in addSelfIntersectTs()
5786 debugShowCubicIntersection(pts, wt, ts); in addSelfIntersectTs()
5794 int testTAt = wt.addSelfT(wt, point, ts.fT[0][0]); in addSelfIntersectTs()
5795 int nextTAt = wt.addT(wt, point, ts.fT[1][0]); in addSelfIntersectTs()
5796 wt.addOtherT(testTAt, ts.fT[1][0], nextTAt); in addSelfIntersectTs()
5797 wt.addOtherT(nextTAt, ts.fT[0][0], testTAt); in addSelfIntersectTs()
5798 } while (wt.advance()); in addSelfIntersectTs()