Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: tools/pathops_visualizer.htm

Issue 2338323002: quad and conic do not intersect (Closed)
Patch Set: turn off under development Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/pathops_sorter.htm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <div height="0" hidden="true"> 3 <div height="0" hidden="true">
4 4
5 <div id="tiger8b_h_1"> 5 <div id="tiger8b_h_1">
6 seg=1 {{{494.348663f, 224.583771f}, {494.375946f, 224.681992f}}} 6 seg=1 {{{{494.348663f, 224.583771f}, {494.365143f, 224.633194f}, {494.376404f, 2 24.684067f}}}, 0.998645842f}
7 seg=2 {{{494.375946f, 224.681992f}, {494.376221f, 224.683273f}}} 7 seg=2 {{{494.376404f, 224.684067f}, {492.527069f, 224.218475f}, {492.952789f, 22 4.005585f}}}
8 seg=3 {{{494.376221f, 224.683273f}, {494.375397f, 224.67955f}, {494.376495f, 224 .683868f}}} 8 seg=3 {{{492.952789f, 224.005585f}, {494.375336f, 224.679337f}, {494.376038f, 22 4.682449f}}}
9 seg=4 {{{494.376495f, 224.683868f}, {494.348663f, 224.583771f}}} 9 seg=4 {{{494.376038f, 224.682449f}, {494.37619f, 224.68309f}}}
10 debugShowLineIntersection wtTs[0]=1 {{{494.348663,224.583771}, {494.375946,224.6 81992}}} {{494.375946,224.681992}} wnTs[0]=0 {{{494.375946,224.681992}, {494.376 221,224.683273}}} 10 seg=5 {{{494.37619f, 224.68309f}, {494.634338f, 225.414886f}, {494.895874f, 225. 840698f}}}
11 debugShowQuadLineIntersection wtTs[0]=0.228424525 {{{494.376221,224.683273}, {49 4.375397,224.67955}, {494.376495,224.683868}}} {{494.375946,224.681992}} wnTs[0] =1 {{{494.348663,224.583771}, {494.375946,224.681992}}} 11 seg=6 {{{494.895874f, 225.840698f}, {494.348663f, 224.583771f}}}
12 SkOpSegment::addT insert t=0.228424525 segID=3 spanID=9 12 debugShowConicQuadIntersection wtTs[0]=1 {{{{494.348663,224.583771}, {494.365143 ,224.633194}, {494.376404,224.684067}}}, 0.998645842} {{494.376404,224.684067}} wnTs[0]=0 {{{494.376404,224.684067}, {492.527069,224.218475}, {492.952789,224.00 5585}}}
13 debugShowLineIntersection wtTs[0]=0 {{{494.348663,224.583771}, {494.375946,224.6 81992}}} {{494.348663,224.583771}} wtTs[1]=1 {{494.375946,224.681992}} wnTs[0]=1 {{{494.376495,224.683868}, {494.348663,224.583771}}} wnTs[1]=0.0188208188 13 id=1 1=(0,1) [4] id=2 4=(0.5,1) [1]
14 SkOpSegment::addT insert t=0.0188208188 segID=4 spanID=10 14 id=1 1=(0,1) [6] id=2 6=(0.75,1) [1]
15 debugShowQuadLineIntersection wtTs[0]=0 {{{494.376221,224.683273}, {494.375397,2 24.67955}, {494.376495,224.683868}}} {{494.376221,224.683273}} wtTs[1]=0.2284480 08 {{494.375946,224.681992}} wnTs[0]=1 {{{494.375946,224.681992}, {494.376221,22 4.683273}}} wnTs[1]=0 15 id=1 3=(0.5,1) [6] id=2 6=(0.75,1) [3]
16 debugShowLineIntersection wtTs[0]=0 {{{494.375946,224.681992}, {494.376221,224.6 83273}}} {{494.375946,224.681992}} wtTs[1]=1 {{494.376221,224.683273}} wnTs[0]=0 .0188208 {{{494.376495,224.683868}, {494.348663,224.583771}}} wnTs[1]=0.00622666 983 16 id=1 3=(0.5,1) [8] id=2 8=(0.875,1) [3]
17 SkOpSegment::addT insert t=0.00622666983 segID=4 spanID=11 17 id=1 5=(0.75,1) [8] id=2 8=(0.875,1) [5]
18 debugShowQuadLineIntersection wtTs[0]=0 {{{494.376221,224.683273}, {494.375397,2 24.67955}, {494.376495,224.683868}}} {{494.376221,224.683273}} wtTs[1]=1 {{494.3 76495,224.683868}} wnTs[0]=0.00622667 {{{494.376495,224.683868}, {494.348663,224 .583771}}} wnTs[1]=0 18 id=1 7=(0.875,1) [8] id=2 8=(0.875,1) [7]
19 c:\puregit\src\pathops\skpathopsdebug.cpp:988: fatal error: "assert((t - fDebugB aseMin > 0) == (fDebugLastMin - fDebugBaseMin > 0))" 19 id=1 7=(0.875,1) [10] id=2 10=(0.9375,1) [7]
20 pathops_unittest.exe has triggered a breakpoint. 20 id=1 (empty) id=2 (empty)
21 21 debugShowConicQuadIntersection no intersect {{{{494.348663,224.583771}, {494.365 143,224.633194}, {494.376404,224.684067}}}, 0.998645842} {{{492.952789,224.00558 5}, {494.375336,224.679337}, {494.376038,224.682449}}}
22 debugShowConicLineIntersection wtTs[0]=0.988457533 {{{{494.348663,224.583771}, { 494.365143,224.633194}, {494.376404,224.684067}}}, 0.998645842} {{494.376038,224 .682449}} wnTs[0]=0 {{{494.376038,224.682449}, {494.37619,224.68309}}}
23 SkOpSegment::addT insert t=0.988457533 segID=1 spanID=13
24 debugShowConicQuadIntersection no intersect {{{{494.348663,224.583771}, {494.365 143,224.633194}, {494.376404,224.684067}}}, 0.998645842} {{{494.37619,224.68309} , {494.634338,225.414886}, {494.895874,225.840698}}}
25 debugShowConicLineIntersection wtTs[0]=0 {{{{494.348663,224.583771}, {494.365143 ,224.633194}, {494.376404,224.684067}}}, 0.998645842} {{494.348663,224.583771}} wnTs[0]=1 {{{494.895874,225.840698}, {494.348663,224.583771}}}
26 debugShowQuadIntersection wtTs[0]=1 {{{494.376404,224.684067}, {492.527069,224.2 18475}, {492.952789,224.005585}}} {{492.952789,224.005585}} wnTs[0]=0 {{{492.952 789,224.005585}, {494.375336,224.679337}, {494.376038,224.682449}}}
27 debugShowQuadLineIntersection no intersect {{{494.376404,224.684067}, {492.52706 9,224.218475}, {492.952789,224.005585}}} {{{494.376038,224.682449}, {494.37619,2 24.68309}}}
28 id=1 1=(0,0.5) [2] id=2 2=(0,1) [1]
29 id=1 1=(0,0.25) [2] id=2 2=(0,1) [1]
30 id=1 (empty) id=2 (empty)
31 debugShowQuadIntersection no intersect {{{494.376404,224.684067}, {492.527069,22 4.218475}, {492.952789,224.005585}}} {{{494.37619,224.68309}, {494.634338,225.41 4886}, {494.895874,225.840698}}}
32 debugShowQuadLineIntersection no intersect {{{494.376404,224.684067}, {492.52706 9,224.218475}, {492.952789,224.005585}}} {{{494.895874,225.840698}, {494.348663, 224.583771}}}
33 debugShowQuadLineIntersection wtTs[0]=1 {{{492.952789,224.005585}, {494.375336,2 24.679337}, {494.376038,224.682449}}} {{494.376038,224.682449}} wnTs[0]=0 {{{494 .376038,224.682449}, {494.37619,224.68309}}}
34 debugShowQuadLineIntersection no intersect {{{492.952789,224.005585}, {494.37533 6,224.679337}, {494.376038,224.682449}}} {{{494.895874,225.840698}, {494.348663, 224.583771}}}
35 debugShowQuadLineIntersection wtTs[0]=0 {{{494.37619,224.68309}, {494.634338,225 .414886}, {494.895874,225.840698}}} {{494.37619,224.68309}} wnTs[0]=1 {{{494.376 038,224.682449}, {494.37619,224.68309}}}
36 debugShowLineIntersection no intersect {{{494.376038,224.682449}, {494.37619,224 .68309}}} {{{494.895874,225.840698}, {494.348663,224.583771}}}
37 debugShowQuadLineIntersection wtTs[0]=1 {{{494.37619,224.68309}, {494.634338,225 .414886}, {494.895874,225.840698}}} {{494.895874,225.840698}} wnTs[0]=0 {{{494.8 95874,225.840698}, {494.348663,224.583771}}}
38 SkOpSegment::markDone id=4 (494.376038,224.682449 494.37619,224.68309) t=0 [7] ( 494.376038,224.682449) tEnd=1 newWindSum=? newOppSum=? oppSum=? windSum=? windVa lue=0 oppValue=0
39 SkOpSegment::sortAngles [1] tStart=0.988457533 [13]
40 SkOpAngle::after [1/1] 9/9 tStart=0.988457533 tEnd=0 < [3/3] 13/13 tStart=1 tEnd =0 < [1/2] 25/25 tStart=0.988457533 tEnd=1 T 4
41 SkOpAngle::afterPart {{{{494.376038,224.682449}, {494.364861,224.63218}, {494.34 8663,224.583771}}}, 0.998676896} id=1
42 SkOpAngle::afterPart {{{494.376038,224.682449}, {492.952789,224.005585}, {492.95 2789,224.005585}}} id=3
43 SkOpAngle::afterPart {{{{494.376038,224.682449}, {494.376312,224.683624}, {494.3 76404,224.684067}}}, 0.999999821} id=1
44 SkOpSegment::sortAngles [3] tStart=1 [6]
45 SkOpSegment::debugShowActiveSpans id=1 (494.348663,224.583771 494.364952,224.632 623 494.376129,224.682892 0.998676896f) t=0 tEnd=0.988457533 windSum=? windValue =1
46 SkOpSegment::debugShowActiveSpans id=1 (494.376129,224.682892 494.376274,224.683 48 494.376404,224.684067 0.999999821f) t=0.988457533 tEnd=1 windSum=? windValue= 1
47 SkOpSegment::debugShowActiveSpans id=2 (494.376404,224.684067 492.527069,224.218 475 492.952789,224.005585) t=0 tEnd=1 windSum=? windValue=1
48 SkOpSegment::debugShowActiveSpans id=3 (492.952789,224.005585 494.375336,224.679 337 494.376038,224.682449) t=0 tEnd=1 windSum=? windValue=1
49 SkOpSegment::debugShowActiveSpans id=5 (494.37619,224.68309 494.634338,225.41488 6 494.895874,225.840698) t=0 tEnd=1 windSum=? windValue=1
50 SkOpSegment::debugShowActiveSpans id=6 (494.895874,225.840698 494.348663,224.583 771) t=0 tEnd=1 windSum=? windValue=1
51 SkOpSpan::sortableTop dir=kLeft seg=1 t=0.494228767 pt=(494.363678,224.63298)
52 SkOpSpan::sortableTop [0] valid=1 operand=0 span=3 ccw=1 seg=2 {{{494.376404f, 2 24.684067f}, {492.527069f, 224.218475f}, {492.952789f, 224.005585f}}} t=0.055703 9225 pt=(494.177429,224.63298) slope=(-1.72260523,-0.451515005)
53 SkOpSpan::sortableTop [1] valid=1 operand=0 span=5 ccw=0 seg=3 {{{492.952789f, 2 24.005585f}, {494.375336f, 224.679337f}, {494.376038f, 224.682449f}}} t=0.733006 652 pt=(494.274292,224.63298) slope=(0.380324923,0.182168955)
54 SkOpSpan::sortableTop [2] valid=1 operand=0 span=1 ccw=0 seg=1 {{{{494.348663f, 224.583771f}, {494.365143f, 224.633194f}, {494.376404f, 224.684067f}}}, 0.998645 842f} t=0.494228767 pt=(494.363678,224.63298) slope=(0.0138909232,0.050105697)
55 SkOpSegment::markWinding id=2 (494.376404,224.684067 492.527069,224.218475 492.9 52789,224.005585) t=0 [3] (494.376404,224.684067) tEnd=1 newWindSum=-1 newOppSum =0 oppSum=0 windSum=-1 windValue=1 oppValue=0
56 SkOpSegment::markWinding id=3 (492.952789,224.005585 494.375336,224.679337 494.3 76038,224.682449) t=0 [5] (492.952789,224.005585) tEnd=1 newWindSum=-1 newOppSum =0 oppSum=? windSum=? windValue=1 oppValue=0
57 SkOpSegment::markWinding id=2 (494.376404,224.684067 492.527069,224.218475 492.9 52789,224.005585) t=0 [3] (494.376404,224.684067) tEnd=1 newWindSum=-1 newOppSum =0 oppSum=0 windSum=-1 windValue=1 oppValue=0
58 SkOpSegment::markWinding id=1 (494.348663,224.583771 494.365143,224.633194 494.3 76404,224.684067) t=0.988457533 [13] (494.376129,224.682892) tEnd=1 newWindSum=- 1 newOppSum=0 oppSum=? windSum=? windValue=1 oppValue=0
59 SkOpSegment::markWinding id=1 (494.348663,224.583771 494.365143,224.633194 494.3 76404,224.684067) t=0 [1] (494.348663,224.583771) tEnd=0.988457533 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=1 oppValue=0
60 SkOpSegment::markWinding id=1 (494.348663,224.583771 494.365143,224.633194 494.3 76404,224.684067) t=0 [1] (494.348663,224.583771) tEnd=0.988457533 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=1 oppValue=0
61 SkOpSegment::markWinding id=6 (494.895874,225.840698 494.348663,224.583771) t=0 [11] (494.895874,225.840698) tEnd=1 newWindSum=1 newOppSum=0 oppSum=? windSum=? windValue=1 oppValue=0
62 SkOpSegment::markWinding id=5 (494.37619,224.68309 494.634338,225.414886 494.895 874,225.840698) t=0 [9] (494.37619,224.68309) tEnd=1 newWindSum=1 newOppSum=0 op pSum=? windSum=? windValue=1 oppValue=0
63 SkOpSegment::findNextWinding simple
64 SkOpSegment::markDone id=1 (494.348663,224.583771 494.365143,224.633194 494.3764 04,224.684067) t=0 [1] (494.348663,224.583771) tEnd=0.988457533 newWindSum=1 new OppSum=0 oppSum=0 windSum=1 windValue=1 oppValue=0
65 bridgeWinding current id=1 from=(494.376129,224.682892) to=(494.348663,224.58377 1)
66 path.moveTo(494.376129,224.682892);
67 path.conicTo(494.36496,224.632629, 494.348663,224.583771, 0.998676896);
68 SkOpSegment::findNextWinding simple
69 SkOpSegment::markDone id=6 (494.895874,225.840698 494.348663,224.583771) t=0 [11 ] (494.895874,225.840698) tEnd=1 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 win dValue=1 oppValue=0
70 bridgeWinding current id=6 from=(494.348663,224.583771) to=(494.895874,225.84069 8)
71 SkOpSegment::markDone id=5 (494.37619,224.68309 494.634338,225.414886 494.895874 ,225.840698) t=0 [9] (494.37619,224.68309) tEnd=1 newWindSum=1 newOppSum=0 oppSu m=0 windSum=1 windValue=1 oppValue=0
72 path.lineTo(494.895874,225.840698);
73 SkOpSegment::debugShowActiveSpans id=1 (494.376129,224.682892 494.376274,224.683 48 494.376404,224.684067 0.999999821f) t=0.988457533 tEnd=1 windSum=-1 oppSum=0 windValue=1 oppValue=0
74 SkOpSegment::debugShowActiveSpans id=2 (494.376404,224.684067 492.527069,224.218 475 492.952789,224.005585) t=0 tEnd=1 windSum=-1 oppSum=0 windValue=1 oppValue=0
75 SkOpSegment::debugShowActiveSpans id=3 (492.952789,224.005585 494.375336,224.679 337 494.376038,224.682449) t=0 tEnd=1 windSum=-1 oppSum=0 windValue=1 oppValue=0
76 SkOpSegment::findNextWinding
77 SkOpAngle::dumpOne [1/2] next=1/1 sect=25/25 s=0.988457533 [13] e=1 [2] sgn=-1 windVal=1 windSum=-1 oppVal=0 oppSum=0
78 SkOpAngle::dumpOne [1/1] next=3/3 sect=9/9 s=0.988457533 [13] e=0 [1] sgn=1 win dVal=1 windSum=1 oppVal=0 oppSum=0 done
79 SkOpAngle::dumpOne [3/3] next=1/2 sect=13/13 s=1 [6] e=0 [5] sgn=1 windVal=1 wi ndSum=-1 oppVal=0 oppSum=0
80 SkOpSegment::markDone id=3 (492.952789,224.005585 494.375336,224.679337 494.3760 38,224.682449) t=0 [5] (492.952789,224.005585) tEnd=1 newWindSum=-1 newOppSum=0 oppSum=0 windSum=-1 windValue=1 oppValue=0
81 SkOpSegment::markDone id=2 (494.376404,224.684067 492.527069,224.218475 492.9527 89,224.005585) t=0 [3] (494.376404,224.684067) tEnd=1 newWindSum=-1 newOppSum=0 oppSum=0 windSum=-1 windValue=1 oppValue=0
82 SkOpSegment::markDone id=1 (494.348663,224.583771 494.365143,224.633194 494.3764 04,224.684067) t=0.988457533 [13] (494.376129,224.682892) tEnd=1 newWindSum=-1 n ewOppSum=0 oppSum=0 windSum=-1 windValue=1 oppValue=0
83 SkOpSegment::findNextWinding from:[1] to:[1] start=13259432 end=18937312
84 bridgeWinding current id=1 from=(494.376404,224.684067) to=(494.376129,224.68289 2)
85 path.moveTo(494.376404,224.684067);
86 path.lineTo(494.376129,224.682892);
22 </div> 87 </div>
23 88
24 </div> 89 </div>
25 90
26 <script type="text/javascript"> 91 <script type="text/javascript">
27 92
28 var testDivs = [ 93 var testDivs = [
29 tiger8b_h_1, 94 tiger8b_h_1,
30 ]; 95 ];
31 96
(...skipping 3864 matching lines...) Expand 10 before | Expand all | Expand 10 after
3896 </script> 3961 </script>
3897 </head> 3962 </head>
3898 3963
3899 <body onLoad="start();"> 3964 <body onLoad="start();">
3900 <canvas id="canvas" width="750" height="500" 3965 <canvas id="canvas" width="750" height="500"
3901 onmousemove="handleMouseOver()" 3966 onmousemove="handleMouseOver()"
3902 onclick="handleMouseClick()" 3967 onclick="handleMouseClick()"
3903 ></canvas > 3968 ></canvas >
3904 </body> 3969 </body>
3905 </html> 3970 </html>
OLDNEW
« no previous file with comments | « tools/pathops_sorter.htm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698