2014-06-17 12:15:38 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<div height="0" hidden="true">
|
2016-12-08 19:36:32 +00:00
|
|
|
|
|
|
|
Skia UnitTests: --match Simplify$ --resourcePath resources\ -v -V SK_DEBUG
|
|
|
|
|
|
|
|
Skia UnitTests: --match Simplify$ --resourcePath resources\ -v -V SK_DEBUG
|
|
|
|
|
|
|
|
<div id="joel_2">
|
|
|
|
SkDCubic::ComplexBreak
|
|
|
|
{{{403.282989501953125, 497.196990966796875}, {403.42401123046875, 497.243988037109375}, {391.110992431640625, 495.555999755859375}, {391.110992431640625, 495.555999755859375}}},
|
|
|
|
inflectionsTs[0]=1 {{{403.42401123046875, 497.243988037109375}, {378.7979736328125, 493.868011474609375}}},
|
|
|
|
maxCurvature[0]=0.502921076 {{{415.5605946972181641, 498.8838844379989155}, {378.8318672594865006, 493.8897667505245295}}},
|
|
|
|
maxCurvature[1]=0.00584573653 {{{402.8611256294230998, 497.0566467700529643}, {403.7072560005168498, 497.3386291919279643}}},
|
|
|
|
maxCurvature[2]=1 {{{-235.2805739523428201, 408.7003728645441925}, {1017.50255881562407, 582.4116266471745575}}},
|
|
|
|
SkDCubic::ComplexBreak
|
|
|
|
{{{378.938995361328125, 485.69500732421875}, {378.790985107421875, 483.57000732421875}, {383.063995361328125, 485.25}, {384.87701416015625, 485.842987060546875}}},
|
|
|
|
inflectionsTs[0]=0.902182922 {{{377.5954936265454194, 483.3658459632096083}, {390.9661239382471081, 487.9188557410542444}}},
|
|
|
|
maxCurvature[0]=0.147284654 {{{376.1242685781696196, 488.3189209317107498}, {382.1543795482792234, 481.657199359124661}}},
|
|
|
|
maxCurvature[1]=0.665451111 {{{382.9330766387548124, 491.4410294434536581}, {382.0450151153173124, 478.6910294434536581}}},
|
|
|
|
SkDCubic::ComplexBreak
|
|
|
|
{{{378.040008544921875, 503.029998779296875}, {378.040008544921875, 503.029998779296875}, {391.415008544921875, 505.795989990234375}, {391.39898681640625, 505.865997314453125}}},
|
|
|
|
inflectionsTs[0]=0 {{{364.665008544921875, 500.264007568359375}, {391.415008544921875, 505.795989990234375}}},
|
|
|
|
maxCurvature[0]=0.999930835 {{{391.4414983461760471, 505.6548420424298342}, {391.3564815511855954, 506.0771234565896179}}},
|
|
|
|
maxCurvature[1]=0.49997578 {{{384.7250201963161089, 504.4216435381547967}, {384.7250201963161089, 504.4216435381547967}}},
|
|
|
|
maxCurvature[2]=0 {{{378.040008544921875, 503.029998779296875}, {378.040008544921875, 503.029998779296875}}},
|
|
|
|
seg=1 {{{403.28299f, 497.196991f}, {403.284241f, 497.197388f}, {403.28418f, 497.197632f}}}
|
|
|
|
seg=2 {{{403.28418f, 497.197632f}, {403.280487f, 497.224304f}, {391.110992f, 495.556f}, {391.110992f, 495.556f}}}
|
|
|
|
seg=3 {{{403.28299f, 497.196991f}, {403.424011f, 497.243988f}, {391.110992f, 495.556f}, {391.110992f, 495.556f}}}
|
|
|
|
seg=4 {{{391.110992f, 495.556f}, {392.290985f, 493.165009f}}}
|
|
|
|
seg=5 {{{392.290985f, 493.165009f}, {392.290985f, 493.165009f}, {388.993988f, 492.056f}, {386.649994f, 491.821014f}}}
|
|
|
|
seg=6 {{{386.649994f, 491.821014f}, {384.243988f, 491.45401f}, {381.602997f, 490.773987f}, {381.602997f, 490.773987f}}}
|
|
|
|
seg=7 {{{381.602997f, 490.773987f}, {383.391998f, 488.382996f}}}
|
|
|
|
seg=8 {{{383.391998f, 488.382996f}, {383.391998f, 488.382996f}, {379.118988f, 487.453003f}, {378.938995f, 485.695007f}}}
|
|
|
|
seg=9 {{{378.938995f, 485.695007f}, {378.80545f, 483.777863f}, {382.270355f, 484.957733f}, {384.280823f, 485.642365f}}}
|
|
|
|
seg=10 {{{384.280823f, 485.642365f}, {384.498779f, 485.716583f}, {384.699677f, 485.784973f}, {384.877014f, 485.842987f}}}
|
|
|
|
seg=11 {{{378.938995f, 485.695007f}, {378.790985f, 483.570007f}, {383.063995f, 485.25f}, {384.877014f, 485.842987f}}}
|
|
|
|
seg=12 {{{384.877014f, 485.842987f}, {387.696991f, 484.351013f}}}
|
|
|
|
seg=13 {{{387.696991f, 484.351013f}, {382.752014f, 483.834991f}, {376.595001f, 482.123993f}, {374.477997f, 480.312012f}}}
|
|
|
|
seg=14 {{{374.477997f, 480.312012f}, {356.220001f, 496.303986f}}}
|
|
|
|
seg=15 {{{356.220001f, 496.303986f}, {368.095001f, 510.498993f}}}
|
|
|
|
seg=16 {{{368.095001f, 510.498993f}, {373.884003f, 510.201996f}}}
|
|
|
|
seg=17 {{{373.884003f, 510.201996f}, {374.477997f, 509.006989f}}}
|
|
|
|
seg=18 {{{374.477997f, 509.006989f}, {370.915985f, 506.912994f}}}
|
|
|
|
seg=19 {{{370.915985f, 506.912994f}, {371.807007f, 506.022003f}}}
|
|
|
|
seg=20 {{{371.807007f, 506.022003f}, {371.807007f, 506.022003f}, {374.807007f, 507.279999f}, {377.752014f, 507.514008f}}}
|
|
|
|
seg=21 {{{377.752014f, 507.514008f}, {380.752014f, 507.881012f}, {387.399994f, 508.108002f}, {387.399994f, 508.108002f}}}
|
|
|
|
seg=22 {{{387.399994f, 508.108002f}, {388.884003f, 506.764008f}}}
|
|
|
|
seg=23 {{{388.884003f, 506.764008f}, {388.884003f, 506.764008f}, {378.345001f, 504.997986f}, {378.345001f, 504.819f}}}
|
|
|
|
seg=24 {{{378.345001f, 504.819f}, {378.040009f, 503.029999f}}}
|
|
|
|
seg=25 {{{378.040009f, 503.029999f}, {378.040009f, 503.029999f}, {391.415009f, 505.79599f}, {391.398987f, 505.865997f}}}
|
|
|
|
seg=26 {{{391.398987f, 505.865997f}, {386.062988f, 502.131989f}}}
|
|
|
|
seg=27 {{{386.062988f, 502.131989f}, {387.546997f, 500.334991f}}}
|
|
|
|
seg=28 {{{387.546997f, 500.334991f}, {398.375f, 501.976013f}}}
|
|
|
|
seg=29 {{{398.375f, 501.976013f}, {403.28299f, 497.196991f}}}
|
|
|
|
debugShowCubicQuadIntersection wtTs[0]=0 {{{403.28418,497.197632}, {403.280487,497.224304}, {391.110992,495.556}, {391.110992,495.556}}} {{403.28418,497.197632}} wnTs[0]=1 {{{403.28299,497.196991}, {403.284241,497.197388}, {403.28418,497.197632}}}
|
|
|
|
debugShowCubicQuadIntersection wtTs[0]=0 {{{403.28299,497.196991}, {403.424011,497.243988}, {391.110992,495.556}, {391.110992,495.556}}} {{403.28299,497.196991}} wtTs[1]=0.005859375 {{403.28418,497.197632}} wnTs[0]=0 {{{403.28299,497.196991}, {403.284241,497.197388}, {403.28418,497.197632}}} wnTs[1]=0.985625909
|
|
|
|
SkOpSegment::addT insert t=0.005859375 segID=3 spanID=59
|
|
|
|
debugShowQuadLineIntersection wtTs[0]=0 {{{403.28299,497.196991}, {403.284241,497.197388}, {403.28418,497.197632}}} {{403.28299,497.196991}} wnTs[0]=1 {{{398.375,501.976013}, {403.28299,497.196991}}}
|
|
|
|
debugShowCubicIntersection wtTs[0]=0 {{{403.28418,497.197632}, {403.280487,497.224304}, {391.110992,495.556}, {391.110992,495.556}}} {{403.28418,497.197632}} wtTs[1]=1 {{391.110992,495.556}} wnTs[0]=0.00578961 {{{403.28299,497.196991}, {403.424011,497.243988}, {391.110992,495.556}, {391.110992,495.556}}} wnTs[1]=1
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{403.28418,497.197632}, {403.280487,497.224304}, {391.110992,495.556}, {391.110992,495.556}}} {{391.110992,495.556}} wnTs[0]=0 {{{391.110992,495.556}, {392.290985,493.165009}}}
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=0.00758417328 {{{403.28418,497.197632}, {403.280487,497.224304}, {391.110992,495.556}, {391.110992,495.556}}} {{403.282013,497.197937}} wnTs[0]=0.9998 {{{398.375,501.976013}, {403.28299,497.196991}}}
|
|
|
|
SkOpSegment::addT insert t=0.00758417328 segID=2 spanID=60
|
|
|
|
SkOpSegment::addT insert t=0.999799809 segID=29 spanID=61
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{403.28299,497.196991}, {403.424011,497.243988}, {391.110992,495.556}, {391.110992,495.556}}} {{391.110992,495.556}} wnTs[0]=0 {{{391.110992,495.556}, {392.290985,493.165009}}}
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{403.28299,497.196991}, {403.424011,497.243988}, {391.110992,495.556}, {391.110992,495.556}}} {{403.28299,497.196991}} wtTs[1]=0.0134156992 {{403.282013,497.197968}} wnTs[0]=1 {{{398.375,501.976013}, {403.28299,497.196991}}} wnTs[1]=0.999798501
|
|
|
|
SkOpSegment::addT insert t=0.0134156992 segID=3 spanID=62
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{392.290985,493.165009}, {392.290985,493.165009}, {388.993988,492.056}, {386.649994,491.821014}}} {{392.290985,493.165009}} wnTs[0]=1 {{{391.110992,495.556}, {392.290985,493.165009}}}
|
|
|
|
debugShowCubicIntersection wtTs[0]=1 {{{392.290985,493.165009}, {392.290985,493.165009}, {388.993988,492.056}, {386.649994,491.821014}}} {{386.649994,491.821014}} wnTs[0]=0 {{{386.649994,491.821014}, {384.243988,491.45401}, {381.602997,490.773987}, {381.602997,490.773987}}}
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{386.649994,491.821014}, {384.243988,491.45401}, {381.602997,490.773987}, {381.602997,490.773987}}} {{381.602997,490.773987}} wnTs[0]=0 {{{381.602997,490.773987}, {383.391998,488.382996}}}
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{383.391998,488.382996}, {383.391998,488.382996}, {379.118988,487.453003}, {378.938995,485.695007}}} {{383.391998,488.382996}} wnTs[0]=1 {{{381.602997,490.773987}, {383.391998,488.382996}}}
|
|
|
|
debugShowCubicIntersection wtTs[0]=1 {{{383.391998,488.382996}, {383.391998,488.382996}, {379.118988,487.453003}, {378.938995,485.695007}}} {{378.938995,485.695007}} wnTs[0]=0 {{{378.938995,485.695007}, {378.80545,483.777863}, {382.270355,484.957733}, {384.280823,485.642365}}}
|
|
|
|
debugShowCubicIntersection wtTs[0]=1 {{{383.391998,488.382996}, {383.391998,488.382996}, {379.118988,487.453003}, {378.938995,485.695007}}} {{378.938995,485.695007}} wnTs[0]=0 {{{378.938995,485.695007}, {378.790985,483.570007}, {383.063995,485.25}, {384.877014,485.842987}}}
|
|
|
|
debugShowCubicIntersection wtTs[0]=1 {{{378.938995,485.695007}, {378.80545,483.777863}, {382.270355,484.957733}, {384.280823,485.642365}}} {{384.280823,485.642365}} wnTs[0]=0 {{{384.280823,485.642365}, {384.498779,485.716583}, {384.699677,485.784973}, {384.877014,485.842987}}}
|
|
|
|
debugShowCubicIntersection wtTs[0]=0 {{{378.938995,485.695007}, {378.80545,483.777863}, {382.270355,484.957733}, {384.280823,485.642365}}} {{378.938995,485.695007}} wtTs[1]=1 {{384.280823,485.642365}} wnTs[0]=0 {{{378.938995,485.695007}, {378.790985,483.570007}, {383.063995,485.25}, {384.877014,485.842987}}} wnTs[1]=0.902185418
|
|
|
|
SkOpSegment::addT insert t=0.902185418 segID=11 spanID=63
|
|
|
|
SkTSect<struct SkDCubic,struct SkDCubic>::addForPerp priorSpan=-1 t=0.926637941 opp=-1
|
|
|
|
-1=(0,0.929688) []
|
|
|
|
SkTSect<struct SkDCubic,struct SkDCubic>::addForPerp addBounded span=-1 opp=-1
|
|
|
|
-1=(0.9375,0.945313) [-1]
|
|
|
|
SkTSect<struct SkDCubic,struct SkDCubic>::addForPerp addBounded span=-1 opp=-1
|
|
|
|
-1=(0.9375,0.945313) [*-1*,*-1*]
|
|
|
|
SkTSect<struct SkDCubic,struct SkDCubic>::addForPerp addBounded span=-1 opp=-1
|
|
|
|
debugShowCubicIntersection wtTs[0]=0.25 {{{384.280823,485.642365}, {384.498779,485.716583}, {384.699677,485.784973}, {384.877014,485.842987}}} {{384.440979,485.696869}} wtTs[1]=1 {{384.877014,485.842987}} wnTs[0]=0.926638 {{{378.938995,485.695007}, {378.790985,483.570007}, {383.063995,485.25}, {384.877014,485.842987}}} wnTs[1]=1
|
|
|
|
SkOpSegment::addT insert t=0.25 segID=10 spanID=64
|
|
|
|
SkOpSegment::addT insert t=0.926637941 segID=11 spanID=65
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{384.280823,485.642365}, {384.498779,485.716583}, {384.699677,485.784973}, {384.877014,485.842987}}} {{384.877014,485.842987}} wnTs[0]=0 {{{384.877014,485.842987}, {387.696991,484.351013}}}
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{378.938995,485.695007}, {378.790985,483.570007}, {383.063995,485.25}, {384.877014,485.842987}}} {{384.877014,485.842987}} wnTs[0]=0 {{{384.877014,485.842987}, {387.696991,484.351013}}}
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{387.696991,484.351013}, {382.752014,483.834991}, {376.595001,482.123993}, {374.477997,480.312012}}} {{387.696991,484.351013}} wnTs[0]=1 {{{384.877014,485.842987}, {387.696991,484.351013}}}
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{387.696991,484.351013}, {382.752014,483.834991}, {376.595001,482.123993}, {374.477997,480.312012}}} {{374.477997,480.312012}} wnTs[0]=0 {{{374.477997,480.312012}, {356.220001,496.303986}}}
|
|
|
|
debugShowLineIntersection wtTs[0]=1 {{{374.477997,480.312012}, {356.220001,496.303986}}} {{356.220001,496.303986}} wnTs[0]=0 {{{356.220001,496.303986}, {368.095001,510.498993}}}
|
|
|
|
debugShowLineIntersection wtTs[0]=1 {{{356.220001,496.303986}, {368.095001,510.498993}}} {{368.095001,510.498993}} wnTs[0]=0 {{{368.095001,510.498993}, {373.884003,510.201996}}}
|
|
|
|
debugShowLineIntersection wtTs[0]=1 {{{368.095001,510.498993}, {373.884003,510.201996}}} {{373.884003,510.201996}} wnTs[0]=0 {{{373.884003,510.201996}, {374.477997,509.006989}}}
|
|
|
|
debugShowLineIntersection wtTs[0]=1 {{{373.884003,510.201996}, {374.477997,509.006989}}} {{374.477997,509.006989}} wnTs[0]=0 {{{374.477997,509.006989}, {370.915985,506.912994}}}
|
|
|
|
debugShowLineIntersection wtTs[0]=1 {{{374.477997,509.006989}, {370.915985,506.912994}}} {{370.915985,506.912994}} wnTs[0]=0 {{{370.915985,506.912994}, {371.807007,506.022003}}}
|
|
|
|
debugShowCubicLineIntersection no intersect {{{371.807007,506.022003}, {371.807007,506.022003}, {374.807007,507.279999}, {377.752014,507.514008}}} {{{374.477997,509.006989}, {370.915985,506.912994}}}
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{371.807007,506.022003}, {371.807007,506.022003}, {374.807007,507.279999}, {377.752014,507.514008}}} {{371.807007,506.022003}} wnTs[0]=1 {{{370.915985,506.912994}, {371.807007,506.022003}}}
|
|
|
|
debugShowCubicIntersection wtTs[0]=1 {{{371.807007,506.022003}, {371.807007,506.022003}, {374.807007,507.279999}, {377.752014,507.514008}}} {{377.752014,507.514008}} wnTs[0]=0 {{{377.752014,507.514008}, {380.752014,507.881012}, {387.399994,508.108002}, {387.399994,508.108002}}}
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{377.752014,507.514008}, {380.752014,507.881012}, {387.399994,508.108002}, {387.399994,508.108002}}} {{387.399994,508.108002}} wnTs[0]=0 {{{387.399994,508.108002}, {388.884003,506.764008}}}
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{388.884003,506.764008}, {388.884003,506.764008}, {378.345001,504.997986}, {378.345001,504.819}}} {{388.884003,506.764008}} wnTs[0]=1 {{{387.399994,508.108002}, {388.884003,506.764008}}}
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{388.884003,506.764008}, {388.884003,506.764008}, {378.345001,504.997986}, {378.345001,504.819}}} {{378.345001,504.819}} wnTs[0]=0 {{{378.345001,504.819}, {378.040009,503.029999}}}
|
|
|
|
debugShowCubicIntersection no intersect {{{388.884003,506.764008}, {388.884003,506.764008}, {378.345001,504.997986}, {378.345001,504.819}}} {{{378.040009,503.029999}, {378.040009,503.029999}, {391.415009,505.79599}, {391.398987,505.865997}}}
|
|
|
|
debugShowCubicLineIntersection no intersect {{{388.884003,506.764008}, {388.884003,506.764008}, {378.345001,504.997986}, {378.345001,504.819}}} {{{391.398987,505.865997}, {386.062988,502.131989}}}
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{378.040009,503.029999}, {378.040009,503.029999}, {391.415009,505.79599}, {391.398987,505.865997}}} {{378.040009,503.029999}} wnTs[0]=1 {{{378.345001,504.819}, {378.040009,503.029999}}}
|
|
|
|
debugShowCubicLineIntersection wtTs[0]=0.987732177 {{{378.040009,503.029999}, {378.040009,503.029999}, {391.415009,505.79599}, {391.398987,505.865997}}} {{391.393585,505.862213}} wtTs[1]=1 {{391.398987,505.865997}} wnTs[0]=0.0010133 {{{391.398987,505.865997}, {386.062988,502.131989}}} wnTs[1]=0
|
|
|
|
SkOpSegment::addT insert t=0.987732177 segID=25 spanID=66
|
|
|
|
SkOpSegment::addT insert t=0.00101329714 segID=26 spanID=67
|
|
|
|
debugShowLineIntersection wtTs[0]=1 {{{391.398987,505.865997}, {386.062988,502.131989}}} {{386.062988,502.131989}} wnTs[0]=0 {{{386.062988,502.131989}, {387.546997,500.334991}}}
|
|
|
|
debugShowLineIntersection wtTs[0]=1 {{{386.062988,502.131989}, {387.546997,500.334991}}} {{387.546997,500.334991}} wnTs[0]=0 {{{387.546997,500.334991}, {398.375,501.976013}}}
|
|
|
|
debugShowLineIntersection wtTs[0]=1 {{{387.546997,500.334991}, {398.375,501.976013}}} {{398.375,501.976013}} wnTs[0]=0 {{{398.375,501.976013}, {403.28299,497.196991}}}
|
|
|
|
----------------xxxx-x-x--------------00: coinSeg/Span/PtT=11/63/63 endSpan=65 oppSeg/Span/PtT=10/19/19 oppEndSpan=64 MissingCoin
|
|
|
|
01: coinSeg/Span/PtT=10/19/19 endSpan=64 oppSeg/Span/PtT=11/63/63 oppEndSpan=65 MissingCoin
|
|
|
|
02: coinSeg/Span/PtT=11/63/63 endSpan=65 oppSeg/Span/PtT=10/19/19 oppEndSpan=64 MissingCoin
|
|
|
|
03: coinSeg/Span/PtT=10/19/19 endSpan=64 oppSeg/Span/PtT=11/63/63 oppEndSpan=65 MissingCoin
|
|
|
|
04: coinSeg/Span/PtT=11/65/65 endSpan=19 oppSeg/Span/PtT=11/63/63 oppEndSpan=19 ExpandCoin
|
|
|
|
05: coinSeg/Span/PtT=11/65/65 endSpan=22 Fail
|
|
|
|
06: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
07: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
08: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
09: seg/base=11/65 seg/base=10/64 MarkCoinStart
|
|
|
|
10: seg/base=11/22 seg/base=10/20 MarkCoinEnd
|
|
|
|
11: seg/base=11/21 seg/base=9/17 MarkCoinStart
|
|
|
|
12: seg/base=11/63 seg/base=9/18 MarkCoinEnd
|
|
|
|
13: seg/base=3/59 seg/base=2/3 MarkCoinStart
|
|
|
|
14: seg/base=3/6 seg/base=2/4 MarkCoinEnd
|
|
|
|
15: seg/base=2/60 MarkCoinInsert
|
|
|
|
16: seg/base=3/62 MarkCoinInsert
|
|
|
|
17: seg/base=1/1 seg/base=3/5 MarkCoinStart
|
|
|
|
18: seg/base=1/2 seg/base=3/59 MarkCoinEnd
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
----------------xxxx-x-x--------------00: coinSeg/Span/PtT=11/63/63 endSpan=65 oppSeg/Span/PtT=10/19/19 oppEndSpan=64 MissingCoin
|
|
|
|
01: coinSeg/Span/PtT=10/19/19 endSpan=64 oppSeg/Span/PtT=11/63/63 oppEndSpan=65 MissingCoin
|
|
|
|
02: coinSeg/Span/PtT=11/63/63 endSpan=65 oppSeg/Span/PtT=10/19/19 oppEndSpan=64 MissingCoin
|
|
|
|
03: coinSeg/Span/PtT=10/19/19 endSpan=64 oppSeg/Span/PtT=11/63/63 oppEndSpan=65 MissingCoin
|
|
|
|
04: coinSeg/Span/PtT=11/65/65 endSpan=19 oppSeg/Span/PtT=11/63/63 oppEndSpan=19 ExpandCoin
|
|
|
|
05: coinSeg/Span/PtT=11/65/65 endSpan=22 Fail
|
|
|
|
06: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
07: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
08: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
09: seg/base=11/65 seg/base=10/64 MarkCoinStart
|
|
|
|
10: seg/base=11/22 seg/base=10/20 MarkCoinEnd
|
|
|
|
11: seg/base=11/21 seg/base=9/17 MarkCoinStart
|
|
|
|
12: seg/base=11/63 seg/base=9/18 MarkCoinEnd
|
|
|
|
13: seg/base=3/59 seg/base=2/3 MarkCoinStart
|
|
|
|
14: seg/base=3/6 seg/base=2/4 MarkCoinEnd
|
|
|
|
15: seg/base=2/60 MarkCoinInsert
|
|
|
|
16: seg/base=3/62 MarkCoinInsert
|
|
|
|
17: seg/base=1/1 seg/base=3/5 MarkCoinStart
|
|
|
|
18: seg/base=1/2 seg/base=3/59 MarkCoinEnd
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
----------------xxxx-x-x--------------00: coinSeg/Span/PtT=11/63/63 endSpan=65 oppSeg/Span/PtT=10/19/19 oppEndSpan=64 MissingCoin
|
|
|
|
01: coinSeg/Span/PtT=10/19/19 endSpan=64 oppSeg/Span/PtT=11/63/63 oppEndSpan=65 MissingCoin
|
|
|
|
02: coinSeg/Span/PtT=11/63/63 endSpan=65 oppSeg/Span/PtT=10/19/19 oppEndSpan=64 MissingCoin
|
|
|
|
03: coinSeg/Span/PtT=10/19/19 endSpan=64 oppSeg/Span/PtT=11/63/63 oppEndSpan=65 MissingCoin
|
|
|
|
04: coinSeg/Span/PtT=11/65/65 endSpan=19 oppSeg/Span/PtT=11/63/63 oppEndSpan=19 ExpandCoin
|
|
|
|
05: coinSeg/Span/PtT=11/65/65 endSpan=22 Fail
|
|
|
|
06: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
07: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
08: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
09: seg/base=11/65 seg/base=10/64 MarkCoinStart
|
|
|
|
10: seg/base=11/22 seg/base=10/20 MarkCoinEnd
|
|
|
|
11: seg/base=11/21 seg/base=9/17 MarkCoinStart
|
|
|
|
12: seg/base=11/63 seg/base=9/18 MarkCoinEnd
|
|
|
|
13: seg/base=3/59 seg/base=2/3 MarkCoinStart
|
|
|
|
14: seg/base=3/6 seg/base=2/4 MarkCoinEnd
|
|
|
|
15: seg/base=2/60 MarkCoinInsert
|
|
|
|
16: seg/base=3/62 MarkCoinInsert
|
|
|
|
17: seg/base=1/1 seg/base=3/5 MarkCoinStart
|
|
|
|
18: seg/base=1/2 seg/base=3/59 MarkCoinEnd
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
----------------xxxx-x-x--------------00: coinSeg/Span/PtT=11/63/63 endSpan=65 oppSeg/Span/PtT=10/19/19 oppEndSpan=64 MissingCoin
|
|
|
|
01: coinSeg/Span/PtT=10/19/19 endSpan=64 oppSeg/Span/PtT=11/63/63 oppEndSpan=65 MissingCoin
|
|
|
|
02: coinSeg/Span/PtT=11/63/63 endSpan=65 oppSeg/Span/PtT=10/19/19 oppEndSpan=64 MissingCoin
|
|
|
|
03: coinSeg/Span/PtT=10/19/19 endSpan=64 oppSeg/Span/PtT=11/63/63 oppEndSpan=65 MissingCoin
|
|
|
|
04: coinSeg/Span/PtT=11/65/65 endSpan=19 oppSeg/Span/PtT=11/63/63 oppEndSpan=19 ExpandCoin
|
|
|
|
05: coinSeg/Span/PtT=11/65/65 endSpan=22 Fail
|
|
|
|
06: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
07: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
08: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
09: seg/base=11/65 seg/base=10/64 MarkCoinStart
|
|
|
|
10: seg/base=11/22 seg/base=10/20 MarkCoinEnd
|
|
|
|
11: seg/base=11/21 seg/base=9/17 MarkCoinStart
|
|
|
|
12: seg/base=11/63 seg/base=9/18 MarkCoinEnd
|
|
|
|
13: seg/base=3/59 seg/base=2/3 MarkCoinStart
|
|
|
|
14: seg/base=3/6 seg/base=2/4 MarkCoinEnd
|
|
|
|
15: seg/base=2/60 MarkCoinInsert
|
|
|
|
16: seg/base=3/62 MarkCoinInsert
|
|
|
|
17: seg/base=1/1 seg/base=3/5 MarkCoinStart
|
|
|
|
18: seg/base=1/2 seg/base=3/59 MarkCoinEnd
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
----------------xxxx-x-x--------------00: coinSeg/Span/PtT=11/63/63 endSpan=65 oppSeg/Span/PtT=10/19/19 oppEndSpan=64 MissingCoin
|
|
|
|
01: coinSeg/Span/PtT=10/19/19 endSpan=64 oppSeg/Span/PtT=11/63/63 oppEndSpan=65 MissingCoin
|
|
|
|
02: coinSeg/Span/PtT=11/63/63 endSpan=65 oppSeg/Span/PtT=10/19/19 oppEndSpan=64 MissingCoin
|
|
|
|
03: coinSeg/Span/PtT=10/19/19 endSpan=64 oppSeg/Span/PtT=11/63/63 oppEndSpan=65 MissingCoin
|
|
|
|
04: coinSeg/Span/PtT=11/65/65 endSpan=19 oppSeg/Span/PtT=11/63/63 oppEndSpan=19 ExpandCoin
|
|
|
|
05: coinSeg/Span/PtT=11/65/65 endSpan=22 Fail
|
|
|
|
06: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
07: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
08: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
09: seg/base=11/65 seg/base=10/64 MarkCoinStart
|
|
|
|
10: seg/base=11/22 seg/base=10/20 MarkCoinEnd
|
|
|
|
11: seg/base=11/21 seg/base=9/17 MarkCoinStart
|
|
|
|
12: seg/base=11/63 seg/base=9/18 MarkCoinEnd
|
|
|
|
13: seg/base=3/59 seg/base=2/3 MarkCoinStart
|
|
|
|
14: seg/base=3/6 seg/base=2/4 MarkCoinEnd
|
|
|
|
15: seg/base=2/60 MarkCoinInsert
|
|
|
|
16: seg/base=3/62 MarkCoinInsert
|
|
|
|
17: seg/base=1/1 seg/base=3/5 MarkCoinStart
|
|
|
|
18: seg/base=1/2 seg/base=3/59 MarkCoinEnd
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
----------------xxxx-x-x--------------00: coinSeg/Span/PtT=11/63/63 endSpan=65 oppSeg/Span/PtT=10/19/19 oppEndSpan=64 MissingCoin
|
|
|
|
01: coinSeg/Span/PtT=10/19/19 endSpan=64 oppSeg/Span/PtT=11/63/63 oppEndSpan=65 MissingCoin
|
|
|
|
02: coinSeg/Span/PtT=11/63/63 endSpan=65 oppSeg/Span/PtT=10/19/19 oppEndSpan=64 MissingCoin
|
|
|
|
03: coinSeg/Span/PtT=10/19/19 endSpan=64 oppSeg/Span/PtT=11/63/63 oppEndSpan=65 MissingCoin
|
|
|
|
04: coinSeg/Span/PtT=11/65/65 endSpan=19 oppSeg/Span/PtT=11/63/63 oppEndSpan=19 ExpandCoin
|
|
|
|
05: coinSeg/Span/PtT=11/65/65 endSpan=22 Fail
|
|
|
|
06: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
07: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
08: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
09: seg/base=11/65 seg/base=10/64 MarkCoinStart
|
|
|
|
10: seg/base=11/22 seg/base=10/20 MarkCoinEnd
|
|
|
|
11: seg/base=11/21 seg/base=9/17 MarkCoinStart
|
|
|
|
12: seg/base=11/63 seg/base=9/18 MarkCoinEnd
|
|
|
|
13: seg/base=3/59 seg/base=2/3 MarkCoinStart
|
|
|
|
14: seg/base=3/6 seg/base=2/4 MarkCoinEnd
|
|
|
|
15: seg/base=2/60 MarkCoinInsert
|
|
|
|
16: seg/base=3/62 MarkCoinInsert
|
|
|
|
17: seg/base=1/1 seg/base=3/5 MarkCoinStart
|
|
|
|
18: seg/base=1/2 seg/base=3/59 MarkCoinEnd
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
-----------------xxx-x----------------00: coinSeg/Span/PtT=11/63/63 endSpan=22 Fail
|
|
|
|
01: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
02: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
03: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
04: seg/base=11/63 seg/base=10/19 MarkCoinStart
|
|
|
|
05: seg/base=11/22 seg/base=10/20 MarkCoinEnd
|
|
|
|
06: seg/base=10/64 MarkCoinInsert
|
|
|
|
07: seg/base=11/65 MarkCoinInsert
|
|
|
|
08: seg/base=11/21 seg/base=9/17 MarkCoinStart
|
|
|
|
09: seg/base=11/63 seg/base=9/18 MarkCoinEnd
|
|
|
|
10: seg/base=3/59 seg/base=2/3 MarkCoinStart
|
|
|
|
11: seg/base=3/6 seg/base=2/4 MarkCoinEnd
|
|
|
|
12: seg/base=2/60 MarkCoinInsert
|
|
|
|
13: seg/base=3/62 MarkCoinInsert
|
|
|
|
14: seg/base=1/1 seg/base=3/5 MarkCoinStart
|
|
|
|
15: seg/base=1/2 seg/base=3/59 MarkCoinEnd
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
-----------------xxx-x----------------00: coinSeg/Span/PtT=11/63/63 endSpan=22 Fail
|
|
|
|
01: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
02: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
03: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
04: seg/base=11/63 seg/base=10/19 MarkCoinStart
|
|
|
|
05: seg/base=11/22 seg/base=10/20 MarkCoinEnd
|
|
|
|
06: seg/base=10/64 MarkCoinInsert
|
|
|
|
07: seg/base=11/65 MarkCoinInsert
|
|
|
|
08: seg/base=11/21 seg/base=9/17 MarkCoinStart
|
|
|
|
09: seg/base=11/63 seg/base=9/18 MarkCoinEnd
|
|
|
|
10: seg/base=3/59 seg/base=2/3 MarkCoinStart
|
|
|
|
11: seg/base=3/6 seg/base=2/4 MarkCoinEnd
|
|
|
|
12: seg/base=2/60 MarkCoinInsert
|
|
|
|
13: seg/base=3/62 MarkCoinInsert
|
|
|
|
14: seg/base=1/1 seg/base=3/5 MarkCoinStart
|
|
|
|
15: seg/base=1/2 seg/base=3/59 MarkCoinEnd
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
-----------------xxx-x----------------00: coinSeg/Span/PtT=11/63/63 endSpan=22 Fail
|
|
|
|
01: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
02: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
03: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
04: seg/base=11/63 seg/base=10/19 MarkCoinStart
|
|
|
|
05: seg/base=11/22 seg/base=10/20 MarkCoinEnd
|
|
|
|
06: seg/base=10/64 MarkCoinInsert
|
|
|
|
07: seg/base=11/65 MarkCoinInsert
|
|
|
|
08: seg/base=11/21 seg/base=9/17 MarkCoinStart
|
|
|
|
09: seg/base=11/63 seg/base=9/18 MarkCoinEnd
|
|
|
|
10: seg/base=3/59 seg/base=2/3 MarkCoinStart
|
|
|
|
11: seg/base=3/6 seg/base=2/4 MarkCoinEnd
|
|
|
|
12: seg/base=2/60 MarkCoinInsert
|
|
|
|
13: seg/base=3/62 MarkCoinInsert
|
|
|
|
14: seg/base=1/1 seg/base=3/5 MarkCoinStart
|
|
|
|
15: seg/base=1/2 seg/base=3/59 MarkCoinEnd
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
-----------------xxx-x----------------00: coinSeg/Span/PtT=11/63/63 endSpan=22 Fail
|
|
|
|
01: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
02: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
03: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
04: seg/base=11/63 seg/base=10/19 MarkCoinStart
|
|
|
|
05: seg/base=11/22 seg/base=10/20 MarkCoinEnd
|
|
|
|
06: seg/base=10/64 MarkCoinInsert
|
|
|
|
07: seg/base=11/65 MarkCoinInsert
|
|
|
|
08: seg/base=11/21 seg/base=9/17 MarkCoinStart
|
|
|
|
09: seg/base=11/63 seg/base=9/18 MarkCoinEnd
|
|
|
|
10: seg/base=3/59 seg/base=2/3 MarkCoinStart
|
|
|
|
11: seg/base=3/6 seg/base=2/4 MarkCoinEnd
|
|
|
|
12: seg/base=2/60 MarkCoinInsert
|
|
|
|
13: seg/base=3/62 MarkCoinInsert
|
|
|
|
14: seg/base=1/1 seg/base=3/5 MarkCoinStart
|
|
|
|
15: seg/base=1/2 seg/base=3/59 MarkCoinEnd
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
-----------------xxx-x----------------00: coinSeg/Span/PtT=11/63/63 endSpan=22 Fail
|
|
|
|
01: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
02: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
03: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
04: seg/base=11/63 seg/base=10/19 MarkCoinStart
|
|
|
|
05: seg/base=11/22 seg/base=10/20 MarkCoinEnd
|
|
|
|
06: seg/base=10/64 MarkCoinInsert
|
|
|
|
07: seg/base=11/65 MarkCoinInsert
|
|
|
|
08: seg/base=11/21 seg/base=9/17 MarkCoinStart
|
|
|
|
09: seg/base=11/63 seg/base=9/18 MarkCoinEnd
|
|
|
|
10: seg/base=3/59 seg/base=2/3 MarkCoinStart
|
|
|
|
11: seg/base=3/6 seg/base=2/4 MarkCoinEnd
|
|
|
|
12: seg/base=2/60 MarkCoinInsert
|
|
|
|
13: seg/base=3/62 MarkCoinInsert
|
|
|
|
14: seg/base=1/1 seg/base=3/5 MarkCoinStart
|
|
|
|
15: seg/base=1/2 seg/base=3/59 MarkCoinEnd
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
-----------------x--------------------00: coinSeg/Span/PtT=11/63/63 endSpan=22 Fail
|
|
|
|
01: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
02: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
03: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
-----------------x--------------------00: coinSeg/Span/PtT=11/63/63 endSpan=22 Fail
|
|
|
|
01: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
02: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
03: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
-----------------x--------------------00: coinSeg/Span/PtT=11/63/63 endSpan=22 Fail
|
|
|
|
01: coinSeg/Span/PtT=11/21/21 endSpan=63 Fail
|
|
|
|
02: coinSeg/Span/PtT=3/59/59 endSpan=6 Fail
|
|
|
|
03: coinSeg/Span/PtT=1/1/1 endSpan=2 Fail
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
--------------------------------------SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.28418,497.197632 403.28418,497.197834 403.28343,497.197937 403.282013,497.197937) t=0 tEnd=0.00758417328 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=2 (403.282013,497.197937 403.096602,497.199084 391.110992,495.556 391.110992,495.556) t=0.00758417328 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28299,497.196991 403.283816,497.197266 403.28418,497.197475 403.28418,497.197632) t=0 tEnd=0.005859375 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.280823,485.642365 384.335312,485.660919 384.388724,485.679114 384.440979,485.696869) t=0 tEnd=0.25 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=10 (384.440979,485.696869 384.597744,485.750134 384.744011,485.799477 384.877014,485.842987) t=0.25 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::markDone id=10 (384.280823,485.642365 384.498779,485.716583 384.699677,485.784973 384.877014,485.842987) t=0 [19] (384.280823,485.642365) tEnd=0.25 newWindSum=? newOppSum=? oppSum=? windSum=? windValue=0 oppValue=0
|
|
|
|
SkOpSegment::markDone id=10 (384.280823,485.642365 384.498779,485.716583 384.699677,485.784973 384.877014,485.842987) t=0.25 [64] (384.440979,485.696869) tEnd=1 newWindSum=? newOppSum=? oppSum=? windSum=? windValue=0 oppValue=0
|
|
|
|
SkOpSegment::markDone id=9 (378.938995,485.695007 378.80545,483.777863 382.270355,484.957733 384.280823,485.642365) t=0 [17] (378.938995,485.695007) tEnd=1 newWindSum=? newOppSum=? oppSum=? windSum=? windValue=0 oppValue=0
|
|
|
|
SkOpSegment::markDone id=2 (403.28418,497.197632 403.280487,497.224304 391.110992,495.556 391.110992,495.556) t=0 [3] (403.28418,497.197632) tEnd=0.00758417328 newWindSum=? newOppSum=? oppSum=? windSum=? windValue=0 oppValue=0
|
|
|
|
SkOpSegment::markDone id=2 (403.28418,497.197632 403.280487,497.224304 391.110992,495.556 391.110992,495.556) t=0.00758417328 [60] (403.282013,497.197937) tEnd=1 newWindSum=? newOppSum=? oppSum=? windSum=? windValue=0 oppValue=0
|
|
|
|
SkOpSegment::markDone id=3 (403.28299,497.196991 403.424011,497.243988 391.110992,495.556 391.110992,495.556) t=0 [5] (403.28299,497.196991) tEnd=0.005859375 newWindSum=? newOppSum=? oppSum=? windSum=? windValue=0 oppValue=0
|
|
|
|
--------------------------------------SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
--------------------------------------SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::sortAngles [1] tStart=0 [1]
|
|
|
|
SkOpSegment::sortAngles [1] tStart=1 [2]
|
|
|
|
SkOpSegment::sortAngles [3] tStart=0.005859375 [59]
|
|
|
|
SkOpSegment::sortAngles [3] tStart=0.0134156992 [62]
|
|
|
|
SkOpAngle::after [3/4] 31/31 tStart=0.0134156992 tEnd=0.005859375 < [29/20] 17/17 tStart=0.999799809 tEnd=0 < [3/5] 17/13 tStart=0.0134156992 tEnd=1 F 11
|
|
|
|
SkOpAngle::afterPart {{{403.282013,497.197937}, {403.28418,497.197601}, {403.28418,497.197804}, {403.28418,497.197601}}} id=3
|
|
|
|
SkOpAngle::afterPart {{{403.282013,497.197937}, {398.375,501.976013}}} id=29
|
|
|
|
SkOpAngle::afterPart {{{403.282013,497.197937}, {403.095864,497.198984}, {391.110992,495.555969}, {391.110992,495.555969}}} id=3
|
|
|
|
SkOpAngle::after [3/4] 31/31 tStart=0.0134156992 tEnd=0.005859375 < [29/21] 1/1 tStart=0.999799809 tEnd=1 < [3/5] 17/13 tStart=0.0134156992 tEnd=1 T 4
|
|
|
|
SkOpAngle::afterPart {{{403.282013,497.197937}, {403.28418,497.197601}, {403.28418,497.197804}, {403.28418,497.197601}}} id=3
|
|
|
|
SkOpAngle::afterPart {{{403.282013,497.197937}, {403.28299,497.196991}}} id=29
|
|
|
|
SkOpAngle::afterPart {{{403.282013,497.197937}, {403.095864,497.198984}, {391.110992,495.555969}, {391.110992,495.555969}}} id=3
|
|
|
|
SkOpSegment::sortAngles [3] tStart=1 [6]
|
|
|
|
SkOpSegment::sortAngles [4] tStart=0 [7]
|
|
|
|
SkOpSegment::sortAngles [8] tStart=1 [16]
|
|
|
|
SkOpSegment::sortAngles [11] tStart=0 [21]
|
|
|
|
SkOpSegment::sortAngles [11] tStart=0.902185418 [63]
|
|
|
|
SkOpSegment::sortAngles [11] tStart=0.926637941 [65]
|
|
|
|
SkOpSegment::sortAngles [11] tStart=1 [22]
|
|
|
|
SkOpSegment::sortAngles [12] tStart=0 [23]
|
|
|
|
SkOpSegment::sortAngles [25] tStart=0.987732177 [66]
|
|
|
|
SkOpAngle::after [25/16] 13/13 tStart=0.987732177 tEnd=0 < [26/18] 29/29 tStart=0.00101329714 tEnd=0 < [25/17] 29/29 tStart=0.987732177 tEnd=1 T 11
|
|
|
|
SkOpAngle::afterPart {{{391.393585,505.862213}, {391.088863,505.72854}, {378.040009,503.029999}, {378.040009,503.029999}}} id=25
|
|
|
|
SkOpAngle::afterPart {{{391.393585,505.862213}, {391.398987,505.865997}}} id=26
|
|
|
|
SkOpAngle::afterPart {{{391.393585,505.862213}, {391.39737,505.863873}, {391.399183,505.865138}, {391.398987,505.865997}}} id=25
|
|
|
|
SkOpAngle::after [25/16] 13/13 tStart=0.987732177 tEnd=0 < [26/19] 13/13 tStart=0.00101329714 tEnd=1 < [26/18] 29/29 tStart=0.00101329714 tEnd=0 F 12
|
|
|
|
SkOpAngle::afterPart {{{391.393585,505.862213}, {391.088863,505.72854}, {378.040009,503.029999}, {378.040009,503.029999}}} id=25
|
|
|
|
SkOpAngle::afterPart {{{391.393585,505.862213}, {386.062988,502.131989}}} id=26
|
|
|
|
SkOpAngle::afterPart {{{391.393585,505.862213}, {391.398987,505.865997}}} id=26
|
|
|
|
SkOpAngle::after [26/18] 29/29 tStart=0.00101329714 tEnd=0 < [26/19] 13/13 tStart=0.00101329714 tEnd=1 < [25/17] 29/29 tStart=0.987732177 tEnd=1 F 5
|
|
|
|
SkOpAngle::afterPart {{{391.393585,505.862213}, {391.398987,505.865997}}} id=26
|
|
|
|
SkOpAngle::afterPart {{{391.393585,505.862213}, {386.062988,502.131989}}} id=26
|
|
|
|
SkOpAngle::afterPart {{{391.393585,505.862213}, {391.39737,505.863873}, {391.399183,505.865138}, {391.398987,505.865997}}} id=25
|
|
|
|
SkOpAngle::after [25/17] 29/29 tStart=0.987732177 tEnd=1 < [26/19] 13/13 tStart=0.00101329714 tEnd=1 < [25/16] 13/13 tStart=0.987732177 tEnd=0 T 11
|
|
|
|
SkOpAngle::afterPart {{{391.393585,505.862213}, {391.39737,505.863873}, {391.399183,505.865138}, {391.398987,505.865997}}} id=25
|
|
|
|
SkOpAngle::afterPart {{{391.393585,505.862213}, {386.062988,502.131989}}} id=26
|
|
|
|
SkOpAngle::afterPart {{{391.393585,505.862213}, {391.088863,505.72854}, {378.040009,503.029999}, {378.040009,503.029999}}} id=25
|
|
|
|
SkOpSegment::sortAngles [26] tStart=0.00101329714 [67]
|
|
|
|
SkOpSegment::sortAngles [29] tStart=0.999799809 [61]
|
|
|
|
SkOpSegment::sortAngles [29] tStart=1 [58]
|
|
|
|
coinSpan - id=11 t=0.902185418 tEnd=1
|
|
|
|
coinSpan + id=10 t=0 tEnd=1
|
|
|
|
coinSpan - id=11 t=0 tEnd=0.902185418
|
|
|
|
coinSpan + id=9 t=0 tEnd=1
|
|
|
|
coinSpan - id=3 t=0.005859375 tEnd=1
|
|
|
|
coinSpan + id=2 t=0 tEnd=1
|
|
|
|
coinSpan - id=1 t=0 tEnd=1
|
|
|
|
coinSpan + id=3 t=0 tEnd=0.005859375
|
|
|
|
SkOpSegment::debugShowActiveSpans id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.28418,497.197632 403.28418,497.197834 403.283439,497.197968 403.282013,497.197968) t=0.005859375 tEnd=0.0134156992 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.393585,505.862213 386.062988,502.131989) t=0.00101329714 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=27 (386.062988,502.131989 387.546997,500.334991) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=28 (387.546997,500.334991 398.375,501.976013) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (398.375,501.976013 403.282013,497.197937) t=0 tEnd=0.999799809 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=29 (403.282013,497.197937 403.28299,497.196991) t=0.999799809 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSpan::sortableTop dir=kTop seg=1 t=0.5 pt=(403.283905,497.197357)
|
|
|
|
SkOpSpan::sortableTop [0] valid=1 operand=0 span=1 ccw=1 seg=1 {{{403.28299f, 497.196991f}, {403.284241f, 497.197388f}, {403.28418f, 497.197632f}}} t=0.5 pt=(403.283905,497.197357) slope=(0.000595092773,0.00032043457)
|
|
|
|
SkOpSpan::sortableTop [1] valid=0 operand=0 span=59 ccw=0 seg=3 {{{403.28299f, 497.196991f}, {403.424011f, 497.243988f}, {391.110992f, 495.556f}, {391.110992f, 495.556f}}} t=0.00848215884 pt=(403.283905,497.197815) slope=(0,0)
|
|
|
|
SkOpSpan::sortableTop dir=kTop seg=3 t=0.00963753708 pt=(403.28363,497.197876)
|
|
|
|
SkOpSpan::sortableTop [0] valid=1 operand=0 span=1 ccw=1 seg=1 {{{403.28299f, 497.196991f}, {403.284241f, 497.197388f}, {403.28418f, 497.197632f}}} t=0.304822061 pt=(403.28363,497.197205) slope=(0.000851216167,0.00035021636)
|
|
|
|
SkOpSpan::sortableTop [1] valid=1 operand=0 span=59 ccw=0 seg=3 {{{403.28299f, 497.196991f}, {403.424011f, 497.243988f}, {391.110992f, 495.556f}, {391.110992f, 495.556f}}} t=0.00963753708 pt=(403.28363,497.197876) slope=(-0.290191228,0.0416190962)
|
|
|
|
SkOpSegment::markWinding id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 [1] (403.28299,497.196991) tEnd=1 newWindSum=-2 newOppSum=0 oppSum=0 windSum=-2 windValue=2 oppValue=0
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::markWinding id=3 (403.28299,497.196991 403.424011,497.243988 391.110992,495.556 391.110992,495.556) t=0.005859375 [59] (403.28418,497.197632) tEnd=0.0134156992 newWindSum=-2 newOppSum=0 oppSum=? windSum=? windValue=2 oppValue=0
|
|
|
|
SkOpSegment::markWinding id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 [1] (403.28299,497.196991) tEnd=1 newWindSum=-2 newOppSum=0 oppSum=0 windSum=-2 windValue=2 oppValue=0
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::findNextWinding simple
|
|
|
|
SkOpSegment::markDone id=3 (403.28299,497.196991 403.424011,497.243988 391.110992,495.556 391.110992,495.556) t=0.005859375 [59] (403.28418,497.197632) tEnd=0.0134156992 newWindSum=-2 newOppSum=0 oppSum=0 windSum=-2 windValue=2 oppValue=0
|
|
|
|
bridgeWinding current id=3 from=(403.282013,497.197968) to=(403.28418,497.197632)
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::markWinding id=29 (398.375,501.976013 403.28299,497.196991) t=0.999799809 [61] (403.282013,497.197937) tEnd=1 newWindSum=-1 windSum=? windValue=1
|
|
|
|
SkOpSegment::markAngle last seg=29 span=61 windSum=-1
|
|
|
|
SkOpSegment::findNextWinding
|
|
|
|
SkOpAngle::dumpOne [1/1] next=29/22 sect=29/29 s=0 [1] e=1 [2] sgn=-1 windVal=2 windSum=-2 oppVal=0 oppSum=0
|
|
|
|
SkOpAngle::dumpOne [29/22] next=1/1 sect=17/17 s=1 [58] e=0.999799809 [61] sgn=1 windVal=1 windSum=-1
|
|
|
|
SkOpSegment::findNextWinding chase.append segment=29 span=61 windSum=-1
|
|
|
|
SkOpSegment::markDone id=1 (403.28299,497.196991 403.284241,497.197388 403.28418,497.197632) t=0 [1] (403.28299,497.196991) tEnd=1 newWindSum=-2 newOppSum=0 oppSum=0 windSum=-2 windValue=2 oppValue=0
|
|
|
|
SkOpSegment::findNextWinding from:[1] to:[29] start=4226608 end=4227160
|
|
|
|
bridgeWinding current id=1 from=(403.28418,497.197632) to=(403.28299,497.196991)
|
|
|
|
path.moveTo(403.282013,497.197968);
|
|
|
|
path.lineTo(403.28418,497.197632);
|
|
|
|
SkOpSegment::markWinding id=3 (403.28299,497.196991 403.424011,497.243988 391.110992,495.556 391.110992,495.556) t=0.0134156992 [62] (403.282013,497.197968) tEnd=1 newWindSum=2 windSum=? windValue=2
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::markAngle last seg=4 span=7 windSum=?
|
|
|
|
SkOpSegment::markWinding id=29 (398.375,501.976013 403.28299,497.196991) t=0 [57] (398.375,501.976013) tEnd=0.999799809 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=28 (387.546997,500.334991 398.375,501.976013) t=0 [55] (387.546997,500.334991) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=27 (386.062988,502.131989 387.546997,500.334991) t=0 [53] (386.062988,502.131989) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=26 (391.398987,505.865997 386.062988,502.131989) t=0.00101329714 [67] (391.393585,505.862213) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markAngle last seg=26 span=67 windSum=2
|
|
|
|
SkOpSegment::findNextWinding
|
|
|
|
SkOpAngle::dumpOne [29/21] next=3/5 sect=1/1 s=0.999799809 [61] e=1 [58] sgn=-1 windVal=1 windSum=-1
|
|
|
|
SkOpAngle::dumpOne [3/5] next=29/20 sect=17/13 s=0.0134156992 [62] e=1 [6] sgn=-1 windVal=2 windSum=2
|
|
|
|
SkOpAngle::dumpOne [29/20] next=3/4 sect=17/17 s=0.999799809 [61] e=0 [57] sgn=1 windVal=1 windSum=2
|
|
|
|
SkOpAngle::dumpOne [3/4] next=29/21 sect=31/31 s=0.0134156992 [62] e=0.005859375 [59] sgn=1 windVal=2 windSum=-2 oppVal=0 oppSum=0 done
|
|
|
|
SkOpSegment::findNextWinding chase.append segment=4 span=7 windSum=-2147483647
|
|
|
|
SkOpSegment::markDone id=29 (398.375,501.976013 403.28299,497.196991) t=0 [57] (398.375,501.976013) tEnd=0.999799809 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=28 (387.546997,500.334991 398.375,501.976013) t=0 [55] (387.546997,500.334991) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=27 (386.062988,502.131989 387.546997,500.334991) t=0 [53] (386.062988,502.131989) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=26 (391.398987,505.865997 386.062988,502.131989) t=0.00101329714 [67] (391.393585,505.862213) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::findNextWinding chase.append segment=26 span=67 windSum=2
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::markDone id=29 (398.375,501.976013 403.28299,497.196991) t=0.999799809 [61] (403.282013,497.197937) tEnd=1 newWindSum=-1 newOppSum=? oppSum=? windSum=-1 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::findNextWinding from:[29] to:[3] start=4227304 end=4218168
|
|
|
|
bridgeWinding current id=29 from=(403.28299,497.196991) to=(403.282013,497.197937)
|
|
|
|
path.lineTo(403.28299,497.196991);
|
|
|
|
path.lineTo(403.282013,497.197937);
|
|
|
|
path.close();
|
|
|
|
SkOpSegment::markWinding id=25 (378.040009,503.029999 378.040009,503.029999 391.415009,505.79599 391.398987,505.865997) t=0 [49] (378.040009,503.029999) tEnd=0.987732177 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=24 (378.345001,504.819 378.040009,503.029999) t=0 [47] (378.345001,504.819) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 [45] (388.884003,506.764008) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=22 (387.399994,508.108002 388.884003,506.764008) t=0 [43] (387.399994,508.108002) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 [41] (377.752014,507.514008) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 [39] (371.807007,506.022003) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=19 (370.915985,506.912994 371.807007,506.022003) t=0 [37] (370.915985,506.912994) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=18 (374.477997,509.006989 370.915985,506.912994) t=0 [35] (374.477997,509.006989) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=17 (373.884003,510.201996 374.477997,509.006989) t=0 [33] (373.884003,510.201996) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=16 (368.095001,510.498993 373.884003,510.201996) t=0 [31] (368.095001,510.498993) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=15 (356.220001,496.303986 368.095001,510.498993) t=0 [29] (356.220001,496.303986) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=14 (374.477997,480.312012 356.220001,496.303986) t=0 [27] (374.477997,480.312012) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 [25] (387.696991,484.351013) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=12 (384.877014,485.842987 387.696991,484.351013) t=0 [23] (384.877014,485.842987) tEnd=1 newWindSum=2 windSum=? windValue=1
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::markAngle last seg=11 span=22
|
|
|
|
SkOpSegment::markWinding id=26 (391.398987,505.865997 386.062988,502.131989) t=0 [51] (391.398987,505.865997) tEnd=0.00101329714 newWindSum=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::markWinding id=25 (378.040009,503.029999 378.040009,503.029999 391.415009,505.79599 391.398987,505.865997) t=0.987732177 [66] (391.393585,505.862213) tEnd=1 newWindSum=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::markAngle last seg=25 span=66 windSum=1
|
|
|
|
SkOpSegment::markWinding id=25 (378.040009,503.029999 378.040009,503.029999 391.415009,505.79599 391.398987,505.865997) t=0.987732177 [66] (391.393585,505.862213) tEnd=1 newWindSum=1 windSum=1 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=2 windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=12 (384.877014,485.842987 387.696991,484.351013) t=0 tEnd=1 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 tEnd=1 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=14 (374.477997,480.312012 356.220001,496.303986) t=0 tEnd=1 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=15 (356.220001,496.303986 368.095001,510.498993) t=0 tEnd=1 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=16 (368.095001,510.498993 373.884003,510.201996) t=0 tEnd=1 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=17 (373.884003,510.201996 374.477997,509.006989) t=0 tEnd=1 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=18 (374.477997,509.006989 370.915985,506.912994) t=0 tEnd=1 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=19 (370.915985,506.912994 371.807007,506.022003) t=0 tEnd=1 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 tEnd=1 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 tEnd=1 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=22 (387.399994,508.108002 388.884003,506.764008) t=0 tEnd=1 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 tEnd=1 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=24 (378.345001,504.819 378.040009,503.029999) t=0 tEnd=1 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (378.040009,503.029999 378.040009,503.029999 391.088863,505.72854 391.393585,505.862213) t=0 tEnd=0.987732177 windSum=2 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=1 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=1 windValue=1
|
|
|
|
SkOpSegment::markDone id=25 (378.040009,503.029999 378.040009,503.029999 391.415009,505.79599 391.398987,505.865997) t=0 [49] (378.040009,503.029999) tEnd=0.987732177 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=24 (378.345001,504.819 378.040009,503.029999) t=0 [47] (378.345001,504.819) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=23 (388.884003,506.764008 388.884003,506.764008 378.345001,504.997986 378.345001,504.819) t=0 [45] (388.884003,506.764008) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=22 (387.399994,508.108002 388.884003,506.764008) t=0 [43] (387.399994,508.108002) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=21 (377.752014,507.514008 380.752014,507.881012 387.399994,508.108002 387.399994,508.108002) t=0 [41] (377.752014,507.514008) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=20 (371.807007,506.022003 371.807007,506.022003 374.807007,507.279999 377.752014,507.514008) t=0 [39] (371.807007,506.022003) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=19 (370.915985,506.912994 371.807007,506.022003) t=0 [37] (370.915985,506.912994) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=18 (374.477997,509.006989 370.915985,506.912994) t=0 [35] (374.477997,509.006989) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=17 (373.884003,510.201996 374.477997,509.006989) t=0 [33] (373.884003,510.201996) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=16 (368.095001,510.498993 373.884003,510.201996) t=0 [31] (368.095001,510.498993) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=15 (356.220001,496.303986 368.095001,510.498993) t=0 [29] (356.220001,496.303986) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=14 (374.477997,480.312012 356.220001,496.303986) t=0 [27] (374.477997,480.312012) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=13 (387.696991,484.351013 382.752014,483.834991 376.595001,482.123993 374.477997,480.312012) t=0 [25] (387.696991,484.351013) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markDone id=12 (384.877014,485.842987 387.696991,484.351013) t=0 [23] (384.877014,485.842987) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
bridgeWinding chase.append id=11
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=2 windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=25 (391.393585,505.862213 391.39737,505.863873 391.399183,505.865138 391.398987,505.865997) t=0.987732177 tEnd=1 windSum=1 windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=26 (391.398987,505.865997 391.393585,505.862213) t=0 tEnd=0.00101329714 windSum=1 windValue=1
|
|
|
|
SkOpSegment::findNextWinding simple
|
|
|
|
SkOpSegment::markDone id=25 (378.040009,503.029999 378.040009,503.029999 391.415009,505.79599 391.398987,505.865997) t=0.987732177 [66] (391.393585,505.862213) tEnd=1 newWindSum=1 newOppSum=? oppSum=? windSum=1 windValue=1 oppValue=0
|
|
|
|
bridgeWinding current id=25 from=(391.393585,505.862213) to=(391.398987,505.865997)
|
|
|
|
path.moveTo(391.393585,505.862213);
|
|
|
|
path.cubicTo(391.397369,505.863861, 391.39917,505.865143, 391.398987,505.865997);
|
|
|
|
SkOpSegment::findNextWinding
|
|
|
|
SkOpAngle::dumpOne [26/18] next=25/17 sect=29/29 s=0.00101329714 [67] e=0 [51] sgn=1 windVal=1 windSum=1
|
|
|
|
SkOpAngle::dumpOne [25/17] next=26/19 sect=29/29 s=0.987732177 [66] e=1 [50] sgn=-1 windVal=1 windSum=1 done
|
|
|
|
SkOpAngle::dumpOne [26/19] next=25/16 sect=13/13 s=0.00101329714 [67] e=1 [52] sgn=-1 windVal=1 windSum=2 done
|
|
|
|
SkOpAngle::dumpOne [25/16] next=26/18 sect=13/13 s=0.987732177 [66] e=0 [49] sgn=1 windVal=1 windSum=2 done
|
|
|
|
SkOpSegment::markDone id=26 (391.398987,505.865997 386.062988,502.131989) t=0 [51] (391.398987,505.865997) tEnd=0.00101329714 newWindSum=1 newOppSum=? oppSum=? windSum=1 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::findNextWinding from:[26] to:[25] start=4228008 end=4225360
|
|
|
|
bridgeWinding current id=26 from=(391.398987,505.865997) to=(391.393585,505.862213)
|
|
|
|
path.lineTo(391.393585,505.862213);
|
|
|
|
path.close();
|
|
|
|
SkOpSegment::debugShowActiveSpans id=3 (403.282013,497.197968 403.095864,497.199014 391.110992,495.556 391.110992,495.556) t=0.0134156992 tEnd=1 windSum=2 windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::findNextWinding
|
|
|
|
SkOpAngle::dumpOne [3/5] next=29/20 sect=17/13 s=0.0134156992 [62] e=1 [6] sgn=-1 windVal=2 windSum=2
|
|
|
|
SkOpAngle::dumpOne [29/20] next=3/4 sect=17/17 s=0.999799809 [61] e=0 [57] sgn=1 windVal=1 windSum=2 done
|
|
|
|
SkOpAngle::dumpOne [3/4] next=29/21 sect=31/31 s=0.0134156992 [62] e=0.005859375 [59] sgn=1 windVal=2 windSum=-2 oppVal=0 oppSum=0 done
|
|
|
|
SkOpAngle::dumpOne [29/21] next=3/5 sect=1/1 s=0.999799809 [61] e=1 [58] sgn=-1 windVal=1 windSum=-1 done
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::markDone id=3 (403.28299,497.196991 403.424011,497.243988 391.110992,495.556 391.110992,495.556) t=0.0134156992 [62] (403.282013,497.197968) tEnd=1 newWindSum=2 newOppSum=? oppSum=? windSum=2 windValue=2 oppValue=0
|
|
|
|
SkOpSegment::findNextWinding from:[3] to:[29] start=4227160 end=4226608
|
|
|
|
bridgeWinding current id=3 from=(391.110992,495.556) to=(403.282013,497.197968)
|
|
|
|
path.moveTo(391.110992,495.556);
|
|
|
|
path.cubicTo(391.110992,495.556, 403.095856,497.199005, 403.282013,497.197968);
|
|
|
|
SkOpSegment::debugShowActiveSpans id=4 (391.110992,495.556 392.290985,493.165009) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=? windValue=1
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSpan::sortableTop dir=kLeft seg=4 t=0.5 pt=(391.700989,494.360504)
|
|
|
|
SkOpSpan::sortableTop [0] valid=1 operand=0 span=27 ccw=0 seg=14 {{{374.477997f, 480.312012f}, {356.220001f, 496.303986f}}} t=0.878471447 pt=(358.438873,494.360504) slope=(-18.2579956,15.9919739)
|
|
|
|
SkOpSpan::sortableTop [1] valid=1 operand=0 span=7 ccw=1 seg=4 {{{391.110992f, 495.556f}, {392.290985f, 493.165009f}}} t=0.5 pt=(391.700989,494.360504) slope=(1.17999268,-2.39099121)
|
|
|
|
SkOpSegment::markWinding id=4 (391.110992,495.556 392.290985,493.165009) t=0 [7] (391.110992,495.556) tEnd=1 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markWinding id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 [9] (392.290985,493.165009) tEnd=1 newWindSum=1 newOppSum=0 oppSum=? windSum=? windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markWinding id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 [11] (386.649994,491.821014) tEnd=1 newWindSum=1 newOppSum=0 oppSum=? windSum=? windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markWinding id=7 (381.602997,490.773987 383.391998,488.382996) t=0 [13] (381.602997,490.773987) tEnd=1 newWindSum=1 newOppSum=0 oppSum=? windSum=? windValue=1 oppValue=0
|
|
|
|
SkOpSegment::markWinding id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 [15] (383.391998,488.382996) tEnd=1 newWindSum=1 newOppSum=0 oppSum=? windSum=? windValue=1 oppValue=0
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::markWinding id=4 (391.110992,495.556 392.290985,493.165009) t=0 [7] (391.110992,495.556) tEnd=1 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::findNextWinding
|
|
|
|
SkOpAngle::dumpOne [4/7] next=3/6 sect=5/5 s=0 [7] e=1 [8] sgn=-1 windVal=1 windSum=1 oppVal=0 oppSum=0
|
|
|
|
SkOpAngle::dumpOne [3/6] next=4/7 sect=29/29 s=1 [6] e=0.0134156992 [62] sgn=1 windVal=2 windSum=2 done
|
|
|
|
SkOpSegment::markDone id=4 (391.110992,495.556 392.290985,493.165009) t=0 [7] (391.110992,495.556) tEnd=1 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::debugShowActiveSpans id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 tEnd=1 windSum=1 oppSum=0 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=1 oppSum=0 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=1 oppSum=0 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=1 oppSum=0 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::findNextWinding simple
|
|
|
|
SkOpSegment::markDone id=5 (392.290985,493.165009 392.290985,493.165009 388.993988,492.056 386.649994,491.821014) t=0 [9] (392.290985,493.165009) tEnd=1 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=1 oppValue=0
|
|
|
|
bridgeWinding current id=5 from=(386.649994,491.821014) to=(392.290985,493.165009)
|
|
|
|
path.moveTo(386.649994,491.821014);
|
|
|
|
path.cubicTo(388.993988,492.056, 392.290985,493.165009, 392.290985,493.165009);
|
|
|
|
SkOpSegment::debugShowActiveSpans id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 tEnd=1 windSum=1 oppSum=0 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=1 oppSum=0 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=1 oppSum=0 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::findNextWinding simple
|
|
|
|
SkOpSegment::markDone id=6 (386.649994,491.821014 384.243988,491.45401 381.602997,490.773987 381.602997,490.773987) t=0 [11] (386.649994,491.821014) tEnd=1 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=1 oppValue=0
|
|
|
|
bridgeWinding current id=6 from=(381.602997,490.773987) to=(386.649994,491.821014)
|
|
|
|
path.moveTo(381.602997,490.773987);
|
|
|
|
path.cubicTo(381.602997,490.773987, 384.243988,491.45401, 386.649994,491.821014);
|
|
|
|
SkOpSegment::debugShowActiveSpans id=7 (381.602997,490.773987 383.391998,488.382996) t=0 tEnd=1 windSum=1 oppSum=0 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=1 oppSum=0 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::findNextWinding simple
|
|
|
|
SkOpSegment::markDone id=7 (381.602997,490.773987 383.391998,488.382996) t=0 [13] (381.602997,490.773987) tEnd=1 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=1 oppValue=0
|
|
|
|
bridgeWinding current id=7 from=(383.391998,488.382996) to=(381.602997,490.773987)
|
|
|
|
path.moveTo(383.391998,488.382996);
|
|
|
|
path.lineTo(381.602997,490.773987);
|
|
|
|
SkOpSegment::debugShowActiveSpans id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 tEnd=1 windSum=1 oppSum=0 windValue=1 oppValue=0
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSegment::findNextWinding simple
|
|
|
|
SkOpSegment::markDone id=8 (383.391998,488.382996 383.391998,488.382996 379.118988,487.453003 378.938995,485.695007) t=0 [15] (383.391998,488.382996) tEnd=1 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=1 oppValue=0
|
|
|
|
bridgeWinding current id=8 from=(378.938995,485.695007) to=(383.391998,488.382996)
|
|
|
|
path.moveTo(378.938995,485.695007);
|
|
|
|
path.cubicTo(379.118988,487.453003, 383.391998,488.382996, 383.391998,488.382996);
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (378.938995,485.695007 378.805463,483.777863 382.270366,484.957757 384.280823,485.642365) t=0 tEnd=0.902185418 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=? windValue=2
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=? windValue=2
|
|
|
|
SkOpSpan::sortableTop dir=kTop seg=11 t=0.451092709 pt=(380.805908,484.693024)
|
|
|
|
SkOpSpan::sortableTop [0] valid=1 operand=0 span=25 ccw=0 seg=13 {{{387.696991f, 484.351013f}, {382.752014f, 483.834991f}, {376.595001f, 482.123993f}, {374.477997f, 480.312012f}}} t=0.447162422 pt=(380.805908,483.039764) slope=(-14.9362868,-4.09791125)
|
|
|
|
SkOpSpan::sortableTop [1] valid=1 operand=0 span=21 ccw=1 seg=11 {{{378.938995f, 485.695007f}, {378.790985f, 483.570007f}, {383.063995f, 485.25f}, {384.877014f, 485.842987f}}} t=0.451092709 pt=(380.805908,484.693024) slope=(7.32116938,0.937087304)
|
|
|
|
SkOpSegment::markWinding id=11 (378.938995,485.695007 378.790985,483.570007 383.063995,485.25 384.877014,485.842987) t=0 [21] (378.938995,485.695007) tEnd=0.902185418 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=2 oppValue=0
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::markWinding id=11 (378.938995,485.695007 378.790985,483.570007 383.063995,485.25 384.877014,485.842987) t=0.902185418 [63] (384.280823,485.642365) tEnd=0.926637941 newWindSum=1 newOppSum=0 oppSum=? windSum=? windValue=2 oppValue=0
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::markWinding id=11 (378.938995,485.695007 378.790985,483.570007 383.063995,485.25 384.877014,485.842987) t=0.926637941 [65] (384.440979,485.696869) tEnd=1 newWindSum=1 newOppSum=0 oppSum=? windSum=? windValue=2 oppValue=0
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::markWinding id=11 (378.938995,485.695007 378.790985,483.570007 383.063995,485.25 384.877014,485.842987) t=0 [21] (378.938995,485.695007) tEnd=0.902185418 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=2 oppValue=0
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::markDone id=11 (378.938995,485.695007 378.790985,483.570007 383.063995,485.25 384.877014,485.842987) t=0 [21] (378.938995,485.695007) tEnd=0.902185418 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=2 oppValue=0
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
bridgeWinding chase.append id=8
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.280823,485.642365 384.335313,485.66092 384.388726,485.679113 384.440979,485.696869) t=0.902185418 tEnd=0.926637941 windSum=1 oppSum=0 windValue=2 oppValue=0
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=1 oppSum=0 windValue=2 oppValue=0
|
|
|
|
SkOpSegment::markDone id=11 (378.938995,485.695007 378.790985,483.570007 383.063995,485.25 384.877014,485.842987) t=0.902185418 [63] (384.280823,485.642365) tEnd=0.926637941 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=2 oppValue=0
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
SkOpSegment::debugShowActiveSpans id=11 (384.440979,485.696869 384.597748,485.750141 384.744007,485.799484 384.877014,485.842987) t=0.926637941 tEnd=1 windSum=1 oppSum=0 windValue=2 oppValue=0
|
|
|
|
SkOpSegment::markDone id=11 (378.938995,485.695007 378.790985,483.570007 383.063995,485.25 384.877014,485.842987) t=0.926637941 [65] (384.440979,485.696869) tEnd=1 newWindSum=1 newOppSum=0 oppSum=0 windSum=1 windValue=2 oppValue=0
|
|
|
|
SkOpSegment::nextChase mismatched signs
|
|
|
|
</div>
|
2015-10-16 16:03:38 +00:00
|
|
|
|
2014-06-17 12:15:38 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
2016-07-18 17:01:36 +00:00
|
|
|
var testDivs = [
|
2016-12-08 19:36:32 +00:00
|
|
|
joel_2,
|
2016-08-31 21:36:29 +00:00
|
|
|
];
|
2014-06-17 12:15:38 +00:00
|
|
|
|
|
|
|
var decimal_places = 3; // make this 3 to show more precision
|
|
|
|
|
|
|
|
var tests = [];
|
|
|
|
var testLines = [];
|
|
|
|
var testTitles = [];
|
|
|
|
var testIndex = 0;
|
|
|
|
var ctx;
|
|
|
|
|
|
|
|
var xmin, xmax, focusXmin, focusXmax;
|
|
|
|
var ymin, ymax, focusYmin, focusYmax;
|
|
|
|
var scale;
|
|
|
|
var mouseX, mouseY;
|
|
|
|
var srcLeft, srcTop;
|
|
|
|
var screenWidth, screenHeight;
|
2015-04-20 15:31:59 +00:00
|
|
|
var drawnPts, drawnLines, drawnQuads, drawnConics, drawnCubics;
|
2014-06-17 12:15:38 +00:00
|
|
|
var curveT = 0;
|
|
|
|
|
|
|
|
var pt_labels = 2;
|
|
|
|
var collect_bounds = false;
|
|
|
|
var control_lines = 0;
|
|
|
|
var curve_t = false;
|
|
|
|
var debug_xy = 1;
|
|
|
|
var focus_enabled = false;
|
|
|
|
var focus_on_selection = false;
|
|
|
|
var step_limit = 0;
|
|
|
|
var draw_active = false;
|
|
|
|
var draw_add = false;
|
|
|
|
var draw_angle = 0;
|
2015-05-11 14:21:27 +00:00
|
|
|
var draw_coincidence = false;
|
2014-06-17 12:15:38 +00:00
|
|
|
var draw_deriviatives = 0;
|
|
|
|
var draw_hints = false;
|
|
|
|
var draw_id = false;
|
|
|
|
var draw_intersection = 0;
|
|
|
|
var draw_intersectT = false;
|
|
|
|
var draw_legend = true;
|
|
|
|
var draw_log = false;
|
|
|
|
var draw_mark = false;
|
|
|
|
var draw_midpoint = false;
|
|
|
|
var draw_op = 0;
|
|
|
|
var draw_sequence = false;
|
|
|
|
var draw_sort = 0;
|
2015-04-23 16:13:37 +00:00
|
|
|
var draw_top = false;
|
2014-06-17 12:15:38 +00:00
|
|
|
var draw_path = 3;
|
|
|
|
var draw_computed = 0;
|
|
|
|
var retina_scale = !!window.devicePixelRatio;
|
|
|
|
|
|
|
|
var activeCount = 0;
|
|
|
|
var addCount = 0;
|
|
|
|
var angleCount = 0;
|
2015-05-11 14:21:27 +00:00
|
|
|
var coinCount = 0;
|
2014-06-17 12:15:38 +00:00
|
|
|
var opCount = 0;
|
|
|
|
var sectCount = 0;
|
|
|
|
var sortCount = 0;
|
2015-04-23 16:13:37 +00:00
|
|
|
var topCount = 0;
|
2014-06-17 12:15:38 +00:00
|
|
|
var markCount = 0;
|
|
|
|
var activeMax = 0;
|
|
|
|
var addMax = 0;
|
|
|
|
var angleMax = 0;
|
2015-05-11 14:21:27 +00:00
|
|
|
var coinMax = 0;
|
2014-06-17 12:15:38 +00:00
|
|
|
var sectMax = 0;
|
|
|
|
var sectMax2 = 0;
|
|
|
|
var sortMax = 0;
|
2015-04-23 16:13:37 +00:00
|
|
|
var topMax = 0;
|
2014-06-17 12:15:38 +00:00
|
|
|
var markMax = 0;
|
|
|
|
var opMax = 0;
|
|
|
|
var stepMax = 0;
|
|
|
|
var lastIndex = 0;
|
|
|
|
var hasPath = false;
|
2015-10-16 16:03:38 +00:00
|
|
|
var hasAlignedPath = false;
|
2014-06-17 12:15:38 +00:00
|
|
|
var hasComputedPath = false;
|
2015-03-26 14:52:43 +00:00
|
|
|
var angleBetween = false;
|
|
|
|
var afterIndex = 0;
|
2014-06-17 12:15:38 +00:00
|
|
|
|
|
|
|
var firstActiveSpan = -1;
|
|
|
|
var logStart = -1;
|
|
|
|
var logRange = 0;
|
|
|
|
|
|
|
|
var SPAN_ID = 0;
|
|
|
|
var SPAN_X1 = SPAN_ID + 1;
|
|
|
|
var SPAN_Y1 = SPAN_X1 + 1;
|
|
|
|
var SPAN_X2 = SPAN_Y1 + 1;
|
|
|
|
var SPAN_Y2 = SPAN_X2 + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
|
2016-07-18 17:01:36 +00:00
|
|
|
var SPAN_L_TX = SPAN_Y2 + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var SPAN_L_TY = SPAN_L_TX + 1;
|
2016-07-18 17:01:36 +00:00
|
|
|
var SPAN_L_OTHER = SPAN_L_TY + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var SPAN_L_OTHERT = SPAN_L_OTHER + 1;
|
|
|
|
var SPAN_L_OTHERI = SPAN_L_OTHERT + 1;
|
|
|
|
var SPAN_L_SUM = SPAN_L_OTHERI + 1;
|
|
|
|
var SPAN_L_VAL = SPAN_L_SUM + 1;
|
|
|
|
var SPAN_L_OPP = SPAN_L_VAL + 1;
|
|
|
|
|
|
|
|
var SPAN_X3 = SPAN_Y2 + 1;
|
|
|
|
var SPAN_Y3 = SPAN_X3 + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
|
2016-07-18 17:01:36 +00:00
|
|
|
var SPAN_Q_TX = SPAN_Y3 + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var SPAN_Q_TY = SPAN_Q_TX + 1;
|
2016-07-18 17:01:36 +00:00
|
|
|
var SPAN_Q_OTHER = SPAN_Q_TY + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var SPAN_Q_OTHERT = SPAN_Q_OTHER + 1;
|
|
|
|
var SPAN_Q_OTHERI = SPAN_Q_OTHERT + 1;
|
|
|
|
var SPAN_Q_SUM = SPAN_Q_OTHERI + 1;
|
|
|
|
var SPAN_Q_VAL = SPAN_Q_SUM + 1;
|
|
|
|
var SPAN_Q_OPP = SPAN_Q_VAL + 1;
|
|
|
|
|
2015-04-20 15:31:59 +00:00
|
|
|
var SPAN_K_W = SPAN_Y3 + 1;
|
2016-07-18 17:01:36 +00:00
|
|
|
var SPAN_K_TX = SPAN_K_W + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
var SPAN_K_TY = SPAN_K_TX + 1;
|
2016-07-18 17:01:36 +00:00
|
|
|
var SPAN_K_OTHER = SPAN_K_TY + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
var SPAN_K_OTHERT = SPAN_K_OTHER + 1;
|
|
|
|
var SPAN_K_OTHERI = SPAN_K_OTHERT + 1;
|
|
|
|
var SPAN_K_SUM = SPAN_K_OTHERI + 1;
|
|
|
|
var SPAN_K_VAL = SPAN_K_SUM + 1;
|
|
|
|
var SPAN_K_OPP = SPAN_K_VAL + 1;
|
|
|
|
|
2014-06-17 12:15:38 +00:00
|
|
|
var SPAN_X4 = SPAN_Y3 + 1;
|
|
|
|
var SPAN_Y4 = SPAN_X4 + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
|
2016-07-18 17:01:36 +00:00
|
|
|
var SPAN_C_TX = SPAN_Y4 + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var SPAN_C_TY = SPAN_C_TX + 1;
|
2016-07-18 17:01:36 +00:00
|
|
|
var SPAN_C_OTHER = SPAN_C_TY + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var SPAN_C_OTHERT = SPAN_C_OTHER + 1;
|
|
|
|
var SPAN_C_OTHERI = SPAN_C_OTHERT + 1;
|
|
|
|
var SPAN_C_SUM = SPAN_C_OTHERI + 1;
|
|
|
|
var SPAN_C_VAL = SPAN_C_SUM + 1;
|
|
|
|
var SPAN_C_OPP = SPAN_C_VAL + 1;
|
|
|
|
|
|
|
|
var ACTIVE_LINE_SPAN = 1;
|
|
|
|
var ACTIVE_QUAD_SPAN = ACTIVE_LINE_SPAN + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
var ACTIVE_CONIC_SPAN = ACTIVE_QUAD_SPAN + 1;
|
|
|
|
var ACTIVE_CUBIC_SPAN = ACTIVE_CONIC_SPAN + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
|
|
|
|
var ADD_MOVETO = ACTIVE_CUBIC_SPAN + 1;
|
|
|
|
var ADD_LINETO = ADD_MOVETO + 1;
|
|
|
|
var ADD_QUADTO = ADD_LINETO + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
var ADD_CONICTO = ADD_QUADTO + 1;
|
|
|
|
var ADD_CUBICTO = ADD_CONICTO + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var ADD_CLOSE = ADD_CUBICTO + 1;
|
|
|
|
var ADD_FILL = ADD_CLOSE + 1;
|
|
|
|
|
|
|
|
var PATH_LINE = ADD_FILL + 1;
|
|
|
|
var PATH_QUAD = PATH_LINE + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
var PATH_CONIC = PATH_QUAD + 1;
|
|
|
|
var PATH_CUBIC = PATH_CONIC + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
|
|
|
|
var INTERSECT_LINE = PATH_CUBIC + 1;
|
|
|
|
var INTERSECT_LINE_2 = INTERSECT_LINE + 1;
|
|
|
|
var INTERSECT_LINE_NO = INTERSECT_LINE_2 + 1;
|
|
|
|
var INTERSECT_QUAD_LINE = INTERSECT_LINE_NO + 1;
|
|
|
|
var INTERSECT_QUAD_LINE_2 = INTERSECT_QUAD_LINE + 1;
|
|
|
|
var INTERSECT_QUAD_LINE_NO = INTERSECT_QUAD_LINE_2 + 1;
|
|
|
|
var INTERSECT_QUAD = INTERSECT_QUAD_LINE_NO + 1;
|
|
|
|
var INTERSECT_QUAD_2 = INTERSECT_QUAD + 1;
|
|
|
|
var INTERSECT_QUAD_NO = INTERSECT_QUAD_2 + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
var INTERSECT_CONIC_LINE = INTERSECT_QUAD_NO + 1;
|
|
|
|
var INTERSECT_CONIC_LINE_2 = INTERSECT_CONIC_LINE + 1;
|
|
|
|
var INTERSECT_CONIC_LINE_NO = INTERSECT_CONIC_LINE_2 + 1;
|
2016-07-18 17:01:36 +00:00
|
|
|
var INTERSECT_CONIC_QUAD = INTERSECT_CONIC_LINE_NO + 1;
|
|
|
|
var INTERSECT_CONIC_QUAD_2 = INTERSECT_CONIC_QUAD + 1;
|
2016-09-26 12:36:58 +00:00
|
|
|
var INTERSECT_CONIC_QUAD_3 = INTERSECT_CONIC_QUAD_2 + 1;
|
|
|
|
var INTERSECT_CONIC_QUAD_4 = INTERSECT_CONIC_QUAD_3 + 1;
|
|
|
|
var INTERSECT_CONIC_QUAD_NO = INTERSECT_CONIC_QUAD_4 + 1;
|
2016-07-18 17:01:36 +00:00
|
|
|
var INTERSECT_CONIC = INTERSECT_CONIC_QUAD_NO + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
var INTERSECT_CONIC_2 = INTERSECT_CONIC + 1;
|
|
|
|
var INTERSECT_CONIC_NO = INTERSECT_CONIC_2 + 1;
|
|
|
|
var INTERSECT_SELF_CUBIC = INTERSECT_CONIC_NO + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var INTERSECT_SELF_CUBIC_NO = INTERSECT_SELF_CUBIC + 1;
|
|
|
|
var INTERSECT_CUBIC_LINE = INTERSECT_SELF_CUBIC_NO + 1;
|
|
|
|
var INTERSECT_CUBIC_LINE_2 = INTERSECT_CUBIC_LINE + 1;
|
|
|
|
var INTERSECT_CUBIC_LINE_3 = INTERSECT_CUBIC_LINE_2 + 1;
|
|
|
|
var INTERSECT_CUBIC_LINE_NO = INTERSECT_CUBIC_LINE_3 + 1;
|
|
|
|
var INTERSECT_CUBIC_QUAD = INTERSECT_CUBIC_LINE_NO + 1;
|
|
|
|
var INTERSECT_CUBIC_QUAD_2 = INTERSECT_CUBIC_QUAD + 1;
|
|
|
|
var INTERSECT_CUBIC_QUAD_3 = INTERSECT_CUBIC_QUAD_2 + 1;
|
|
|
|
var INTERSECT_CUBIC_QUAD_4 = INTERSECT_CUBIC_QUAD_3 + 1;
|
|
|
|
var INTERSECT_CUBIC_QUAD_NO = INTERSECT_CUBIC_QUAD_4 + 1;
|
|
|
|
var INTERSECT_CUBIC = INTERSECT_CUBIC_QUAD_NO + 1;
|
|
|
|
var INTERSECT_CUBIC_2 = INTERSECT_CUBIC + 1;
|
|
|
|
var INTERSECT_CUBIC_3 = INTERSECT_CUBIC_2 + 1;
|
|
|
|
var INTERSECT_CUBIC_4 = INTERSECT_CUBIC_3 + 1;
|
|
|
|
// FIXME: add cubic 5- 9
|
|
|
|
var INTERSECT_CUBIC_NO = INTERSECT_CUBIC_4 + 1;
|
|
|
|
|
|
|
|
var SORT_UNARY = INTERSECT_CUBIC_NO + 1;
|
|
|
|
var SORT_BINARY = SORT_UNARY + 1;
|
|
|
|
|
|
|
|
var OP_DIFFERENCE = SORT_BINARY + 1;
|
|
|
|
var OP_INTERSECT = OP_DIFFERENCE + 1;
|
|
|
|
var OP_UNION = OP_INTERSECT + 1;
|
|
|
|
var OP_XOR = OP_UNION + 1;
|
|
|
|
|
|
|
|
var MARK_LINE = OP_XOR + 1;
|
|
|
|
var MARK_QUAD = MARK_LINE + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
var MARK_CONIC = MARK_QUAD + 1;
|
|
|
|
var MARK_CUBIC = MARK_CONIC + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var MARK_DONE_LINE = MARK_CUBIC + 1;
|
|
|
|
var MARK_DONE_QUAD = MARK_DONE_LINE + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
var MARK_DONE_CONIC = MARK_DONE_QUAD + 1;
|
|
|
|
var MARK_DONE_CUBIC = MARK_DONE_CONIC + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var MARK_UNSORTABLE_LINE = MARK_DONE_CUBIC + 1;
|
|
|
|
var MARK_UNSORTABLE_QUAD = MARK_UNSORTABLE_LINE + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
var MARK_UNSORTABLE_CONIC = MARK_UNSORTABLE_QUAD + 1;
|
|
|
|
var MARK_UNSORTABLE_CUBIC = MARK_UNSORTABLE_CONIC + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var MARK_SIMPLE_LINE = MARK_UNSORTABLE_CUBIC + 1;
|
|
|
|
var MARK_SIMPLE_QUAD = MARK_SIMPLE_LINE + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
var MARK_SIMPLE_CONIC = MARK_SIMPLE_QUAD + 1;
|
|
|
|
var MARK_SIMPLE_CUBIC = MARK_SIMPLE_CONIC + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var MARK_SIMPLE_DONE_LINE = MARK_SIMPLE_CUBIC + 1;
|
|
|
|
var MARK_SIMPLE_DONE_QUAD = MARK_SIMPLE_DONE_LINE + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
var MARK_SIMPLE_DONE_CONIC = MARK_SIMPLE_DONE_QUAD + 1;
|
|
|
|
var MARK_SIMPLE_DONE_CUBIC = MARK_SIMPLE_DONE_CONIC + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var MARK_DONE_UNARY_LINE = MARK_SIMPLE_DONE_CUBIC + 1;
|
|
|
|
var MARK_DONE_UNARY_QUAD = MARK_DONE_UNARY_LINE + 1;
|
2015-04-20 15:31:59 +00:00
|
|
|
var MARK_DONE_UNARY_CONIC = MARK_DONE_UNARY_QUAD + 1;
|
|
|
|
var MARK_DONE_UNARY_CUBIC = MARK_DONE_UNARY_CONIC + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
var MARK_ANGLE_LAST = MARK_DONE_UNARY_CUBIC + 1;
|
|
|
|
|
|
|
|
var COMPUTED_SET_1 = MARK_ANGLE_LAST + 1;
|
|
|
|
var COMPUTED_SET_2 = COMPUTED_SET_1 + 1;
|
|
|
|
|
2015-05-11 14:21:27 +00:00
|
|
|
var ANGLE_AFTER = COMPUTED_SET_2 + 1;
|
2015-03-26 14:52:43 +00:00
|
|
|
var ANGLE_AFTERPART = ANGLE_AFTER + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
|
2015-03-26 14:52:43 +00:00
|
|
|
var ACTIVE_OP = ANGLE_AFTERPART + 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
|
2015-05-11 14:21:27 +00:00
|
|
|
var COIN_MAIN_SPAN = ACTIVE_OP + 1;
|
|
|
|
var COIN_OPP_SPAN = COIN_MAIN_SPAN + 1;
|
|
|
|
|
|
|
|
var FRAG_TYPE_LAST = COIN_OPP_SPAN;
|
2014-06-17 12:15:38 +00:00
|
|
|
|
|
|
|
var REC_TYPE_UNKNOWN = -1;
|
|
|
|
var REC_TYPE_PATH = 0;
|
2015-03-26 14:52:43 +00:00
|
|
|
var REC_TYPE_PATH2 = 1;
|
|
|
|
var REC_TYPE_SECT = 2;
|
|
|
|
var REC_TYPE_ACTIVE = 3;
|
|
|
|
var REC_TYPE_ADD = 4;
|
|
|
|
var REC_TYPE_SORT = 5;
|
|
|
|
var REC_TYPE_OP = 6;
|
|
|
|
var REC_TYPE_MARK = 7;
|
|
|
|
var REC_TYPE_COMPUTED = 8;
|
|
|
|
var REC_TYPE_COIN = 9;
|
|
|
|
var REC_TYPE_ANGLE = 10;
|
|
|
|
var REC_TYPE_ACTIVE_OP = 11;
|
|
|
|
var REC_TYPE_AFTERPART = 12;
|
2015-04-23 16:13:37 +00:00
|
|
|
var REC_TYPE_TOP = 13;
|
2015-05-11 14:21:27 +00:00
|
|
|
var REC_TYPE_COINCIDENCE = 14;
|
2015-10-16 16:03:38 +00:00
|
|
|
var REC_TYPE_ALIGNED = 15;
|
|
|
|
var REC_TYPE_LAST = REC_TYPE_ALIGNED;
|
2014-06-17 12:15:38 +00:00
|
|
|
|
|
|
|
function strs_to_nums(strs) {
|
|
|
|
var result = [];
|
|
|
|
for (var idx = 1; idx < strs.length; ++idx) {
|
|
|
|
var str = strs[idx];
|
|
|
|
var num = parseFloat(str);
|
|
|
|
if (isNaN(num)) {
|
|
|
|
result.push(str);
|
|
|
|
} else {
|
|
|
|
result.push(num);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
function filter_str_by(id, str, regex, array) {
|
|
|
|
if (regex.test(str)) {
|
|
|
|
var strs = regex.exec(str);
|
|
|
|
var result = strs_to_nums(strs);
|
|
|
|
array.push(id);
|
|
|
|
array.push(result);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function construct_regexp2(pattern) {
|
|
|
|
var escape = pattern.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
|
|
escape = escape.replace(/UNSORTABLE/g, "\\*\\*\\* UNSORTABLE \\*\\*\\*");
|
|
|
|
escape = escape.replace(/CUBIC_VAL/g, "\\(P_VAL P_VAL P_VAL P_VAL\\)");
|
2015-04-20 15:31:59 +00:00
|
|
|
escape = escape.replace(/CONIC_VAL/g, "\\(P_VAL P_VAL P_VAL W_VAL\\)");
|
2014-06-17 12:15:38 +00:00
|
|
|
escape = escape.replace(/QUAD_VAL/g, "\\(P_VAL P_VAL P_VAL\\)");
|
|
|
|
escape = escape.replace(/LINE_VAL/g, "\\(P_VAL P_VAL\\)");
|
|
|
|
escape = escape.replace(/FILL_TYPE/g, "SkPath::k[a-zA-Z]+_FillType");
|
2015-03-26 14:52:43 +00:00
|
|
|
escape = escape.replace(/PTR_VAL/g, "0x[0-9A-F]+");
|
2014-06-17 12:15:38 +00:00
|
|
|
escape = escape.replace(/PT_VAL/g, "\\(P_VAL\\)");
|
|
|
|
escape = escape.replace(/P_VAL/g, "(-?\\d+\\.?\\d*(?:e-?\\d+)?)[Ff]?, ?(-?\\d+\\.?\\d*(?:e-?\\d+)?)[Ff]?");
|
|
|
|
escape = escape.replace(/T_VAL/g, "(-?\\d+\\.?\\d*(?:e-?\\d+)?)");
|
2015-04-20 15:31:59 +00:00
|
|
|
escape = escape.replace(/W_VAL/g, "(-?\\d+\\.?\\d*(?:e-?\\d+)?)[Ff]?");
|
2014-06-17 12:15:38 +00:00
|
|
|
escape = escape.replace(/PATH/g, "pathB?");
|
2015-04-20 15:31:59 +00:00
|
|
|
escape = escape.replace(/IDX/g, "(-?\\d+)");
|
2014-06-17 12:15:38 +00:00
|
|
|
escape = escape.replace(/NUM/g, "(-?\\d+)");
|
|
|
|
escape = escape.replace(/OPT/g, "(\\?|-?\\d+)");
|
|
|
|
return new RegExp(escape, 'i');
|
|
|
|
}
|
|
|
|
|
|
|
|
function construct_regexp2c(pattern) {
|
|
|
|
var escape = pattern.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
|
|
escape = escape.replace(/UNSORTABLE/g, "\\*\\*\\* UNSORTABLE \\*\\*\\*");
|
2015-03-26 14:52:43 +00:00
|
|
|
escape = escape.replace(/CUBIC_VAL/g, "(?:\\$\\d = )?\\{\\{\\{P_VAL\\}, \\{P_VAL\\}, \\{P_VAL\\}, \\{P_VAL\\}\\}\\}");
|
2015-04-20 15:31:59 +00:00
|
|
|
escape = escape.replace(/CONIC_VAL/g, "(?:\\$\\d = )?\\{\\{\\{\\{P_VAL\\}, \\{P_VAL\\}, \\{P_VAL\\}\\}\\}, W_VAL\\}");
|
2015-03-26 14:52:43 +00:00
|
|
|
escape = escape.replace(/QUAD_VAL/g, "(?:\\$\\d = )?\\{\\{\\{P_VAL\\}, \\{P_VAL\\}, \\{P_VAL\\}\\}\\}");
|
|
|
|
escape = escape.replace(/LINE_VAL/g, "(?:\\$\\d = )?\\{\\{\\{P_VAL\\}, \\{P_VAL\\}\\}\\}");
|
2014-06-17 12:15:38 +00:00
|
|
|
escape = escape.replace(/FILL_TYPE/g, "SkPath::k[a-zA-Z]+_FillType");
|
2015-03-26 14:52:43 +00:00
|
|
|
escape = escape.replace(/PTR_VAL/g, "0x[0-9A-F]+");
|
2014-06-17 12:15:38 +00:00
|
|
|
escape = escape.replace(/PT_VAL/g, "\\{\\{P_VAL\\}\\}");
|
2015-03-26 14:52:43 +00:00
|
|
|
escape = escape.replace(/P_VAL/g, "(?:f?[xX] = )?(-?\\d+\\.?\\d*(?:e-?\\d+)?)[Ff]?, *(?: f?[yY] = )?(-?\\d+\\.?\\d*(?:e-?\\d+)?)[Ff]?");
|
2014-06-17 12:15:38 +00:00
|
|
|
escape = escape.replace(/T_VAL/g, "(-?\\d+\\.?\\d*(?:e-?\\d+)?)");
|
2015-04-20 15:31:59 +00:00
|
|
|
escape = escape.replace(/W_VAL/g, "(-?\\d+\\.?\\d*(?:e-?\\d+)?)[Ff]?");
|
2014-06-17 12:15:38 +00:00
|
|
|
escape = escape.replace(/OPER/g, "[a-z]+");
|
|
|
|
escape = escape.replace(/PATH/g, "pathB?");
|
|
|
|
escape = escape.replace(/T_F/g, "([TF])");
|
2015-04-20 15:31:59 +00:00
|
|
|
escape = escape.replace(/IDX/g, "(-?\\d+)");
|
2014-06-17 12:15:38 +00:00
|
|
|
escape = escape.replace(/NUM/g, "(-?\\d+)");
|
|
|
|
escape = escape.replace(/OPT/g, "(\\?|-?\\d+)");
|
|
|
|
return new RegExp(escape, 'i');
|
|
|
|
}
|
|
|
|
|
|
|
|
function match_regexp(str, lineNo, array, id, pattern) {
|
|
|
|
var regex = construct_regexp2(pattern);
|
|
|
|
if (filter_str_by(id, str, regex, array)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
regex = construct_regexp2c(pattern);
|
|
|
|
return filter_str_by(id, str, regex, array);
|
|
|
|
}
|
|
|
|
|
|
|
|
function endsWith(str, suffix) {
|
|
|
|
return str.indexOf(suffix, str.length - suffix.length) !== -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
function parse_all(test) {
|
|
|
|
var lines = test.match(/[^\r\n]+/g);
|
|
|
|
var records = []; // a rec can be the original paths, a set of intersections, a set of active spans, a sort, or a path add
|
|
|
|
var record = [];
|
|
|
|
var recType = REC_TYPE_UNKNOWN;
|
|
|
|
var lastLineNo;
|
|
|
|
var moveX, moveY;
|
|
|
|
for (var lineNo = 0; lineNo < lines.length; ++lineNo) {
|
|
|
|
var line = lines[lineNo];
|
|
|
|
if (line.length == 0) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
var opStart = "SkOpSegment::";
|
|
|
|
if (line.lastIndexOf(opStart, 0) === 0) {
|
|
|
|
line = line.substr(opStart.length);
|
|
|
|
}
|
|
|
|
var angleStart = "SkOpAngle::";
|
|
|
|
if (line.lastIndexOf(angleStart, 0) === 0) {
|
|
|
|
line = line.substr(angleStart.length);
|
|
|
|
}
|
2015-05-11 14:21:27 +00:00
|
|
|
var coinStart = "SkOpCoincidence::";
|
|
|
|
if (line.lastIndexOf(coinStart, 0) === 0) {
|
|
|
|
line = line.substr(coinStart.length);
|
|
|
|
}
|
2015-03-26 14:52:43 +00:00
|
|
|
var type = line.lastIndexOf("debugShowActiveSpans", 0) === 0 ? REC_TYPE_ACTIVE
|
2015-05-11 14:21:27 +00:00
|
|
|
: line.lastIndexOf("debugShowCoincidence", 0) === 0 ? REC_TYPE_COINCIDENCE
|
2015-03-26 14:52:43 +00:00
|
|
|
: line.lastIndexOf("((SkOpSegment*)", 0) === 0 ? REC_TYPE_PATH2
|
2016-07-18 17:01:36 +00:00
|
|
|
: line.lastIndexOf("debugShowTs", 0) === 0 ? REC_TYPE_COIN
|
2015-03-26 14:52:43 +00:00
|
|
|
: line.lastIndexOf("afterPart", 0) === 0 ? REC_TYPE_AFTERPART
|
2014-06-17 12:15:38 +00:00
|
|
|
: line.lastIndexOf("debugShow", 0) === 0 ? REC_TYPE_SECT
|
|
|
|
: line.lastIndexOf("activeOp", 0) === 0 ? REC_TYPE_ACTIVE_OP
|
|
|
|
: line.lastIndexOf("computed", 0) === 0 ? REC_TYPE_COMPUTED
|
|
|
|
: line.lastIndexOf("debugOne", 0) === 0 ? REC_TYPE_SORT
|
2015-10-16 16:03:38 +00:00
|
|
|
: line.lastIndexOf("aligned=", 0) === 0 ? REC_TYPE_ALIGNED
|
2014-06-17 12:15:38 +00:00
|
|
|
: line.lastIndexOf("dumpOne", 0) === 0 ? REC_TYPE_SORT
|
2015-04-23 16:13:37 +00:00
|
|
|
: line.lastIndexOf("findTop", 0) === 0 ? REC_TYPE_TOP
|
2014-06-17 12:15:38 +00:00
|
|
|
: line.lastIndexOf("pathB.", 0) === 0 ? REC_TYPE_ADD
|
|
|
|
: line.lastIndexOf("path.", 0) === 0 ? REC_TYPE_ADD
|
|
|
|
: line.lastIndexOf("after", 0) === 0 ? REC_TYPE_ANGLE
|
|
|
|
: line.lastIndexOf("mark", 0) === 0 ? REC_TYPE_MARK
|
|
|
|
: line.lastIndexOf(" {{", 0) === 0 ? REC_TYPE_COMPUTED
|
2015-03-26 14:52:43 +00:00
|
|
|
: line.lastIndexOf("seg=", 0) === 0 ? REC_TYPE_PATH
|
2014-06-17 12:15:38 +00:00
|
|
|
: line.lastIndexOf("op", 0) === 0 ? REC_TYPE_OP
|
|
|
|
: line.lastIndexOf("$", 0) === 0 ? REC_TYPE_PATH
|
|
|
|
: REC_TYPE_UNKNOWN;
|
|
|
|
if (recType != type || recType == REC_TYPE_ADD || recType == REC_TYPE_SECT
|
|
|
|
|| recType == REC_TYPE_ACTIVE_OP || recType == REC_TYPE_ANGLE) {
|
|
|
|
if (recType != REC_TYPE_UNKNOWN) {
|
|
|
|
records.push(recType);
|
|
|
|
records.push(lastLineNo);
|
|
|
|
records.push(record);
|
|
|
|
}
|
|
|
|
record = [];
|
|
|
|
recType = type;
|
|
|
|
lastLineNo = lineNo;
|
|
|
|
}
|
|
|
|
var found = false;
|
|
|
|
switch (recType) {
|
|
|
|
case REC_TYPE_ACTIVE:
|
|
|
|
found = match_regexp(line, lineNo, record, ACTIVE_LINE_SPAN, "debugShowActiveSpans" +
|
2016-07-18 17:01:36 +00:00
|
|
|
" id=IDX LINE_VAL t=T_VAL tEnd=T_VAL windSum=OPT windValue=IDX"
|
2014-06-17 12:15:38 +00:00
|
|
|
) || match_regexp(line, lineNo, record, ACTIVE_QUAD_SPAN, "debugShowActiveSpans" +
|
2016-07-18 17:01:36 +00:00
|
|
|
" id=IDX QUAD_VAL t=T_VAL tEnd=T_VAL windSum=OPT windValue=IDX"
|
2015-04-20 15:31:59 +00:00
|
|
|
) || match_regexp(line, lineNo, record, ACTIVE_CONIC_SPAN, "debugShowActiveSpans" +
|
2016-07-18 17:01:36 +00:00
|
|
|
" id=IDX CONIC_VAL t=T_VAL tEnd=T_VAL windSum=OPT windValue=IDX"
|
2014-06-17 12:15:38 +00:00
|
|
|
) || match_regexp(line, lineNo, record, ACTIVE_CUBIC_SPAN, "debugShowActiveSpans" +
|
2016-07-18 17:01:36 +00:00
|
|
|
" id=IDX CUBIC_VAL t=T_VAL tEnd=T_VAL windSum=OPT windValue=IDX"
|
2015-05-11 14:21:27 +00:00
|
|
|
) || match_regexp(line, lineNo, record, ACTIVE_LINE_SPAN, "debugShowActiveSpans" +
|
2016-07-18 17:01:36 +00:00
|
|
|
" id=IDX LINE_VAL t=T_VAL tEnd=T_VAL windSum=OPT oppSum=OPT windValue=IDX oppValue=NUM"
|
2015-05-11 14:21:27 +00:00
|
|
|
) || match_regexp(line, lineNo, record, ACTIVE_QUAD_SPAN, "debugShowActiveSpans" +
|
2016-07-18 17:01:36 +00:00
|
|
|
" id=IDX QUAD_VAL t=T_VAL tEnd=T_VAL windSum=OPT oppSum=OPT windValue=IDX oppValue=NUM"
|
2015-05-11 14:21:27 +00:00
|
|
|
) || match_regexp(line, lineNo, record, ACTIVE_CONIC_SPAN, "debugShowActiveSpans" +
|
2016-07-18 17:01:36 +00:00
|
|
|
" id=IDX CONIC_VAL t=T_VAL tEnd=T_VAL windSum=OPT oppSum=OPT windValue=IDX oppValue=NUM"
|
2015-05-11 14:21:27 +00:00
|
|
|
) || match_regexp(line, lineNo, record, ACTIVE_CUBIC_SPAN, "debugShowActiveSpans" +
|
2016-07-18 17:01:36 +00:00
|
|
|
" id=IDX CUBIC_VAL t=T_VAL tEnd=T_VAL windSum=OPT oppSum=OPT windValue=IDX oppValue=NUM"
|
2014-06-17 12:15:38 +00:00
|
|
|
);
|
|
|
|
break;
|
|
|
|
case REC_TYPE_ACTIVE_OP:
|
|
|
|
found = match_regexp(line, lineNo, record, ACTIVE_OP, "activeOp" +
|
|
|
|
" id=IDX t=T_VAL tEnd=T_VAL op=OPER miFrom=NUM miTo=NUM suFrom=NUM suTo=NUM result=IDX"
|
|
|
|
);
|
|
|
|
break;
|
|
|
|
case REC_TYPE_ADD:
|
|
|
|
if (match_regexp(line, lineNo, record, ADD_MOVETO, "PATH.moveTo(P_VAL);")) {
|
|
|
|
moveX = record[1][0];
|
|
|
|
moveY = record[1][1];
|
|
|
|
found = true;
|
|
|
|
} else if (match_regexp(line, lineNo, record, ADD_LINETO, "PATH.lineTo(P_VAL);")) {
|
|
|
|
record[1].unshift(moveY);
|
|
|
|
record[1].unshift(moveX);
|
|
|
|
moveX = record[1][2];
|
|
|
|
moveY = record[1][3];
|
|
|
|
found = true;
|
|
|
|
} else if (match_regexp(line, lineNo, record, ADD_QUADTO, "PATH.quadTo(P_VAL, P_VAL);")) {
|
|
|
|
record[1].unshift(moveY);
|
|
|
|
record[1].unshift(moveX);
|
|
|
|
moveX = record[1][4];
|
|
|
|
moveY = record[1][5];
|
|
|
|
found = true;
|
2015-04-20 15:31:59 +00:00
|
|
|
} else if (match_regexp(line, lineNo, record, ADD_CONICTO, "PATH.conicTo(P_VAL, P_VAL, T_VAL);")) {
|
|
|
|
record[1].unshift(moveY);
|
|
|
|
record[1].unshift(moveX);
|
|
|
|
moveX = record[1][4];
|
|
|
|
moveY = record[1][5];
|
|
|
|
found = true;
|
2014-06-17 12:15:38 +00:00
|
|
|
} else if (match_regexp(line, lineNo, record, ADD_CUBICTO, "PATH.cubicTo(P_VAL, P_VAL, P_VAL);")) {
|
|
|
|
record[1].unshift(moveY);
|
|
|
|
record[1].unshift(moveX);
|
|
|
|
moveX = record[1][6];
|
|
|
|
moveY = record[1][7];
|
|
|
|
found = true;
|
|
|
|
} else if (match_regexp(line, lineNo, record, ADD_FILL, "PATH.setFillType(FILL_TYPE);")) {
|
|
|
|
found = true;
|
|
|
|
} else {
|
|
|
|
found = match_regexp(line, lineNo, record, ADD_CLOSE, "PATH.close();");
|
|
|
|
}
|
|
|
|
break;
|
2015-03-26 14:52:43 +00:00
|
|
|
case REC_TYPE_AFTERPART:
|
|
|
|
found = match_regexp(line, lineNo, record, PATH_LINE, "afterPart LINE_VAL")
|
|
|
|
|| match_regexp(line, lineNo, record, PATH_QUAD, "afterPart QUAD_VAL")
|
2015-04-20 15:31:59 +00:00
|
|
|
|| match_regexp(line, lineNo, record, PATH_CONIC, "afterPart CONIC_VAL")
|
2015-03-26 14:52:43 +00:00
|
|
|
|| match_regexp(line, lineNo, record, PATH_CUBIC, "afterPart CUBIC_VAL")
|
|
|
|
break;
|
2015-10-16 16:03:38 +00:00
|
|
|
case REC_TYPE_ALIGNED:
|
|
|
|
found = match_regexp(line, lineNo, record, PATH_LINE, "aligned=IDX LINE_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, PATH_QUAD, "aligned=IDX QUAD_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, PATH_CONIC, "aligned=IDX CONIC_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, PATH_CUBIC, "aligned=IDX CUBIC_VAL"
|
|
|
|
);
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case REC_TYPE_ANGLE:
|
|
|
|
found = match_regexp(line, lineNo, record, ANGLE_AFTER, "after " +
|
|
|
|
"[IDX/IDX] NUM/NUM tStart=T_VAL tEnd=T_VAL < [IDX/IDX] NUM/NUM tStart=T_VAL tEnd=T_VAL < [IDX/IDX] NUM/NUM tStart=T_VAL tEnd=T_VAL T_F IDX");
|
|
|
|
break;
|
|
|
|
case REC_TYPE_COIN:
|
|
|
|
found = true;
|
|
|
|
break;
|
2015-05-11 14:21:27 +00:00
|
|
|
case REC_TYPE_COINCIDENCE:
|
|
|
|
found = match_regexp(line, lineNo, record, COIN_MAIN_SPAN, "debugShowCoincidence" +
|
|
|
|
" + id=IDX t=T_VAL tEnd=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, COIN_OPP_SPAN, "debugShowCoincidence" +
|
|
|
|
" - id=IDX t=T_VAL tEnd=T_VAL"
|
|
|
|
);
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case REC_TYPE_COMPUTED:
|
|
|
|
found = line == "computed quadratics given"
|
|
|
|
|| match_regexp(line, lineNo, record, COMPUTED_SET_1, "computed quadratics set 1"
|
|
|
|
) || match_regexp(line, lineNo, record, COMPUTED_SET_2, "computed quadratics set 2"
|
|
|
|
) || match_regexp(line, lineNo, record, PATH_QUAD, " QUAD_VAL,"
|
2015-04-20 15:31:59 +00:00
|
|
|
) || match_regexp(line, lineNo, record, PATH_CONIC, " CONIC_VAL,"
|
2014-06-17 12:15:38 +00:00
|
|
|
) || match_regexp(line, lineNo, record, PATH_CUBIC, " CUBIC_VAL,"
|
|
|
|
);
|
|
|
|
break;
|
|
|
|
case REC_TYPE_PATH:
|
2015-03-26 14:52:43 +00:00
|
|
|
found = match_regexp(line, lineNo, record, PATH_LINE, "seg=IDX LINE_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, PATH_QUAD, "seg=IDX QUAD_VAL"
|
2015-04-20 15:31:59 +00:00
|
|
|
) || match_regexp(line, lineNo, record, PATH_CONIC, "seg=IDX CONIC_VAL"
|
2015-03-26 14:52:43 +00:00
|
|
|
) || match_regexp(line, lineNo, record, PATH_CUBIC, "seg=IDX CUBIC_VAL"
|
|
|
|
);
|
|
|
|
break;
|
|
|
|
case REC_TYPE_PATH2:
|
|
|
|
found = match_regexp(line, lineNo, record, PATH_LINE, "((SkOpSegment*) PTR_VAL) [IDX] {LINE_VAL}"
|
|
|
|
) || match_regexp(line, lineNo, record, PATH_QUAD, "((SkOpSegment*) PTR_VAL) [IDX] {QUAD_VAL}"
|
2015-04-20 15:31:59 +00:00
|
|
|
) || match_regexp(line, lineNo, record, PATH_CONIC, "((SkOpSegment*) PTR_VAL) [IDX] {CONIC_VAL}"
|
2015-03-26 14:52:43 +00:00
|
|
|
) || match_regexp(line, lineNo, record, PATH_CUBIC, "((SkOpSegment*) PTR_VAL) [IDX] {CUBIC_VAL}"
|
2014-06-17 12:15:38 +00:00
|
|
|
);
|
|
|
|
break;
|
|
|
|
case REC_TYPE_SECT:
|
|
|
|
found = match_regexp(line, lineNo, record, INTERSECT_LINE, "debugShowLineIntersection" +
|
|
|
|
" wtTs[0]=T_VAL LINE_VAL PT_VAL wnTs[0]=T_VAL LINE_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_LINE_2, "debugShowLineIntersection" +
|
|
|
|
" wtTs[0]=T_VAL LINE_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wnTs[0]=T_VAL LINE_VAL wnTs[1]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_LINE_NO, "debugShowLineIntersection" +
|
|
|
|
" no intersect LINE_VAL LINE_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_QUAD_LINE, "debugShowQuadLineIntersection" +
|
|
|
|
" wtTs[0]=T_VAL QUAD_VAL PT_VAL wnTs[0]=T_VAL LINE_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_QUAD_LINE_2, "debugShowQuadLineIntersection" +
|
|
|
|
" wtTs[0]=T_VAL QUAD_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wnTs[0]=T_VAL LINE_VAL wnTs[1]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_QUAD_LINE_NO, "debugShowQuadLineIntersection" +
|
|
|
|
" no intersect QUAD_VAL LINE_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_QUAD, "debugShowQuadIntersection" +
|
|
|
|
" wtTs[0]=T_VAL QUAD_VAL PT_VAL wnTs[0]=T_VAL QUAD_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_QUAD_2, "debugShowQuadIntersection" +
|
|
|
|
" wtTs[0]=T_VAL QUAD_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wnTs[0]=T_VAL QUAD_VAL wnTs[1]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_QUAD_NO, "debugShowQuadIntersection" +
|
|
|
|
" no intersect QUAD_VAL QUAD_VAL"
|
2016-07-18 17:01:36 +00:00
|
|
|
|
2015-04-20 15:31:59 +00:00
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CONIC_LINE, "debugShowConicLineIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CONIC_VAL PT_VAL wnTs[0]=T_VAL LINE_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CONIC_LINE_2, "debugShowConicLineIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CONIC_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wnTs[0]=T_VAL LINE_VAL wnTs[1]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CONIC_LINE_NO, "debugShowConicLineIntersection" +
|
|
|
|
" no intersect CONIC_VAL LINE_VAL"
|
2016-07-18 17:01:36 +00:00
|
|
|
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CONIC_QUAD, "debugShowConicQuadIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CONIC_VAL PT_VAL wnTs[0]=T_VAL QUAD_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CONIC_QUAD_2, "debugShowConicQuadIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CONIC_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wnTs[0]=T_VAL QUAD_VAL wnTs[1]=T_VAL"
|
2016-09-26 12:36:58 +00:00
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CONIC_QUAD_3, "debugShowConicQuadIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CONIC_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wtTs[2]=T_VAL PT_VAL wnTs[0]=T_VAL QUAD_VAL wnTs[1]=T_VAL wnTs[2]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CONIC_QUAD_4, "debugShowConicQuadIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CONIC_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wtTs[2]=T_VAL PT_VAL wtTs[3]=T_VAL PT_VAL wnTs[0]=T_VAL QUAD_VAL wnTs[1]=T_VAL wnTs[2]=T_VAL wnTs[3]=T_VAL"
|
2016-07-18 17:01:36 +00:00
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CONIC_QUAD_NO, "debugShowConicQuadIntersection" +
|
|
|
|
" no intersect CONIC_VAL QUAD_VAL"
|
|
|
|
|
2015-04-20 15:31:59 +00:00
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CONIC, "debugShowConicIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CONIC_VAL PT_VAL wnTs[0]=T_VAL CONIC_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CONIC_2, "debugShowConicIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CONIC_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wnTs[0]=T_VAL CONIC_VAL wnTs[1]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CONIC_NO, "debugShowConicIntersection" +
|
|
|
|
" no intersect CONIC_VAL CONIC_VAL"
|
2014-06-17 12:15:38 +00:00
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC_LINE, "debugShowCubicLineIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CUBIC_VAL PT_VAL wnTs[0]=T_VAL LINE_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC_LINE_2, "debugShowCubicLineIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CUBIC_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wnTs[0]=T_VAL LINE_VAL wnTs[1]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC_LINE_3, "debugShowCubicLineIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CUBIC_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wtTs[2]=T_VAL PT_VAL wnTs[0]=T_VAL LINE_VAL wnTs[1]=T_VAL wnTs[2]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC_LINE_NO, "debugShowCubicLineIntersection" +
|
|
|
|
" no intersect CUBIC_VAL LINE_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC_QUAD, "debugShowCubicQuadIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CUBIC_VAL PT_VAL wnTs[0]=T_VAL QUAD_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC_QUAD_2, "debugShowCubicQuadIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CUBIC_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wnTs[0]=T_VAL QUAD_VAL wnTs[1]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC_QUAD_3, "debugShowCubicQuadIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CUBIC_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wtTs[2]=T_VAL PT_VAL wnTs[0]=T_VAL QUAD_VAL wnTs[1]=T_VAL wnTs[2]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC_QUAD_4, "debugShowCubicQuadIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CUBIC_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wtTs[2]=T_VAL wtTs[3]=T_VAL PT_VAL wnTs[0]=T_VAL QUAD_VAL wnTs[1]=T_VAL wnTs[2]=T_VAL wnTs[3]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC_QUAD_NO, "debugShowCubicQuadIntersection" +
|
|
|
|
" no intersect CUBIC_VAL QUAD_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC, "debugShowCubicIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CUBIC_VAL PT_VAL wnTs[0]=T_VAL CUBIC_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC_2, "debugShowCubicIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CUBIC_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wnTs[0]=T_VAL CUBIC_VAL wnTs[1]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC_3, "debugShowCubicIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CUBIC_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wtTs[2]=T_VAL PT_VAL wnTs[0]=T_VAL CUBIC_VAL wnTs[1]=T_VAL wnTs[2]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC_4, "debugShowCubicIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CUBIC_VAL PT_VAL wtTs[1]=T_VAL PT_VAL wtTs[2]=T_VAL PT_VAL wtTs[3]=T_VAL PT_VAL wnTs[0]=T_VAL CUBIC_VAL wnTs[1]=T_VAL wnTs[2]=T_VAL wnTs[3]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_CUBIC_NO, "debugShowCubicIntersection" +
|
|
|
|
" no intersect CUBIC_VAL CUBIC_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_SELF_CUBIC, "debugShowCubicIntersection" +
|
|
|
|
" wtTs[0]=T_VAL CUBIC_VAL PT_VAL wtTs[1]=T_VAL"
|
|
|
|
) || match_regexp(line, lineNo, record, INTERSECT_SELF_CUBIC_NO, "debugShowCubicIntersection" +
|
|
|
|
" no self intersect CUBIC_VAL"
|
|
|
|
);
|
|
|
|
break;
|
|
|
|
case REC_TYPE_SORT:
|
|
|
|
var hasDone = / done/.test(line);
|
|
|
|
var hasUnorderable = / unorderable/.test(line);
|
|
|
|
var hasSmall = / small/.test(line);
|
|
|
|
var hasTiny = / tiny/.test(line);
|
|
|
|
var hasOperand = / operand/.test(line);
|
|
|
|
var hasStop = / stop/.test(line);
|
|
|
|
line.replace(/[ a-z]+$/, "");
|
|
|
|
found = match_regexp(line, lineNo, record, SORT_UNARY, "debugOne" +
|
|
|
|
" [IDX/IDX] next=IDX/IDX sect=IDX/IDX s=T_VAL [IDX] e=T_VAL [IDX] sgn=NUM windVal=IDX windSum=OPT"
|
|
|
|
) || match_regexp(line, lineNo, record, SORT_BINARY, "debugOne" +
|
|
|
|
" [IDX/IDX] next=IDX/IDX sect=IDX/IDX s=T_VAL [IDX] e=T_VAL [IDX] sgn=NUM windVal=IDX windSum=OPT oppVal=IDX oppSum=OPT"
|
|
|
|
) || match_regexp(line, lineNo, record, SORT_UNARY, "dumpOne" +
|
|
|
|
" [IDX/IDX] next=IDX/IDX sect=NUM/NUM s=T_VAL [IDX] e=T_VAL [IDX] sgn=NUM windVal=IDX windSum=OPT"
|
|
|
|
) || match_regexp(line, lineNo, record, SORT_BINARY, "dumpOne" +
|
|
|
|
" [IDX/IDX] next=IDX/IDX sect=NUM/NUM s=T_VAL [IDX] e=T_VAL [IDX] sgn=NUM windVal=IDX windSum=OPT oppVal=IDX oppSum=OPT"
|
|
|
|
);
|
|
|
|
if (found) {
|
|
|
|
record[1].push(hasDone);
|
|
|
|
record[1].push(hasUnorderable);
|
|
|
|
record[1].push(hasSmall);
|
|
|
|
record[1].push(hasTiny);
|
|
|
|
record[1].push(hasOperand);
|
|
|
|
record[1].push(hasStop);
|
|
|
|
}
|
|
|
|
break;
|
2015-04-23 16:13:37 +00:00
|
|
|
case REC_TYPE_TOP:
|
|
|
|
found = match_regexp(line, lineNo, record, ACTIVE_OP, "findTop" +
|
|
|
|
" id=IDX s=T_VAL e=T_VAL cw=NUM swap=NUM inflections=NUM monotonic=NUM"
|
|
|
|
) || match_regexp(line, lineNo, record, ACTIVE_OP, "findTop" +
|
|
|
|
" id=IDX s=T_VAL e=T_VAL (-) cw=NUM swap=NUM inflections=NUM monotonic=NUM"
|
|
|
|
) || match_regexp(line, lineNo, record, ACTIVE_OP, "findTop" +
|
|
|
|
" id=IDX s=T_VAL e=T_VAL (+) cw=NUM swap=NUM inflections=NUM monotonic=NUM"
|
|
|
|
);
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case REC_TYPE_MARK:
|
|
|
|
found = match_regexp(line, lineNo, record, MARK_LINE, "markWinding" +
|
2015-03-26 14:52:43 +00:00
|
|
|
" id=IDX LINE_VAL t=T_VAL [IDX] PT_VAL tEnd=T_VAL newWindSum=NUM newOppSum=OPT oppSum=OPT windSum=OPT windValue=IDX"
|
2014-06-17 12:15:38 +00:00
|
|
|
) || match_regexp(line, lineNo, record, MARK_QUAD, "markWinding" +
|
2015-03-26 14:52:43 +00:00
|
|
|
" id=IDX QUAD_VAL t=T_VAL [IDX] PT_VAL tEnd=T_VAL newWindSum=NUM newOppSum=OPT oppSum=OPT windSum=OPT windValue=IDX"
|
2015-04-20 15:31:59 +00:00
|
|
|
) || match_regexp(line, lineNo, record, MARK_CONIC, "markWinding" +
|
|
|
|
" id=IDX CONIC_VAL t=T_VAL [IDX] PT_VAL tEnd=T_VAL newWindSum=NUM newOppSum=OPT oppSum=OPT windSum=OPT windValue=IDX"
|
2014-06-17 12:15:38 +00:00
|
|
|
) || match_regexp(line, lineNo, record, MARK_CUBIC, "markWinding" +
|
2015-03-26 14:52:43 +00:00
|
|
|
" id=IDX CUBIC_VAL t=T_VAL [IDX] PT_VAL tEnd=T_VAL newWindSum=NUM newOppSum=OPT oppSum=OPT windSum=OPT windValue=IDX"
|
|
|
|
) || match_regexp(line, lineNo, record, MARK_DONE_LINE, "markDone" +
|
|
|
|
" id=IDX LINE_VAL t=T_VAL [IDX] PT_VAL tEnd=T_VAL newWindSum=OPT newOppSum=OPT oppSum=OPT windSum=OPT windValue=IDX oppValue=OPT"
|
|
|
|
) || match_regexp(line, lineNo, record, MARK_DONE_QUAD, "markDone" +
|
|
|
|
" id=IDX QUAD_VAL t=T_VAL [IDX] PT_VAL tEnd=T_VAL newWindSum=OPT newOppSum=OPT oppSum=OPT windSum=OPT windValue=IDX oppValue=OPT"
|
2015-04-20 15:31:59 +00:00
|
|
|
) || match_regexp(line, lineNo, record, MARK_DONE_CONIC, "markDone" +
|
|
|
|
" id=IDX CONIC_VAL t=T_VAL [IDX] PT_VAL tEnd=T_VAL newWindSum=OPT newOppSum=OPT oppSum=OPT windSum=OPT windValue=IDX oppValue=OPT"
|
2015-03-26 14:52:43 +00:00
|
|
|
) || match_regexp(line, lineNo, record, MARK_DONE_CUBIC, "markDone" +
|
|
|
|
" id=IDX CUBIC_VAL t=T_VAL [IDX] PT_VAL tEnd=T_VAL newWindSum=OPT newOppSum=OPT oppSum=OPT windSum=OPT windValue=IDX oppValue=OPT"
|
2014-06-17 12:15:38 +00:00
|
|
|
) || match_regexp(line, lineNo, record, MARK_SIMPLE_LINE, "markWinding" +
|
|
|
|
" id=IDX LINE_VAL t=T_VAL [IDX] PT_VAL tEnd=T_VAL newWindSum=NUM windSum=OPT windValue=IDX"
|
|
|
|
) || match_regexp(line, lineNo, record, MARK_SIMPLE_QUAD, "markWinding" +
|
|
|
|
" id=IDX QUAD_VAL t=T_VAL [IDX] PT_VAL tEnd=T_VAL newWindSum=NUM windSum=OPT windValue=IDX"
|
2015-04-20 15:31:59 +00:00
|
|
|
) || match_regexp(line, lineNo, record, MARK_SIMPLE_CONIC, "markWinding" +
|
|
|
|
" id=IDX CONIC_VAL t=T_VAL [IDX] PT_VAL tEnd=T_VAL newWindSum=NUM windSum=OPT windValue=IDX"
|
2014-06-17 12:15:38 +00:00
|
|
|
) || match_regexp(line, lineNo, record, MARK_SIMPLE_CUBIC, "markWinding" +
|
|
|
|
" id=IDX CUBIC_VAL t=T_VAL [IDX] PT_VAL tEnd=T_VAL newWindSum=NUM windSum=OPT windValue=IDX"
|
|
|
|
) || match_regexp(line, lineNo, record, MARK_ANGLE_LAST, "markAngle" +
|
2015-04-20 15:31:59 +00:00
|
|
|
" last segment=IDX span=IDX"
|
2015-03-26 14:52:43 +00:00
|
|
|
) || match_regexp(line, lineNo, record, MARK_ANGLE_LAST, "markAngle" +
|
2016-07-18 17:01:36 +00:00
|
|
|
" last seg=IDX span=IDX"
|
|
|
|
) || match_regexp(line, lineNo, record, MARK_ANGLE_LAST, "markAngle" +
|
|
|
|
" last segment=IDX span=IDX windSum=OPT"
|
|
|
|
) || match_regexp(line, lineNo, record, MARK_ANGLE_LAST, "markAngle" +
|
|
|
|
" last seg=IDX span=IDX windSum=OPT"
|
|
|
|
);
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case REC_TYPE_OP:
|
|
|
|
if (line.lastIndexOf("oppSign oppSign=", 0) === 0
|
|
|
|
|| line.lastIndexOf("operator<", 0) === 0) {
|
|
|
|
found = true;
|
|
|
|
break;
|
|
|
|
}
|
2015-03-26 14:52:43 +00:00
|
|
|
found = match_regexp(line, lineNo, record, OP_DIFFERENCE, "op diff"
|
2014-06-17 12:15:38 +00:00
|
|
|
) || match_regexp(line, lineNo, record, OP_INTERSECT, "op intersect"
|
2015-03-26 14:52:43 +00:00
|
|
|
) || match_regexp(line, lineNo, record, OP_INTERSECT, "op sect"
|
2014-06-17 12:15:38 +00:00
|
|
|
) || match_regexp(line, lineNo, record, OP_UNION, "op union"
|
|
|
|
) || match_regexp(line, lineNo, record, OP_XOR, "op xor"
|
|
|
|
);
|
|
|
|
break;
|
|
|
|
case REC_TYPE_UNKNOWN:
|
|
|
|
found = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (!found) {
|
|
|
|
console.log(line + " [" + lineNo + "] of type " + type + " not found");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (recType != REC_TYPE_UNKNOWN) {
|
|
|
|
records.push(recType);
|
|
|
|
records.push(lastLineNo);
|
|
|
|
records.push(record);
|
|
|
|
}
|
|
|
|
if (records.length >= 1) {
|
|
|
|
tests[testIndex] = records;
|
|
|
|
testLines[testIndex] = lines;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function init(test) {
|
|
|
|
var canvas = document.getElementById('canvas');
|
|
|
|
if (!canvas.getContext) return;
|
|
|
|
ctx = canvas.getContext('2d');
|
|
|
|
var resScale = retina_scale && window.devicePixelRatio ? window.devicePixelRatio : 1;
|
|
|
|
var unscaledWidth = window.innerWidth - 20;
|
|
|
|
var unscaledHeight = window.innerHeight - 20;
|
|
|
|
screenWidth = unscaledWidth;
|
|
|
|
screenHeight = unscaledHeight;
|
|
|
|
canvas.width = unscaledWidth * resScale;
|
|
|
|
canvas.height = unscaledHeight * resScale;
|
|
|
|
canvas.style.width = unscaledWidth + 'px';
|
|
|
|
canvas.style.height = unscaledHeight + 'px';
|
|
|
|
if (resScale != 1) {
|
|
|
|
ctx.scale(resScale, resScale);
|
|
|
|
}
|
|
|
|
xmin = Infinity;
|
|
|
|
xmax = -Infinity;
|
|
|
|
ymin = Infinity;
|
|
|
|
ymax = -Infinity;
|
2015-10-16 16:03:38 +00:00
|
|
|
hasPath = hasAlignedPath = hasComputedPath = false;
|
2014-06-17 12:15:38 +00:00
|
|
|
firstActiveSpan = -1;
|
|
|
|
for (var tIndex = 0; tIndex < test.length; tIndex += 3) {
|
|
|
|
var recType = test[tIndex];
|
|
|
|
if (!typeof recType == 'number' || recType < REC_TYPE_UNKNOWN || recType > REC_TYPE_LAST) {
|
|
|
|
console.log("unknown rec type: " + recType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
var records = test[tIndex + 2];
|
|
|
|
for (var recordIndex = 0; recordIndex < records.length; recordIndex += 2) {
|
|
|
|
var fragType = records[recordIndex];
|
|
|
|
if (!typeof fragType == 'number' || fragType < 1 || fragType > FRAG_TYPE_LAST) {
|
|
|
|
console.log("unknown in range frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
var frags = records[recordIndex + 1];
|
|
|
|
var first = 0;
|
|
|
|
var last = -1;
|
|
|
|
var first2 = 0;
|
|
|
|
var last2 = 0;
|
|
|
|
switch (recType) {
|
2015-10-16 16:03:38 +00:00
|
|
|
case REC_TYPE_ALIGNED:
|
|
|
|
hasAlignedPath = true;
|
2014-06-17 12:15:38 +00:00
|
|
|
case REC_TYPE_COMPUTED:
|
|
|
|
if (fragType == COMPUTED_SET_1 || fragType == COMPUTED_SET_2) {
|
|
|
|
break;
|
|
|
|
}
|
2015-10-16 16:03:38 +00:00
|
|
|
if (REC_TYPE_COMPUTED == recType) {
|
|
|
|
hasComputedPath = true;
|
|
|
|
}
|
2014-06-17 12:15:38 +00:00
|
|
|
case REC_TYPE_PATH:
|
2015-03-26 14:52:43 +00:00
|
|
|
first = 1;
|
2014-06-17 12:15:38 +00:00
|
|
|
switch (fragType) {
|
|
|
|
case PATH_LINE:
|
2015-03-26 14:52:43 +00:00
|
|
|
last = 5;
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case PATH_CONIC:
|
2014-06-17 12:15:38 +00:00
|
|
|
case PATH_QUAD:
|
2015-03-26 14:52:43 +00:00
|
|
|
last = 7;
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case PATH_CUBIC:
|
2015-03-26 14:52:43 +00:00
|
|
|
last = 9;
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
default:
|
2016-07-18 17:01:36 +00:00
|
|
|
console.log("unknown " + (recType == REC_TYPE_PATH ? "REC_TYPE_PATH"
|
2014-06-17 12:15:38 +00:00
|
|
|
: "REC_TYPE_COMPUTED") + " frag type:" + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
if (recType == REC_TYPE_PATH) {
|
|
|
|
hasPath = true;
|
|
|
|
}
|
|
|
|
break;
|
2015-03-26 14:52:43 +00:00
|
|
|
case REC_TYPE_PATH2:
|
|
|
|
first = 1;
|
|
|
|
switch (fragType) {
|
|
|
|
case PATH_LINE:
|
|
|
|
last = 5;
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case PATH_CONIC:
|
2015-03-26 14:52:43 +00:00
|
|
|
case PATH_QUAD:
|
|
|
|
last = 7;
|
|
|
|
break;
|
|
|
|
case PATH_CUBIC:
|
|
|
|
last = 9;
|
|
|
|
break;
|
|
|
|
default:
|
2016-07-18 17:01:36 +00:00
|
|
|
console.log("unknown " + (recType == REC_TYPE_PATH2 ? "REC_TYPE_PATH2"
|
2015-03-26 14:52:43 +00:00
|
|
|
: "REC_TYPE_COMPUTED") + " frag type:" + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
if (recType == REC_TYPE_PATH2) {
|
|
|
|
hasPath = true;
|
|
|
|
}
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case REC_TYPE_ACTIVE:
|
|
|
|
if (firstActiveSpan < 0) {
|
|
|
|
firstActiveSpan = tIndex;
|
|
|
|
}
|
|
|
|
first = 1;
|
|
|
|
switch (fragType) {
|
|
|
|
case ACTIVE_LINE_SPAN:
|
|
|
|
last = 5;
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case ACTIVE_CONIC_SPAN:
|
2014-06-17 12:15:38 +00:00
|
|
|
case ACTIVE_QUAD_SPAN:
|
|
|
|
last = 7;
|
|
|
|
break;
|
|
|
|
case ACTIVE_CUBIC_SPAN:
|
|
|
|
last = 9;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("unknown REC_TYPE_ACTIVE frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case REC_TYPE_ADD:
|
|
|
|
switch (fragType) {
|
|
|
|
case ADD_MOVETO:
|
|
|
|
break;
|
|
|
|
case ADD_LINETO:
|
|
|
|
last = 4;
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case ADD_CONICTO:
|
2014-06-17 12:15:38 +00:00
|
|
|
case ADD_QUADTO:
|
|
|
|
last = 6;
|
|
|
|
break;
|
|
|
|
case ADD_CUBICTO:
|
|
|
|
last = 8;
|
|
|
|
break;
|
|
|
|
case ADD_CLOSE:
|
|
|
|
case ADD_FILL:
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("unknown REC_TYPE_ADD frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
break;
|
2015-03-26 14:52:43 +00:00
|
|
|
case REC_TYPE_AFTERPART:
|
|
|
|
switch (fragType) {
|
|
|
|
case PATH_LINE:
|
|
|
|
last = 4;
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case PATH_CONIC:
|
2015-03-26 14:52:43 +00:00
|
|
|
case PATH_QUAD:
|
|
|
|
last = 6;
|
|
|
|
break;
|
|
|
|
case PATH_CUBIC:
|
|
|
|
last = 8;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("unknown REC_TYPE_ACTIVEPART frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case REC_TYPE_SECT:
|
|
|
|
switch (fragType) {
|
|
|
|
case INTERSECT_LINE:
|
|
|
|
first = 1; last = 5; first2 = 8; last2 = 12;
|
|
|
|
break;
|
|
|
|
case INTERSECT_LINE_2:
|
|
|
|
first = 1; last = 5; first2 = 11; last2 = 15;
|
|
|
|
break;
|
|
|
|
case INTERSECT_LINE_NO:
|
|
|
|
first = 0; last = 4; first2 = 4; last2 = 8;
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC_LINE:
|
|
|
|
first = 1; last = 7; first2 = 11; last2 = 15;
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case INTERSECT_QUAD_LINE:
|
|
|
|
first = 1; last = 7; first2 = 10; last2 = 14;
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC_LINE_2:
|
|
|
|
first = 1; last = 7; first2 = 14; last2 = 18;
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case INTERSECT_QUAD_LINE_2:
|
|
|
|
first = 1; last = 7; first2 = 13; last2 = 17;
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC_LINE_NO:
|
|
|
|
first = 0; last = 6; first2 = 7; last2 = 11;
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case INTERSECT_QUAD_LINE_NO:
|
|
|
|
first = 0; last = 6; first2 = 6; last2 = 10;
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC:
|
|
|
|
first = 1; last = 7; first2 = 11; last2 = 17;
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case INTERSECT_QUAD:
|
|
|
|
first = 1; last = 7; first2 = 10; last2 = 16;
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC_2:
|
|
|
|
first = 1; last = 7; first2 = 14; last2 = 20;
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case INTERSECT_QUAD_2:
|
|
|
|
first = 1; last = 7; first2 = 13; last2 = 19;
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC_NO:
|
|
|
|
first = 0; last = 6; first2 = 7; last2 = 13;
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case INTERSECT_QUAD_NO:
|
|
|
|
first = 0; last = 6; first2 = 6; last2 = 12;
|
|
|
|
break;
|
|
|
|
case INTERSECT_SELF_CUBIC:
|
|
|
|
first = 1; last = 9;
|
|
|
|
break;
|
|
|
|
case INTERSECT_SELF_CUBIC_NO:
|
|
|
|
first = 0; last = 8;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_LINE:
|
|
|
|
first = 1; last = 9; first2 = 12; last2 = 16;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_LINE_2:
|
|
|
|
first = 1; last = 9; first2 = 15; last2 = 19;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_LINE_3:
|
|
|
|
first = 1; last = 9; first2 = 18; last2 = 22;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_LINE_NO:
|
|
|
|
first = 0; last = 8; first2 = 8; last2 = 12;
|
|
|
|
break;
|
2016-07-18 17:01:36 +00:00
|
|
|
case INTERSECT_CONIC_QUAD:
|
|
|
|
first = 1; last = 7; first2 = 11; last2 = 17;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CONIC_QUAD_2:
|
|
|
|
first = 1; last = 7; first2 = 14; last2 = 20;
|
|
|
|
break;
|
2016-09-26 12:36:58 +00:00
|
|
|
case INTERSECT_CONIC_QUAD_3:
|
|
|
|
first = 1; last = 7; first2 = 17; last2 = 23;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CONIC_QUAD_4:
|
|
|
|
first = 1; last = 7; first2 = 20; last2 = 26;
|
|
|
|
break;
|
2016-07-18 17:01:36 +00:00
|
|
|
case INTERSECT_CONIC_QUAD_NO:
|
|
|
|
first = 0; last = 6; first2 = 7; last2 = 13;
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case INTERSECT_CUBIC_QUAD:
|
|
|
|
first = 1; last = 9; first2 = 12; last2 = 18;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_QUAD_2:
|
|
|
|
first = 1; last = 9; first2 = 15; last2 = 21;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_QUAD_3:
|
|
|
|
first = 1; last = 9; first2 = 18; last2 = 24;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_QUAD_4:
|
|
|
|
first = 1; last = 9; first2 = 21; last2 = 27;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_QUAD_NO:
|
|
|
|
first = 0; last = 8; first2 = 8; last2 = 14;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC:
|
|
|
|
first = 1; last = 9; first2 = 12; last2 = 20;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_2:
|
|
|
|
first = 1; last = 9; first2 = 15; last2 = 23;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_3:
|
|
|
|
first = 1; last = 9; first2 = 18; last2 = 26;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_4:
|
|
|
|
first = 1; last = 9; first2 = 21; last2 = 29;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_NO:
|
|
|
|
first = 0; last = 8; first2 = 8; last2 = 16;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("unknown REC_TYPE_SECT frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
for (var idx = first; idx < last; idx += 2) {
|
|
|
|
xmin = Math.min(xmin, frags[idx]);
|
|
|
|
xmax = Math.max(xmax, frags[idx]);
|
|
|
|
ymin = Math.min(ymin, frags[idx + 1]);
|
|
|
|
ymax = Math.max(ymax, frags[idx + 1]);
|
|
|
|
}
|
|
|
|
for (var idx = first2; idx < last2; idx += 2) {
|
|
|
|
xmin = Math.min(xmin, frags[idx]);
|
|
|
|
xmax = Math.max(xmax, frags[idx]);
|
|
|
|
ymin = Math.min(ymin, frags[idx + 1]);
|
|
|
|
ymax = Math.max(ymax, frags[idx + 1]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var angleBounds = [Infinity, Infinity, -Infinity, -Infinity];
|
|
|
|
for (var tIndex = 0; tIndex < test.length; tIndex += 3) {
|
|
|
|
var recType = test[tIndex];
|
|
|
|
var records = test[tIndex + 2];
|
|
|
|
for (var recordIndex = 0; recordIndex < records.length; recordIndex += 2) {
|
|
|
|
var fragType = records[recordIndex];
|
|
|
|
var frags = records[recordIndex + 1];
|
|
|
|
switch (recType) {
|
|
|
|
case REC_TYPE_ACTIVE_OP:
|
|
|
|
if (!draw_op) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
var curve = curvePartialByID(test, frags[0], frags[1], frags[2]);
|
|
|
|
curve_extremes(curve, angleBounds);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case REC_TYPE_ANGLE:
|
|
|
|
if (!draw_angle) {
|
|
|
|
break;
|
|
|
|
}
|
2015-03-26 14:52:43 +00:00
|
|
|
{
|
2014-06-17 12:15:38 +00:00
|
|
|
var curve = curvePartialByID(test, frags[0], frags[4], frags[5]);
|
|
|
|
curve_extremes(curve, angleBounds);
|
|
|
|
curve = curvePartialByID(test, frags[6], frags[10], frags[11]);
|
|
|
|
curve_extremes(curve, angleBounds);
|
|
|
|
curve = curvePartialByID(test, frags[12], frags[16], frags[17]);
|
|
|
|
}
|
|
|
|
break;
|
2015-05-11 14:21:27 +00:00
|
|
|
case REC_TYPE_COINCIDENCE:
|
|
|
|
if (!draw_coincidence) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
var curve = curvePartialByID(test, frags[0], frags[1], frags[2]);
|
|
|
|
curve_extremes(curve, angleBounds);
|
|
|
|
}
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case REC_TYPE_SORT:
|
|
|
|
if (!draw_sort) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (fragType == SORT_UNARY || fragType == SORT_BINARY) {
|
|
|
|
var curve = curvePartialByID(test, frags[0], frags[6], frags[8]);
|
|
|
|
curve_extremes(curve, angleBounds);
|
|
|
|
}
|
|
|
|
break;
|
2015-04-23 16:13:37 +00:00
|
|
|
case REC_TYPE_TOP:
|
|
|
|
if (!draw_top) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
var curve = curvePartialByID(test, frags[0], frags[1], frags[2]);
|
|
|
|
curve_extremes(curve, angleBounds);
|
|
|
|
}
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
xmin = Math.min(xmin, angleBounds[0]);
|
|
|
|
ymin = Math.min(ymin, angleBounds[1]);
|
|
|
|
xmax = Math.max(xmax, angleBounds[2]);
|
|
|
|
ymax = Math.max(ymax, angleBounds[3]);
|
|
|
|
setScale(xmin, xmax, ymin, ymax);
|
|
|
|
if (hasPath == false && hasComputedPath == true && !draw_computed) {
|
2015-04-20 15:31:59 +00:00
|
|
|
draw_computed = 7; // show quadratics, conics, and cubics
|
2014-06-17 12:15:38 +00:00
|
|
|
}
|
|
|
|
if (hasPath == true && hasComputedPath == false && draw_computed) {
|
|
|
|
draw_computed = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-16 16:03:38 +00:00
|
|
|
function curveByIDMatch(test, id, recMatch) {
|
2015-03-26 14:52:43 +00:00
|
|
|
var tIndex = -3;
|
|
|
|
while ((tIndex += 3) < test.length) {
|
2014-06-17 12:15:38 +00:00
|
|
|
var recType = test[tIndex];
|
2015-03-26 14:52:43 +00:00
|
|
|
if (recType == REC_TYPE_OP) {
|
|
|
|
continue;
|
|
|
|
}
|
2015-10-16 16:03:38 +00:00
|
|
|
if (recType != recMatch) {
|
2014-06-17 12:15:38 +00:00
|
|
|
return [];
|
|
|
|
}
|
|
|
|
var records = test[tIndex + 2];
|
|
|
|
for (var recordIndex = 0; recordIndex < records.length; recordIndex += 2) {
|
|
|
|
var fragType = records[recordIndex];
|
|
|
|
var frags = records[recordIndex + 1];
|
|
|
|
if (frags[0] == id) {
|
|
|
|
switch (fragType) {
|
2015-03-26 14:52:43 +00:00
|
|
|
case PATH_LINE:
|
2014-06-17 12:15:38 +00:00
|
|
|
return [frags[1], frags[2], frags[3], frags[4]];
|
2015-03-26 14:52:43 +00:00
|
|
|
case PATH_QUAD:
|
2014-06-17 12:15:38 +00:00
|
|
|
return [frags[1], frags[2], frags[3], frags[4],
|
|
|
|
frags[5], frags[6]];
|
2015-04-20 15:31:59 +00:00
|
|
|
case PATH_CONIC:
|
|
|
|
return [frags[1], frags[2], frags[3], frags[4],
|
|
|
|
frags[5], frags[6], frags[7]];
|
2015-03-26 14:52:43 +00:00
|
|
|
case PATH_CUBIC:
|
2014-06-17 12:15:38 +00:00
|
|
|
return [frags[1], frags[2], frags[3], frags[4],
|
|
|
|
frags[5], frags[6], frags[7], frags[8]];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
|
2015-10-16 16:03:38 +00:00
|
|
|
function curveByID(test, id) {
|
|
|
|
var result = draw_path >= 4 ? curveByIDMatch(test, id, REC_TYPE_ALIGNED) : [];
|
|
|
|
if (!result.length) {
|
|
|
|
result = curveByIDMatch(test, id, REC_TYPE_PATH);
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
function curvePartialByIDMatch(test, id, t0, t1, recMatch) {
|
2015-03-26 14:52:43 +00:00
|
|
|
var tIndex = -3;
|
|
|
|
while ((tIndex += 3) < test.length) {
|
2014-06-17 12:15:38 +00:00
|
|
|
var recType = test[tIndex];
|
2015-03-26 14:52:43 +00:00
|
|
|
if (recType == REC_TYPE_OP) {
|
|
|
|
continue;
|
|
|
|
}
|
2015-10-16 16:03:38 +00:00
|
|
|
if (recType != recMatch) {
|
2014-06-17 12:15:38 +00:00
|
|
|
return [];
|
|
|
|
}
|
|
|
|
var records = test[tIndex + 2];
|
|
|
|
for (var recordIndex = 0; recordIndex < records.length; recordIndex += 2) {
|
|
|
|
var fragType = records[recordIndex];
|
|
|
|
var frags = records[recordIndex + 1];
|
|
|
|
if (frags[0] == id) {
|
|
|
|
switch (fragType) {
|
2015-03-26 14:52:43 +00:00
|
|
|
case PATH_LINE:
|
2014-06-17 12:15:38 +00:00
|
|
|
return linePartial(frags[1], frags[2], frags[3], frags[4], t0, t1);
|
2015-03-26 14:52:43 +00:00
|
|
|
case PATH_QUAD:
|
2014-06-17 12:15:38 +00:00
|
|
|
return quadPartial(frags[1], frags[2], frags[3], frags[4],
|
|
|
|
frags[5], frags[6], t0, t1);
|
2015-04-20 15:31:59 +00:00
|
|
|
case PATH_CONIC:
|
|
|
|
return conicPartial(frags[1], frags[2], frags[3], frags[4],
|
|
|
|
frags[5], frags[6], frags[7], t0, t1);
|
2015-03-26 14:52:43 +00:00
|
|
|
case PATH_CUBIC:
|
2014-06-17 12:15:38 +00:00
|
|
|
return cubicPartial(frags[1], frags[2], frags[3], frags[4],
|
|
|
|
frags[5], frags[6], frags[7], frags[8], t0, t1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
|
2015-10-16 16:03:38 +00:00
|
|
|
function curvePartialByID(test, id, t0, t1) {
|
|
|
|
var result = draw_path >= 4 ? curvePartialByIDMatch(test, id, t0, t1, REC_TYPE_ALIGNED) : [];
|
|
|
|
if (!result.length) {
|
|
|
|
result = curvePartialByIDMatch(test, id, t0, t1, REC_TYPE_PATH);
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
function idByCurveIDMatch(test, frag, type, recMatch) {
|
2015-03-26 14:52:43 +00:00
|
|
|
var tIndex = 0;
|
2014-06-17 12:15:38 +00:00
|
|
|
while (tIndex < test.length) {
|
|
|
|
var recType = test[tIndex];
|
2015-10-16 16:03:38 +00:00
|
|
|
if (recType != recMatch) {
|
2015-03-26 14:52:43 +00:00
|
|
|
++tIndex;
|
|
|
|
continue;
|
2014-06-17 12:15:38 +00:00
|
|
|
}
|
|
|
|
var records = test[tIndex + 2];
|
|
|
|
for (var recordIndex = 0; recordIndex < records.length; recordIndex += 2) {
|
|
|
|
var fragType = records[recordIndex];
|
|
|
|
var frags = records[recordIndex + 1];
|
2015-03-26 14:52:43 +00:00
|
|
|
if (frag.length != frags.length - 1) {
|
|
|
|
continue;
|
|
|
|
}
|
2014-06-17 12:15:38 +00:00
|
|
|
switch (fragType) {
|
2015-03-26 14:52:43 +00:00
|
|
|
case PATH_LINE:
|
2014-06-17 12:15:38 +00:00
|
|
|
if (frag[0] != frags[1] || frag[1] != frags[2]
|
|
|
|
|| frag[2] != frags[3] || frag[3] != frags[4]) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
return frags[0];
|
2015-03-26 14:52:43 +00:00
|
|
|
case PATH_QUAD:
|
2014-06-17 12:15:38 +00:00
|
|
|
if (frag[0] != frags[1] || frag[1] != frags[2]
|
|
|
|
|| frag[2] != frags[3] || frag[3] != frags[4]
|
|
|
|
|| frag[4] != frags[5] || frag[5] != frags[6]) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
return frags[0];
|
2015-04-20 15:31:59 +00:00
|
|
|
case PATH_CONIC:
|
|
|
|
if (frag[0] != frags[1] || frag[1] != frags[2]
|
|
|
|
|| frag[2] != frags[3] || frag[3] != frags[4]
|
|
|
|
|| frag[4] != frags[5] || frag[5] != frags[6]
|
|
|
|
|| frag[6] != frags[7]) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
return frags[0];
|
2015-03-26 14:52:43 +00:00
|
|
|
case PATH_CUBIC:
|
2014-06-17 12:15:38 +00:00
|
|
|
if (frag[0] != frags[1] || frag[1] != frags[2]
|
|
|
|
|| frag[2] != frags[3] || frag[3] != frags[4]
|
|
|
|
|| frag[4] != frags[5] || frag[5] != frags[6]
|
|
|
|
|| frag[6] != frags[7] || frag[7] != frags[8]) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
return frags[0];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
++tIndex;
|
|
|
|
}
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2015-10-16 16:03:38 +00:00
|
|
|
function idByCurve(test, frag, type) {
|
|
|
|
var result = draw_path >= 4 ? idByCurveIDMatch(test, frag, type, REC_TYPE_ALIGNED) : [];
|
|
|
|
if (!result.length) {
|
|
|
|
result = idByCurveIDMatch(test, frag, type, REC_TYPE_PATH);
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2014-06-17 12:15:38 +00:00
|
|
|
function curve_extremes(curve, bounds) {
|
2015-04-20 15:31:59 +00:00
|
|
|
var length = curve.length == 7 ? 6 : curve.length;
|
2015-10-22 14:23:52 +00:00
|
|
|
for (var index = 0; index < length; index += 2) {
|
2014-06-17 12:15:38 +00:00
|
|
|
var x = curve[index];
|
|
|
|
var y = curve[index + 1];
|
|
|
|
bounds[0] = Math.min(bounds[0], x);
|
|
|
|
bounds[1] = Math.min(bounds[1], y);
|
|
|
|
bounds[2] = Math.max(bounds[2], x);
|
|
|
|
bounds[3] = Math.max(bounds[3], y);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function setScale(x0, x1, y0, y1) {
|
|
|
|
var srcWidth = x1 - x0;
|
|
|
|
var srcHeight = y1 - y0;
|
|
|
|
var usableWidth = screenWidth;
|
|
|
|
var xDigits = Math.ceil(Math.log(Math.abs(xmax)) / Math.log(10));
|
|
|
|
var yDigits = Math.ceil(Math.log(Math.abs(ymax)) / Math.log(10));
|
|
|
|
usableWidth -= (xDigits + yDigits) * 10;
|
|
|
|
usableWidth -= decimal_places * 10;
|
|
|
|
if (draw_legend) {
|
|
|
|
usableWidth -= 40;
|
|
|
|
}
|
|
|
|
var hscale = usableWidth / srcWidth;
|
|
|
|
var vscale = screenHeight / srcHeight;
|
|
|
|
scale = Math.min(hscale, vscale);
|
|
|
|
var invScale = 1 / scale;
|
|
|
|
var sxmin = x0 - invScale * 5;
|
|
|
|
var symin = y0 - invScale * 10;
|
|
|
|
var sxmax = x1 + invScale * (6 * decimal_places + 10);
|
|
|
|
var symax = y1 + invScale * 10;
|
|
|
|
srcWidth = sxmax - sxmin;
|
|
|
|
srcHeight = symax - symin;
|
|
|
|
hscale = usableWidth / srcWidth;
|
|
|
|
vscale = screenHeight / srcHeight;
|
|
|
|
scale = Math.min(hscale, vscale);
|
|
|
|
srcLeft = sxmin;
|
|
|
|
srcTop = symin;
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawArc(curve, op, from, to) {
|
|
|
|
var type = PATH_LINE + (curve.length / 2 - 2);
|
|
|
|
var pt = pointAtT(curve, type, op ? 0.4 : 0.6);
|
|
|
|
var dy = pt.y - curve[1];
|
|
|
|
var dx = pt.x - curve[0];
|
|
|
|
var dist = Math.sqrt(dy * dy + dx * dx);
|
|
|
|
var _dist = dist * scale;
|
|
|
|
var angle = Math.atan2(dy, dx);
|
|
|
|
var _px = (curve[0] - srcLeft) * scale;
|
|
|
|
var _py = (curve[1] - srcTop) * scale;
|
|
|
|
var divisor = 4;
|
|
|
|
var endDist;
|
|
|
|
do {
|
|
|
|
var ends = [];
|
|
|
|
for (var index = -1; index <= 1; index += 2) {
|
|
|
|
var px = Math.cos(index * Math.PI / divisor);
|
|
|
|
var py = Math.sin(index * Math.PI / divisor);
|
|
|
|
ends.push(px);
|
|
|
|
ends.push(py);
|
|
|
|
}
|
|
|
|
var endDx = (ends[2] - ends[0]) * scale * dist;
|
|
|
|
var endDy = (ends[3] - ends[1]) * scale * dist;
|
|
|
|
endDist = Math.sqrt(endDx * endDx + endDy * endDy);
|
|
|
|
if (endDist < 100) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
divisor *= 2;
|
|
|
|
} while (true);
|
|
|
|
if (endDist < 30) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (op) {
|
|
|
|
divisor *= 2;
|
|
|
|
}
|
|
|
|
ctx.strokeStyle = op ? "rgba(210,0,45, 0.4)" : "rgba(90,90,90, 0.5)";
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.arc(_px, _py, _dist, angle - Math.PI / divisor, angle + Math.PI / divisor, false);
|
|
|
|
ctx.stroke();
|
|
|
|
var saveAlign = ctx.textAlign;
|
|
|
|
var saveStyle = ctx.fillStyle;
|
|
|
|
var saveFont = ctx.font;
|
|
|
|
ctx.textAlign = "center";
|
|
|
|
ctx.fillStyle = "black";
|
|
|
|
ctx.font = "normal 24px Arial";
|
|
|
|
divisor *= 0.8;
|
|
|
|
for (var index = -1; index <= 1; index += 2) {
|
|
|
|
var px = curve[0] + Math.cos(angle + index * Math.PI / divisor) * dist;
|
|
|
|
var py = curve[1] + Math.sin(angle + index * Math.PI / divisor) * dist;
|
|
|
|
var _px = (px - srcLeft) * scale;
|
|
|
|
var _py = (py - srcTop) * scale;
|
|
|
|
ctx.fillText(index < 0 ? to.toString() : from.toString(), _px, _py + 8);
|
|
|
|
}
|
|
|
|
ctx.textAlign = saveAlign;
|
|
|
|
ctx.fillStyle = saveStyle;
|
|
|
|
ctx.font = saveFont;
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawPoint(px, py, end) {
|
2015-04-20 15:31:59 +00:00
|
|
|
var length = drawnPts.length == 7 ? 6 : drawnPts.length;
|
|
|
|
for (var pts = 0; pts < length; pts += 2) {
|
2014-06-17 12:15:38 +00:00
|
|
|
var x = drawnPts[pts];
|
|
|
|
var y = drawnPts[pts + 1];
|
|
|
|
if (px == x && py == y) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
drawnPts.push(px);
|
|
|
|
drawnPts.push(py);
|
|
|
|
var label = px.toFixed(decimal_places) + ", " + py.toFixed(decimal_places);
|
|
|
|
var _px = (px - srcLeft) * scale;
|
|
|
|
var _py = (py - srcTop) * scale;
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.arc(_px, _py, 3, 0, Math.PI*2, true);
|
|
|
|
ctx.closePath();
|
|
|
|
if (end) {
|
|
|
|
ctx.fill();
|
|
|
|
} else {
|
|
|
|
ctx.stroke();
|
|
|
|
}
|
|
|
|
if (debug_xy) {
|
|
|
|
ctx.textAlign = "left";
|
|
|
|
ctx.fillText(label, _px + 5, _py);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-20 15:31:59 +00:00
|
|
|
function coordCount(curveType) {
|
|
|
|
switch (curveType) {
|
|
|
|
case PATH_LINE:
|
|
|
|
return 4;
|
|
|
|
case PATH_QUAD:
|
|
|
|
return 6;
|
|
|
|
case PATH_CONIC:
|
|
|
|
return 6;
|
|
|
|
case PATH_CUBIC:
|
|
|
|
return 8;
|
|
|
|
}
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2014-06-17 12:15:38 +00:00
|
|
|
function drawPoints(ptArray, curveType, drawControls) {
|
2015-04-20 15:31:59 +00:00
|
|
|
var count = coordCount(curveType);
|
2014-06-17 12:15:38 +00:00
|
|
|
for (var idx = 0; idx < count; idx += 2) {
|
|
|
|
if (!drawControls && idx != 0 && idx != count - 2) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
drawPoint(ptArray[idx], ptArray[idx + 1], idx == 0 || idx == count - 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawControlLines(curve, curveType, drawEnd) {
|
|
|
|
if (curveType == PATH_LINE) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
ctx.strokeStyle = "rgba(0,0,0, 0.3)";
|
|
|
|
drawLine(curve[0], curve[1], curve[2], curve[3]);
|
|
|
|
drawLine(curve[2], curve[3], curve[4], curve[5]);
|
|
|
|
if (curveType == PATH_CUBIC) {
|
|
|
|
drawLine(curve[4], curve[5], curve[6], curve[7]);
|
|
|
|
if (drawEnd > 1) {
|
|
|
|
drawLine(curve[6], curve[7], curve[0], curve[1]);
|
|
|
|
if (drawEnd > 2) {
|
|
|
|
drawLine(curve[0], curve[1], curve[4], curve[5]);
|
|
|
|
drawLine(curve[6], curve[7], curve[2], curve[3]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (drawEnd > 1) {
|
|
|
|
drawLine(curve[4], curve[5], curve[0], curve[1]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function pointAtT(curve, curveType, t) {
|
|
|
|
var xy = {};
|
|
|
|
switch (curveType) {
|
|
|
|
case PATH_LINE:
|
|
|
|
var a = 1 - t;
|
|
|
|
var b = t;
|
|
|
|
xy.x = a * curve[0] + b * curve[2];
|
|
|
|
xy.y = a * curve[1] + b * curve[3];
|
|
|
|
break;
|
|
|
|
case PATH_QUAD:
|
|
|
|
var one_t = 1 - t;
|
|
|
|
var a = one_t * one_t;
|
|
|
|
var b = 2 * one_t * t;
|
|
|
|
var c = t * t;
|
|
|
|
xy.x = a * curve[0] + b * curve[2] + c * curve[4];
|
|
|
|
xy.y = a * curve[1] + b * curve[3] + c * curve[5];
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case PATH_CONIC:
|
|
|
|
var one_t = 1 - t;
|
|
|
|
var a = one_t * one_t;
|
|
|
|
var b = 2 * one_t * t;
|
|
|
|
var c = t * t;
|
|
|
|
xy.x = a * curve[0] + b * curve[2] * curve[6] + c * curve[4];
|
|
|
|
xy.y = a * curve[1] + b * curve[3] * curve[6] + c * curve[5];
|
|
|
|
var d = a + b * curve[6] + c;
|
|
|
|
xy.x /= d;
|
|
|
|
xy.y /= d;
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case PATH_CUBIC:
|
|
|
|
var one_t = 1 - t;
|
|
|
|
var one_t2 = one_t * one_t;
|
|
|
|
var a = one_t2 * one_t;
|
|
|
|
var b = 3 * one_t2 * t;
|
|
|
|
var t2 = t * t;
|
|
|
|
var c = 3 * one_t * t2;
|
|
|
|
var d = t2 * t;
|
|
|
|
xy.x = a * curve[0] + b * curve[2] + c * curve[4] + d * curve[6];
|
|
|
|
xy.y = a * curve[1] + b * curve[3] + c * curve[5] + d * curve[7];
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return xy;
|
|
|
|
}
|
2016-07-18 17:01:36 +00:00
|
|
|
|
2014-06-17 12:15:38 +00:00
|
|
|
function drawPointAtT(curve, curveType) {
|
|
|
|
var x, y;
|
|
|
|
var xy = pointAtT(curve, curveType, curveT);
|
|
|
|
drawPoint(xy.x, xy.y, true);
|
|
|
|
if (!draw_intersectT) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
ctx.fillStyle = "red";
|
|
|
|
drawTAtPointUp(xy.x, xy.y, curveT);
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawTAtPointUp(px, py, t) {
|
|
|
|
var label = t.toFixed(decimal_places);
|
|
|
|
var _px = (px - srcLeft)* scale;
|
|
|
|
var _py = (py - srcTop) * scale;
|
|
|
|
ctx.fillText(label, _px + 5, _py - 10);
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawTAtPointDown(px, py, t) {
|
|
|
|
var label = t.toFixed(decimal_places);
|
|
|
|
var _px = (px - srcLeft)* scale;
|
|
|
|
var _py = (py - srcTop) * scale;
|
|
|
|
ctx.fillText(label, _px + 5, _py + 10);
|
|
|
|
}
|
|
|
|
|
|
|
|
function alreadyDrawnLine(x1, y1, x2, y2) {
|
|
|
|
if (collect_bounds) {
|
|
|
|
if (focus_enabled) {
|
|
|
|
focusXmin = Math.min(focusXmin, x1, x2);
|
|
|
|
focusYmin = Math.min(focusYmin, y1, y2);
|
|
|
|
focusXmax = Math.max(focusXmax, x1, x2);
|
|
|
|
focusYmax = Math.max(focusYmax, y1, y2);
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
for (var pts = 0; pts < drawnLines.length; pts += 4) {
|
|
|
|
if (x1 == drawnLines[pts] && y1 == drawnLines[pts + 1]
|
|
|
|
&& x2 == drawnLines[pts + 2] && y2 == drawnLines[pts + 3]) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
drawnLines.push(x1);
|
|
|
|
drawnLines.push(y1);
|
|
|
|
drawnLines.push(x2);
|
|
|
|
drawnLines.push(y2);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawLine(x1, y1, x2, y2) {
|
|
|
|
if (alreadyDrawnLine(x1, y1, x2, y2)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.moveTo((x1 - srcLeft) * scale,
|
|
|
|
(y1 - srcTop) * scale);
|
|
|
|
ctx.lineTo((x2 - srcLeft) * scale,
|
|
|
|
(y2 - srcTop) * scale);
|
|
|
|
ctx.stroke();
|
|
|
|
}
|
|
|
|
|
|
|
|
function linePartial(x1, y1, x2, y2, t1, t2) {
|
|
|
|
var dx = x1 - x2;
|
|
|
|
var dy = y1 - y2;
|
|
|
|
var array = [
|
|
|
|
x1 - t1 * dx,
|
|
|
|
y1 - t1 * dy,
|
|
|
|
x1 - t2 * dx,
|
|
|
|
y1 - t2 * dy
|
|
|
|
];
|
|
|
|
return array;
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawLinePartial(x1, y1, x2, y2, t1, t2) {
|
|
|
|
var a = linePartial(x1, y1, x2, y2, t1, t2);
|
|
|
|
var ax = a[0];
|
|
|
|
var ay = a[1];
|
|
|
|
var bx = a[2];
|
|
|
|
var by = a[3];
|
|
|
|
if (alreadyDrawnLine(ax, ay, bx, by)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.moveTo((ax - srcLeft) * scale,
|
|
|
|
(ay - srcTop) * scale);
|
|
|
|
ctx.lineTo((bx - srcLeft) * scale,
|
|
|
|
(by - srcTop) * scale);
|
|
|
|
ctx.stroke();
|
|
|
|
}
|
|
|
|
|
|
|
|
function alreadyDrawnQuad(x1, y1, x2, y2, x3, y3) {
|
|
|
|
if (collect_bounds) {
|
|
|
|
if (focus_enabled) {
|
|
|
|
focusXmin = Math.min(focusXmin, x1, x2, x3);
|
|
|
|
focusYmin = Math.min(focusYmin, y1, y2, y3);
|
|
|
|
focusXmax = Math.max(focusXmax, x1, x2, x3);
|
|
|
|
focusYmax = Math.max(focusYmax, y1, y2, y3);
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
for (var pts = 0; pts < drawnQuads.length; pts += 6) {
|
|
|
|
if (x1 == drawnQuads[pts] && y1 == drawnQuads[pts + 1]
|
|
|
|
&& x2 == drawnQuads[pts + 2] && y2 == drawnQuads[pts + 3]
|
|
|
|
&& x3 == drawnQuads[pts + 4] && y3 == drawnQuads[pts + 5]) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
drawnQuads.push(x1);
|
|
|
|
drawnQuads.push(y1);
|
|
|
|
drawnQuads.push(x2);
|
|
|
|
drawnQuads.push(y2);
|
|
|
|
drawnQuads.push(x3);
|
|
|
|
drawnQuads.push(y3);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawQuad(x1, y1, x2, y2, x3, y3) {
|
|
|
|
if (alreadyDrawnQuad(x1, y1, x2, y2, x3, y3)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.moveTo((x1 - srcLeft) * scale,
|
|
|
|
(y1 - srcTop) * scale);
|
|
|
|
ctx.quadraticCurveTo((x2 - srcLeft) * scale,
|
|
|
|
(y2 - srcTop) * scale,
|
|
|
|
(x3 - srcLeft) * scale,
|
|
|
|
(y3 - srcTop) * scale);
|
|
|
|
ctx.stroke();
|
|
|
|
}
|
|
|
|
|
|
|
|
function interp(A, B, t) {
|
|
|
|
return A + (B - A) * t;
|
|
|
|
}
|
|
|
|
|
|
|
|
function interp_quad_coords(x1, x2, x3, t)
|
|
|
|
{
|
|
|
|
var ab = interp(x1, x2, t);
|
|
|
|
var bc = interp(x2, x3, t);
|
|
|
|
var abc = interp(ab, bc, t);
|
|
|
|
return abc;
|
|
|
|
}
|
|
|
|
|
|
|
|
function quadPartial(x1, y1, x2, y2, x3, y3, t1, t2) {
|
|
|
|
var ax = interp_quad_coords(x1, x2, x3, t1);
|
|
|
|
var ay = interp_quad_coords(y1, y2, y3, t1);
|
|
|
|
var dx = interp_quad_coords(x1, x2, x3, (t1 + t2) / 2);
|
|
|
|
var dy = interp_quad_coords(y1, y2, y3, (t1 + t2) / 2);
|
|
|
|
var cx = interp_quad_coords(x1, x2, x3, t2);
|
|
|
|
var cy = interp_quad_coords(y1, y2, y3, t2);
|
|
|
|
var bx = 2*dx - (ax + cx)/2;
|
|
|
|
var by = 2*dy - (ay + cy)/2;
|
|
|
|
var array = [
|
|
|
|
ax, ay, bx, by, cx, cy
|
|
|
|
];
|
|
|
|
return array;
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawQuadPartial(x1, y1, x2, y2, x3, y3, t1, t2) {
|
|
|
|
var a = quadPartial(x1, y1, x2, y2, x3, y3, t1, t2);
|
|
|
|
var ax = a[0];
|
|
|
|
var ay = a[1];
|
|
|
|
var bx = a[2];
|
|
|
|
var by = a[3];
|
|
|
|
var cx = a[4];
|
|
|
|
var cy = a[5];
|
|
|
|
if (alreadyDrawnQuad(ax, ay, bx, by, cx, cy)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.moveTo((ax - srcLeft) * scale,
|
|
|
|
(ay - srcTop) * scale);
|
|
|
|
ctx.quadraticCurveTo((bx - srcLeft) * scale,
|
|
|
|
(by - srcTop) * scale,
|
|
|
|
(cx - srcLeft) * scale,
|
|
|
|
(cy - srcTop) * scale);
|
|
|
|
ctx.stroke();
|
|
|
|
}
|
|
|
|
|
2015-04-20 15:31:59 +00:00
|
|
|
function alreadyDrawnConic(x1, y1, x2, y2, x3, y3, w) {
|
|
|
|
if (collect_bounds) {
|
|
|
|
if (focus_enabled) {
|
|
|
|
focusXmin = Math.min(focusXmin, x1, x2, x3);
|
|
|
|
focusYmin = Math.min(focusYmin, y1, y2, y3);
|
|
|
|
focusXmax = Math.max(focusXmax, x1, x2, x3);
|
|
|
|
focusYmax = Math.max(focusYmax, y1, y2, y3);
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
for (var pts = 0; pts < drawnConics.length; pts += 8) {
|
|
|
|
if (x1 == drawnConics[pts] && y1 == drawnCubics[pts + 1]
|
2016-07-18 17:01:36 +00:00
|
|
|
&& x2 == drawnCubics[pts + 2] && y2 == drawnCubics[pts + 3]
|
|
|
|
&& x3 == drawnCubics[pts + 4] && y3 == drawnCubics[pts + 5]
|
2015-04-20 15:31:59 +00:00
|
|
|
&& w == drawnCubics[pts + 6]) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
drawnConics.push(x1);
|
|
|
|
drawnConics.push(y1);
|
|
|
|
drawnConics.push(x2);
|
|
|
|
drawnConics.push(y2);
|
|
|
|
drawnConics.push(x3);
|
|
|
|
drawnConics.push(y3);
|
|
|
|
drawnCubics.push(w);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
var kMaxConicToQuadPOW2 = 5;
|
|
|
|
|
|
|
|
function computeQuadPOW2(curve, tol) {
|
|
|
|
var a = curve[6] - 1;
|
|
|
|
var k = a / (4 * (2 + a));
|
|
|
|
var x = k * (curve[0] - 2 * curve[2] + curve[4]);
|
|
|
|
var y = k * (curve[1] - 2 * curve[3] + curve[5]);
|
|
|
|
|
|
|
|
var error = Math.sqrt(x * x + y * y);
|
|
|
|
var pow2;
|
|
|
|
for (pow2 = 0; pow2 < kMaxConicToQuadPOW2; ++pow2) {
|
|
|
|
if (error <= tol) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
error *= 0.25;
|
|
|
|
}
|
|
|
|
return pow2;
|
|
|
|
}
|
|
|
|
|
|
|
|
function subdivide_w_value(w) {
|
|
|
|
return Math.sqrt(0.5 + w * 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
function chop(curve, part1, part2) {
|
|
|
|
var w = curve[6];
|
|
|
|
var scale = 1 / (1 + w);
|
|
|
|
part1[0] = curve[0];
|
|
|
|
part1[1] = curve[1];
|
|
|
|
part1[2] = (curve[0] + curve[2] * w) * scale;
|
|
|
|
part1[3] = (curve[1] + curve[3] * w) * scale;
|
|
|
|
part1[4] = part2[0] = (curve[0] + (curve[2] * w) * 2 + curve[4]) * scale * 0.5;
|
|
|
|
part1[5] = part2[1] = (curve[1] + (curve[3] * w) * 2 + curve[5]) * scale * 0.5;
|
|
|
|
part2[2] = (curve[2] * w + curve[4]) * scale;
|
|
|
|
part2[3] = (curve[3] * w + curve[5]) * scale;
|
|
|
|
part2[4] = curve[4];
|
|
|
|
part2[5] = curve[5];
|
|
|
|
part1[6] = part2[6] = subdivide_w_value(w);
|
|
|
|
}
|
|
|
|
|
|
|
|
function subdivide(curve, level, pts) {
|
|
|
|
if (0 == level) {
|
|
|
|
pts.push(curve[2]);
|
|
|
|
pts.push(curve[3]);
|
|
|
|
pts.push(curve[4]);
|
|
|
|
pts.push(curve[5]);
|
|
|
|
} else {
|
|
|
|
var part1 = [], part2 = [];
|
|
|
|
chop(curve, part1, part2);
|
|
|
|
--level;
|
|
|
|
subdivide(part1, level, pts);
|
|
|
|
subdivide(part2, level, pts);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function chopIntoQuadsPOW2(curve, pow2, pts) {
|
|
|
|
subdivide(curve, pow2, pts);
|
|
|
|
return 1 << pow2;
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawConicWithQuads(x1, y1, x2, y2, x3, y3, w) {
|
|
|
|
if (alreadyDrawnConic(x1, y1, x2, y2, x3, y3, w)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.moveTo((x1 - srcLeft) * scale,
|
|
|
|
(y1 - srcTop) * scale);
|
|
|
|
var tol = 1 / scale;
|
|
|
|
var curve = [x1, y1, x2, y2, x3, y3, w];
|
|
|
|
var pow2 = computeQuadPOW2(curve, tol);
|
|
|
|
var pts = [];
|
|
|
|
chopIntoQuadsPOW2(curve, pow2, pts);
|
|
|
|
for (var i = 0; i < pts.length; i += 4) {
|
|
|
|
ctx.quadraticCurveTo(
|
|
|
|
(pts[i + 0] - srcLeft) * scale, (pts[i + 1] - srcTop) * scale,
|
|
|
|
(pts[i + 2] - srcLeft) * scale, (pts[i + 3] - srcTop) * scale);
|
|
|
|
}
|
|
|
|
ctx.stroke();
|
|
|
|
}
|
|
|
|
|
|
|
|
function conic_eval_numerator(x1, x2, x3, w, t) {
|
|
|
|
var src2w = x2 * w;
|
|
|
|
var C = x1;
|
|
|
|
var A = x3 - 2 * src2w + C;
|
|
|
|
var B = 2 * (src2w - C);
|
|
|
|
return (A * t + B) * t + C;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function conic_eval_denominator(w, t) {
|
|
|
|
var B = 2 * (w - 1);
|
|
|
|
var C = 1;
|
|
|
|
var A = -B;
|
|
|
|
return (A * t + B) * t + C;
|
|
|
|
}
|
|
|
|
|
|
|
|
function conicPartial(x1, y1, x2, y2, x3, y3, w, t1, t2) {
|
|
|
|
var ax = conic_eval_numerator(x1, x2, x3, w, t1);
|
|
|
|
var ay = conic_eval_numerator(y1, y2, y3, w, t1);
|
|
|
|
var az = conic_eval_denominator(w, t1);
|
|
|
|
var midT = (t1 + t2) / 2;
|
|
|
|
var dx = conic_eval_numerator(x1, x2, x3, w, midT);
|
|
|
|
var dy = conic_eval_numerator(y1, y2, y3, w, midT);
|
|
|
|
var dz = conic_eval_denominator(w, midT);
|
|
|
|
var cx = conic_eval_numerator(x1, x2, x3, w, t2);
|
|
|
|
var cy = conic_eval_numerator(y1, y2, y3, w, t2);
|
|
|
|
var cz = conic_eval_denominator(w, t2);
|
|
|
|
var bx = 2 * dx - (ax + cx) / 2;
|
|
|
|
var by = 2 * dy - (ay + cy) / 2;
|
|
|
|
var bz = 2 * dz - (az + cz) / 2;
|
|
|
|
var dt = t2 - t1;
|
|
|
|
var dt_1 = 1 - dt;
|
|
|
|
var array = [
|
2015-10-22 14:23:52 +00:00
|
|
|
ax / az, ay / az, bx / bz, by / bz, cx / cz, cy / cz, 0
|
2015-04-20 15:31:59 +00:00
|
|
|
];
|
2015-10-22 14:23:52 +00:00
|
|
|
var dMidAC = { x:(array[0] + array[4]) / 2, y:(array[1] + array[5]) / 2 };
|
|
|
|
var dMid = { x:dx / dz, y:dy / dz };
|
|
|
|
var dWNumer = { x:dMidAC.x - dMid.x, y:dMidAC.y - dMid.y };
|
|
|
|
var dWDenom = { x:dMid.x - array[2], y:dMid.y - array[3] };
|
|
|
|
var partW = Math.sqrt(dWNumer.x * dWNumer.x + dWNumer.y * dWNumer.y)
|
|
|
|
/ Math.sqrt(dWDenom.x * dWDenom.x + dWDenom.y * dWDenom.y);
|
|
|
|
array[6] = partW;
|
2015-04-20 15:31:59 +00:00
|
|
|
return array;
|
|
|
|
}
|
2016-07-18 17:01:36 +00:00
|
|
|
|
2015-04-20 15:31:59 +00:00
|
|
|
function drawConicPartial(x1, y1, x2, y2, x3, y3, w, t1, t2) {
|
|
|
|
var a = conicPartial(x1, y1, x2, y2, x3, y3, w, t1, t2);
|
|
|
|
var ax = a[0];
|
|
|
|
var ay = a[1];
|
|
|
|
var bx = a[2];
|
|
|
|
var by = a[3];
|
|
|
|
var cx = a[4];
|
|
|
|
var cy = a[5];
|
|
|
|
var w_ = a[6];
|
|
|
|
drawConicWithQuads(ax, ay, bx, by, cx, cy, w_);
|
|
|
|
}
|
|
|
|
|
2014-06-17 12:15:38 +00:00
|
|
|
function alreadyDrawnCubic(x1, y1, x2, y2, x3, y3, x4, y4) {
|
|
|
|
if (collect_bounds) {
|
|
|
|
if (focus_enabled) {
|
|
|
|
focusXmin = Math.min(focusXmin, x1, x2, x3, x4);
|
|
|
|
focusYmin = Math.min(focusYmin, y1, y2, y3, y4);
|
|
|
|
focusXmax = Math.max(focusXmax, x1, x2, x3, x4);
|
|
|
|
focusYmax = Math.max(focusYmax, y1, y2, y3, y4);
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
for (var pts = 0; pts < drawnCubics.length; pts += 8) {
|
|
|
|
if (x1 == drawnCubics[pts] && y1 == drawnCubics[pts + 1]
|
2016-07-18 17:01:36 +00:00
|
|
|
&& x2 == drawnCubics[pts + 2] && y2 == drawnCubics[pts + 3]
|
|
|
|
&& x3 == drawnCubics[pts + 4] && y3 == drawnCubics[pts + 5]
|
2014-06-17 12:15:38 +00:00
|
|
|
&& x4 == drawnCubics[pts + 6] && y4 == drawnCubics[pts + 7]) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
drawnCubics.push(x1);
|
|
|
|
drawnCubics.push(y1);
|
|
|
|
drawnCubics.push(x2);
|
|
|
|
drawnCubics.push(y2);
|
|
|
|
drawnCubics.push(x3);
|
|
|
|
drawnCubics.push(y3);
|
|
|
|
drawnCubics.push(x4);
|
|
|
|
drawnCubics.push(y4);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawCubic(x1, y1, x2, y2, x3, y3, x4, y4) {
|
|
|
|
if (alreadyDrawnCubic(x1, y1, x2, y2, x3, y3, x4, y4)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.moveTo((x1 - srcLeft) * scale,
|
|
|
|
(y1 - srcTop) * scale);
|
|
|
|
ctx.bezierCurveTo((x2 - srcLeft) * scale,
|
|
|
|
(y2 - srcTop) * scale,
|
|
|
|
(x3 - srcLeft) * scale,
|
|
|
|
(y3 - srcTop) * scale,
|
|
|
|
(x4 - srcLeft) * scale,
|
|
|
|
(y4 - srcTop) * scale);
|
|
|
|
ctx.stroke();
|
|
|
|
}
|
|
|
|
|
|
|
|
function interp_cubic_coords(x1, x2, x3, x4, t)
|
|
|
|
{
|
|
|
|
var ab = interp(x1, x2, t);
|
|
|
|
var bc = interp(x2, x3, t);
|
|
|
|
var cd = interp(x3, x4, t);
|
|
|
|
var abc = interp(ab, bc, t);
|
|
|
|
var bcd = interp(bc, cd, t);
|
|
|
|
var abcd = interp(abc, bcd, t);
|
|
|
|
return abcd;
|
|
|
|
}
|
|
|
|
|
|
|
|
function cubicPartial(x1, y1, x2, y2, x3, y3, x4, y4, t1, t2) {
|
|
|
|
var ax = interp_cubic_coords(x1, x2, x3, x4, t1);
|
|
|
|
var ay = interp_cubic_coords(y1, y2, y3, y4, t1);
|
|
|
|
var ex = interp_cubic_coords(x1, x2, x3, x4, (t1*2+t2)/3);
|
|
|
|
var ey = interp_cubic_coords(y1, y2, y3, y4, (t1*2+t2)/3);
|
|
|
|
var fx = interp_cubic_coords(x1, x2, x3, x4, (t1+t2*2)/3);
|
|
|
|
var fy = interp_cubic_coords(y1, y2, y3, y4, (t1+t2*2)/3);
|
|
|
|
var dx = interp_cubic_coords(x1, x2, x3, x4, t2);
|
|
|
|
var dy = interp_cubic_coords(y1, y2, y3, y4, t2);
|
|
|
|
var mx = ex * 27 - ax * 8 - dx;
|
|
|
|
var my = ey * 27 - ay * 8 - dy;
|
|
|
|
var nx = fx * 27 - ax - dx * 8;
|
|
|
|
var ny = fy * 27 - ay - dy * 8;
|
|
|
|
var bx = (mx * 2 - nx) / 18;
|
|
|
|
var by = (my * 2 - ny) / 18;
|
|
|
|
var cx = (nx * 2 - mx) / 18;
|
|
|
|
var cy = (ny * 2 - my) / 18;
|
|
|
|
var array = [
|
|
|
|
ax, ay, bx, by, cx, cy, dx, dy
|
|
|
|
];
|
|
|
|
return array;
|
|
|
|
}
|
2016-07-18 17:01:36 +00:00
|
|
|
|
2014-06-17 12:15:38 +00:00
|
|
|
function drawCubicPartial(x1, y1, x2, y2, x3, y3, x4, y4, t1, t2) {
|
|
|
|
var a = cubicPartial(x1, y1, x2, y2, x3, y3, x4, y4, t1, t2);
|
|
|
|
var ax = a[0];
|
|
|
|
var ay = a[1];
|
|
|
|
var bx = a[2];
|
|
|
|
var by = a[3];
|
|
|
|
var cx = a[4];
|
|
|
|
var cy = a[5];
|
|
|
|
var dx = a[6];
|
|
|
|
var dy = a[7];
|
|
|
|
if (alreadyDrawnCubic(ax, ay, bx, by, cx, cy, dx, dy)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.moveTo((ax - srcLeft) * scale,
|
|
|
|
(ay - srcTop) * scale);
|
|
|
|
ctx.bezierCurveTo((bx - srcLeft) * scale,
|
|
|
|
(by - srcTop) * scale,
|
|
|
|
(cx - srcLeft) * scale,
|
|
|
|
(cy - srcTop) * scale,
|
|
|
|
(dx - srcLeft) * scale,
|
|
|
|
(dy - srcTop) * scale);
|
|
|
|
ctx.stroke();
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawCurve(c) {
|
|
|
|
switch (c.length) {
|
|
|
|
case 4:
|
|
|
|
drawLine(c[0], c[1], c[2], c[3]);
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
drawQuad(c[0], c[1], c[2], c[3], c[4], c[5]);
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case 7:
|
|
|
|
drawConicWithQuads(c[0], c[1], c[2], c[3], c[4], c[5], c[6]);
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case 8:
|
|
|
|
drawCubic(c[0], c[1], c[2], c[3], c[4], c[5], c[6], c[7]);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function boundsWidth(pts) {
|
|
|
|
var min = pts[0];
|
|
|
|
var max = pts[0];
|
2015-04-20 15:31:59 +00:00
|
|
|
var length = pts.length == 7 ? 6 : pts.length;
|
|
|
|
for (var idx = 2; idx < length; idx += 2) {
|
2014-06-17 12:15:38 +00:00
|
|
|
min = Math.min(min, pts[idx]);
|
|
|
|
max = Math.max(max, pts[idx]);
|
|
|
|
}
|
|
|
|
return max - min;
|
|
|
|
}
|
|
|
|
|
|
|
|
function boundsHeight(pts) {
|
|
|
|
var min = pts[1];
|
|
|
|
var max = pts[1];
|
2015-04-20 15:31:59 +00:00
|
|
|
var length = pts.length == 7 ? 6 : pts.length;
|
|
|
|
for (var idx = 3; idx < length; idx += 2) {
|
2014-06-17 12:15:38 +00:00
|
|
|
min = Math.min(min, pts[idx]);
|
|
|
|
max = Math.max(max, pts[idx]);
|
|
|
|
}
|
|
|
|
return max - min;
|
|
|
|
}
|
|
|
|
|
|
|
|
function tangent(pts) {
|
|
|
|
var dx = pts[2] - pts[0];
|
|
|
|
var dy = pts[3] - pts[1];
|
|
|
|
if (dx == 0 && dy == 0 && pts.length > 4) {
|
|
|
|
dx = pts[4] - pts[0];
|
|
|
|
dy = pts[5] - pts[1];
|
2015-04-20 15:31:59 +00:00
|
|
|
if (dx == 0 && dy == 0 && pts.length == 8) {
|
2014-06-17 12:15:38 +00:00
|
|
|
dx = pts[6] - pts[0];
|
|
|
|
dy = pts[7] - pts[1];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return Math.atan2(-dy, dx);
|
|
|
|
}
|
|
|
|
|
|
|
|
function hodograph(cubic) {
|
|
|
|
var hodo = [];
|
|
|
|
hodo[0] = 3 * (cubic[2] - cubic[0]);
|
|
|
|
hodo[1] = 3 * (cubic[3] - cubic[1]);
|
|
|
|
hodo[2] = 3 * (cubic[4] - cubic[2]);
|
|
|
|
hodo[3] = 3 * (cubic[5] - cubic[3]);
|
|
|
|
hodo[4] = 3 * (cubic[6] - cubic[4]);
|
|
|
|
hodo[5] = 3 * (cubic[7] - cubic[5]);
|
|
|
|
return hodo;
|
|
|
|
}
|
|
|
|
|
|
|
|
function hodograph2(cubic) {
|
|
|
|
var quad = hodograph(cubic);
|
|
|
|
var hodo = [];
|
|
|
|
hodo[0] = 2 * (quad[2] - quad[0]);
|
|
|
|
hodo[1] = 2 * (quad[3] - quad[1]);
|
|
|
|
hodo[2] = 2 * (quad[4] - quad[2]);
|
|
|
|
hodo[3] = 2 * (quad[5] - quad[3]);
|
|
|
|
return hodo;
|
|
|
|
}
|
|
|
|
|
|
|
|
function quadraticRootsReal(A, B, C, s) {
|
|
|
|
if (A == 0) {
|
|
|
|
if (B == 0) {
|
|
|
|
s[0] = 0;
|
|
|
|
return C == 0;
|
|
|
|
}
|
|
|
|
s[0] = -C / B;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
/* normal form: x^2 + px + q = 0 */
|
|
|
|
var p = B / (2 * A);
|
|
|
|
var q = C / A;
|
|
|
|
var p2 = p * p;
|
|
|
|
if (p2 < q) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
var sqrt_D = 0;
|
|
|
|
if (p2 > q) {
|
|
|
|
sqrt_D = sqrt(p2 - q);
|
|
|
|
}
|
|
|
|
s[0] = sqrt_D - p;
|
|
|
|
s[1] = -sqrt_D - p;
|
|
|
|
return 1 + s[0] != s[1];
|
|
|
|
}
|
|
|
|
|
|
|
|
function add_valid_ts(s, realRoots, t) {
|
|
|
|
var foundRoots = 0;
|
|
|
|
for (var index = 0; index < realRoots; ++index) {
|
|
|
|
var tValue = s[index];
|
|
|
|
if (tValue >= 0 && tValue <= 1) {
|
|
|
|
for (var idx2 = 0; idx2 < foundRoots; ++idx2) {
|
|
|
|
if (t[idx2] != tValue) {
|
|
|
|
t[foundRoots++] = tValue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return foundRoots;
|
|
|
|
}
|
|
|
|
|
|
|
|
function quadraticRootsValidT(a, b, c, t) {
|
|
|
|
var s = [];
|
|
|
|
var realRoots = quadraticRootsReal(A, B, C, s);
|
|
|
|
var foundRoots = add_valid_ts(s, realRoots, t);
|
|
|
|
return foundRoots != 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
function find_cubic_inflections(cubic, tValues) {
|
|
|
|
var Ax = src[2] - src[0];
|
|
|
|
var Ay = src[3] - src[1];
|
|
|
|
var Bx = src[4] - 2 * src[2] + src[0];
|
|
|
|
var By = src[5] - 2 * src[3] + src[1];
|
|
|
|
var Cx = src[6] + 3 * (src[2] - src[4]) - src[0];
|
|
|
|
var Cy = src[7] + 3 * (src[3] - src[5]) - src[1];
|
|
|
|
return quadraticRootsValidT(Bx * Cy - By * Cx, (Ax * Cy - Ay * Cx),
|
|
|
|
Ax * By - Ay * Bx, tValues);
|
|
|
|
}
|
|
|
|
|
|
|
|
function dxy_at_t(curve, type, t) {
|
|
|
|
var dxy = {};
|
|
|
|
if (type == PATH_QUAD) {
|
|
|
|
var a = t - 1;
|
|
|
|
var b = 1 - 2 * t;
|
|
|
|
var c = t;
|
|
|
|
dxy.x = a * curve[0] + b * curve[2] + c * curve[4];
|
|
|
|
dxy.y = a * curve[1] + b * curve[3] + c * curve[5];
|
2015-04-20 15:31:59 +00:00
|
|
|
} else if (type == PATH_CONIC) {
|
|
|
|
var p20x = curve[4] - curve[0];
|
|
|
|
var p20y = curve[5] - curve[1];
|
|
|
|
var p10xw = (curve[2] - curve[0]) * curve[6];
|
|
|
|
var p10yw = (curve[3] - curve[1]) * curve[6];
|
|
|
|
var coeff0x = curve[6] * p20x - p20x;
|
|
|
|
var coeff0y = curve[6] * p20y - p20y;
|
|
|
|
var coeff1x = p20x - 2 * p10xw;
|
|
|
|
var coeff1y = p20y - 2 * p10yw;
|
|
|
|
dxy.x = t * (t * coeff0x + coeff1x) + p10xw;
|
|
|
|
dxy.y = t * (t * coeff0y + coeff1y) + p10yw;
|
2014-06-17 12:15:38 +00:00
|
|
|
} else if (type == PATH_CUBIC) {
|
|
|
|
var one_t = 1 - t;
|
|
|
|
var a = curve[0];
|
|
|
|
var b = curve[2];
|
|
|
|
var c = curve[4];
|
|
|
|
var d = curve[6];
|
|
|
|
dxy.x = 3 * ((b - a) * one_t * one_t + 2 * (c - b) * t * one_t + (d - c) * t * t);
|
|
|
|
a = curve[1];
|
|
|
|
b = curve[3];
|
|
|
|
c = curve[5];
|
|
|
|
d = curve[7];
|
|
|
|
dxy.y = 3 * ((b - a) * one_t * one_t + 2 * (c - b) * t * one_t + (d - c) * t * t);
|
|
|
|
}
|
|
|
|
return dxy;
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawLabel(num, px, py) {
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.arc(px, py, 8, 0, Math.PI*2, true);
|
|
|
|
ctx.closePath();
|
|
|
|
ctx.strokeStyle = "rgba(0,0,0, 0.4)";
|
|
|
|
ctx.lineWidth = num == 0 || num == 3 ? 2 : 1;
|
|
|
|
ctx.stroke();
|
|
|
|
ctx.fillStyle = "black";
|
|
|
|
ctx.font = "normal 10px Arial";
|
|
|
|
// ctx.rotate(0.001);
|
|
|
|
ctx.fillText(num, px - 2, py + 3);
|
|
|
|
// ctx.rotate(-0.001);
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawLabelX(ymin, num, loc) {
|
|
|
|
var px = (loc - srcLeft) * scale;
|
|
|
|
var py = (ymin - srcTop) * scale - 20;
|
|
|
|
drawLabel(num, px, py);
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawLabelY(xmin, num, loc) {
|
|
|
|
var px = (xmin - srcLeft) * scale - 20;
|
|
|
|
var py = (loc - srcTop) * scale;
|
|
|
|
drawLabel(num, px, py);
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawHodoOrigin(hx, hy, hMinX, hMinY, hMaxX, hMaxY) {
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.moveTo(hx, hy - 100);
|
|
|
|
ctx.lineTo(hx, hy);
|
|
|
|
ctx.strokeStyle = hMinY < 0 ? "green" : "blue";
|
|
|
|
ctx.stroke();
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.moveTo(hx, hy);
|
|
|
|
ctx.lineTo(hx, hy + 100);
|
|
|
|
ctx.strokeStyle = hMaxY > 0 ? "green" : "blue";
|
|
|
|
ctx.stroke();
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.moveTo(hx - 100, hy);
|
|
|
|
ctx.lineTo(hx, hy);
|
|
|
|
ctx.strokeStyle = hMinX < 0 ? "green" : "blue";
|
|
|
|
ctx.stroke();
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.moveTo(hx, hy);
|
|
|
|
ctx.lineTo(hx + 100, hy);
|
|
|
|
ctx.strokeStyle = hMaxX > 0 ? "green" : "blue";
|
|
|
|
ctx.stroke();
|
|
|
|
}
|
|
|
|
|
|
|
|
function scalexy(x, y, mag) {
|
|
|
|
var length = Math.sqrt(x * x + y * y);
|
|
|
|
return mag / length;
|
|
|
|
}
|
|
|
|
|
2015-04-23 16:13:37 +00:00
|
|
|
function drawArrow(x, y, dx, dy, s) {
|
|
|
|
var dscale = scalexy(dx, dy, 1 / scale * 100 * s);
|
2014-06-17 12:15:38 +00:00
|
|
|
dx *= dscale;
|
|
|
|
dy *= dscale;
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.moveTo((x - srcLeft) * scale, (y - srcTop) * scale);
|
|
|
|
x += dx;
|
|
|
|
y += dy;
|
|
|
|
ctx.lineTo((x - srcLeft) * scale, (y - srcTop) * scale);
|
|
|
|
dx /= 10;
|
|
|
|
dy /= 10;
|
|
|
|
ctx.lineTo((x - dy - srcLeft) * scale, (y + dx - srcTop) * scale);
|
|
|
|
ctx.lineTo((x + dx * 2 - srcLeft) * scale, (y + dy * 2 - srcTop) * scale);
|
|
|
|
ctx.lineTo((x + dy - srcLeft) * scale, (y - dx - srcTop) * scale);
|
|
|
|
ctx.lineTo((x - srcLeft) * scale, (y - srcTop) * scale);
|
|
|
|
ctx.strokeStyle = "rgba(0,75,0, 0.4)";
|
|
|
|
ctx.stroke();
|
|
|
|
}
|
|
|
|
|
|
|
|
function x_at_t(curve, t) {
|
|
|
|
var one_t = 1 - t;
|
|
|
|
if (curve.length == 4) {
|
|
|
|
return one_t * curve[0] + t * curve[2];
|
|
|
|
}
|
|
|
|
var one_t2 = one_t * one_t;
|
|
|
|
var t2 = t * t;
|
|
|
|
if (curve.length == 6) {
|
|
|
|
return one_t2 * curve[0] + 2 * one_t * t * curve[2] + t2 * curve[4];
|
|
|
|
}
|
2015-04-20 15:31:59 +00:00
|
|
|
if (curve.length == 7) {
|
|
|
|
return (one_t2 * curve[0] + 2 * one_t * t * curve[2] * curve[6] + t2 * curve[4])
|
|
|
|
/ (one_t2 +2 * one_t * t * curve[6] + t2);
|
|
|
|
}
|
2014-06-17 12:15:38 +00:00
|
|
|
var a = one_t2 * one_t;
|
|
|
|
var b = 3 * one_t2 * t;
|
|
|
|
var c = 3 * one_t * t2;
|
|
|
|
var d = t2 * t;
|
|
|
|
return a * curve[0] + b * curve[2] + c * curve[4] + d * curve[6];
|
|
|
|
}
|
|
|
|
|
|
|
|
function y_at_t(curve, t) {
|
|
|
|
var one_t = 1 - t;
|
|
|
|
if (curve.length == 4) {
|
|
|
|
return one_t * curve[1] + t * curve[3];
|
|
|
|
}
|
|
|
|
var one_t2 = one_t * one_t;
|
|
|
|
var t2 = t * t;
|
|
|
|
if (curve.length == 6) {
|
|
|
|
return one_t2 * curve[1] + 2 * one_t * t * curve[3] + t2 * curve[5];
|
|
|
|
}
|
2015-04-20 15:31:59 +00:00
|
|
|
if (curve.length == 7) {
|
|
|
|
return (one_t2 * curve[1] + 2 * one_t * t * curve[3] * curve[6] + t2 * curve[5])
|
|
|
|
/ (one_t2 +2 * one_t * t * curve[6] + t2);
|
|
|
|
}
|
2014-06-17 12:15:38 +00:00
|
|
|
var a = one_t2 * one_t;
|
|
|
|
var b = 3 * one_t2 * t;
|
|
|
|
var c = 3 * one_t * t2;
|
|
|
|
var d = t2 * t;
|
|
|
|
return a * curve[1] + b * curve[3] + c * curve[5] + d * curve[7];
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawOrder(curve, label) {
|
|
|
|
var px = x_at_t(curve, 0.75);
|
|
|
|
var py = y_at_t(curve, 0.75);
|
|
|
|
var _px = (px - srcLeft) * scale;
|
|
|
|
var _py = (py - srcTop) * scale;
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.arc(_px, _py, 15, 0, Math.PI * 2, true);
|
|
|
|
ctx.closePath();
|
|
|
|
ctx.fillStyle = "white";
|
|
|
|
ctx.fill();
|
|
|
|
if (label == 'L') {
|
|
|
|
ctx.strokeStyle = "rgba(255,0,0, 1)";
|
|
|
|
ctx.fillStyle = "rgba(255,0,0, 1)";
|
|
|
|
} else {
|
|
|
|
ctx.strokeStyle = "rgba(0,0,255, 1)";
|
|
|
|
ctx.fillStyle = "rgba(0,0,255, 1)";
|
|
|
|
}
|
|
|
|
ctx.stroke();
|
|
|
|
ctx.font = "normal 16px Arial";
|
|
|
|
ctx.textAlign = "center";
|
|
|
|
ctx.fillText(label, _px, _py + 5);
|
|
|
|
ctx.font = "normal 10px Arial";
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawID(curve, id) {
|
|
|
|
var px = x_at_t(curve, 0.5);
|
|
|
|
var py = y_at_t(curve, 0.5);
|
|
|
|
var _px = (px - srcLeft) * scale;
|
|
|
|
var _py = (py - srcTop) * scale;
|
|
|
|
draw_id_at(id, _px, _py);
|
|
|
|
}
|
|
|
|
|
|
|
|
function draw_id_at(id, _px, _py) {
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.arc(_px, _py, 15, 0, Math.PI * 2, true);
|
|
|
|
ctx.closePath();
|
|
|
|
ctx.fillStyle = "white";
|
|
|
|
ctx.fill();
|
|
|
|
ctx.strokeStyle = "rgba(127,127,0, 1)";
|
|
|
|
ctx.fillStyle = "rgba(127,127,0, 1)";
|
|
|
|
ctx.stroke();
|
|
|
|
ctx.font = "normal 16px Arial";
|
|
|
|
ctx.textAlign = "center";
|
|
|
|
ctx.fillText(id, _px, _py + 5);
|
|
|
|
ctx.font = "normal 10px Arial";
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawLinePartialID(id, x1, y1, x2, y2, t1, t2) {
|
|
|
|
var curve = [x1, y1, x2, y2];
|
|
|
|
drawCurvePartialID(id, curve, t1, t2);
|
|
|
|
}
|
|
|
|
|
2016-07-18 17:01:36 +00:00
|
|
|
function drawLineID(id, x1, y1, x2, y2) {
|
|
|
|
drawLinePartialID(id, x1, y1, x2, y2, 0, 1);
|
|
|
|
}
|
|
|
|
|
2014-06-17 12:15:38 +00:00
|
|
|
function drawQuadPartialID(id, x1, y1, x2, y2, x3, y3, t1, t2) {
|
|
|
|
var curve = [x1, y1, x2, y2, x3, y3];
|
|
|
|
drawCurvePartialID(id, curve, t1, t2);
|
|
|
|
}
|
|
|
|
|
2016-07-18 17:01:36 +00:00
|
|
|
function drawQuadID(id, x1, y1, x2, y2, x3, y3) {
|
|
|
|
drawQuadPartialID(id, x1, y1, x2, y2, x3, y3, 0, 1);
|
|
|
|
}
|
|
|
|
|
2015-04-20 15:31:59 +00:00
|
|
|
function drawConicPartialID(id, x1, y1, x2, y2, x3, y3, w, t1, t2) {
|
|
|
|
var curve = [x1, y1, x2, y2, x3, y3, w];
|
|
|
|
drawCurvePartialID(id, curve, t1, t2);
|
|
|
|
}
|
|
|
|
|
2016-07-18 17:01:36 +00:00
|
|
|
function drawConicID(id, x1, y1, x2, y2, x3, y3, w) {
|
|
|
|
drawConicPartialID(id, x1, y1, x2, y2, x3, y3, w, 0, 1);
|
|
|
|
}
|
|
|
|
|
2014-06-17 12:15:38 +00:00
|
|
|
function drawCubicPartialID(id, x1, y1, x2, y2, x3, y3, x4, y4, t1, t2) {
|
|
|
|
var curve = [x1, y1, x2, y2, x3, y3, x4, y4];
|
|
|
|
drawCurvePartialID(id, curve, t1, t2);
|
|
|
|
}
|
|
|
|
|
2016-07-18 17:01:36 +00:00
|
|
|
function drawCubicID(id, x1, y1, x2, y2, x3, y3, x4, y4) {
|
|
|
|
drawCubicPartialID(id, x1, y1, x2, y2, x3, y3, x4, y4, 0, 1);
|
|
|
|
}
|
|
|
|
|
2014-06-17 12:15:38 +00:00
|
|
|
function drawCurvePartialID(id, curve, t1, t2) {
|
|
|
|
var px = x_at_t(curve, (t1 + t2) / 2);
|
|
|
|
var py = y_at_t(curve, (t1 + t2) / 2);
|
|
|
|
var _px = (px - srcLeft) * scale;
|
|
|
|
var _py = (py - srcTop) * scale;
|
|
|
|
draw_id_at(id, _px, _py);
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawCurveSpecials(test, curve, type) {
|
|
|
|
if (pt_labels) {
|
|
|
|
drawPoints(curve, type, pt_labels == 2);
|
|
|
|
}
|
|
|
|
if (control_lines != 0) {
|
|
|
|
drawControlLines(curve, type, control_lines);
|
|
|
|
}
|
|
|
|
if (curve_t) {
|
|
|
|
drawPointAtT(curve, type);
|
|
|
|
}
|
|
|
|
if (draw_midpoint) {
|
|
|
|
var mid = pointAtT(curve, type, 0.5);
|
|
|
|
drawPoint(mid.x, mid.y, true);
|
|
|
|
}
|
|
|
|
if (draw_id) {
|
|
|
|
var id = idByCurve(test, curve, type);
|
|
|
|
if (id >= 0) {
|
|
|
|
drawID(curve, id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (type == PATH_LINE) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (draw_deriviatives > 0) {
|
|
|
|
var d = dxy_at_t(curve, type, 0);
|
2015-04-23 16:13:37 +00:00
|
|
|
drawArrow(curve[0], curve[1], d.x, d.y, 1);
|
2014-06-17 12:15:38 +00:00
|
|
|
if (draw_deriviatives == 2) {
|
|
|
|
d = dxy_at_t(curve, type, 1);
|
|
|
|
if (type == PATH_CUBIC) {
|
2015-04-23 16:13:37 +00:00
|
|
|
drawArrow(curve[6], curve[7], d.x, d.y, 1);
|
2014-06-17 12:15:38 +00:00
|
|
|
} else {
|
2015-04-23 16:13:37 +00:00
|
|
|
drawArrow(curve[4], curve[5], d.x, d.y, 1);
|
2014-06-17 12:15:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if (draw_midpoint) {
|
|
|
|
var mid = pointAtT(curve, type, 0.5);
|
|
|
|
d = dxy_at_t(curve, type, 0.5);
|
2015-04-23 16:13:37 +00:00
|
|
|
drawArrow(mid.x, mid.y, d.x, d.y, 1);
|
2014-06-17 12:15:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if (type != PATH_CUBIC) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (draw_sequence) {
|
|
|
|
var ymin = Math.min(curve[1], curve[3], curve[5], curve[7]);
|
|
|
|
for (var i = 0; i < 8; i+= 2) {
|
|
|
|
drawLabelX(ymin, i >> 1, curve[i]);
|
|
|
|
}
|
|
|
|
var xmin = Math.min(curve[0], curve[2], curve[4], curve[6]);
|
|
|
|
for (var i = 1; i < 8; i+= 2) {
|
|
|
|
drawLabelY(xmin, i >> 1, curve[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function logCurves(test) {
|
|
|
|
for (curves in test) {
|
|
|
|
var curve = test[curves];
|
|
|
|
dumpCurve(curve);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function curveToString(curve) {
|
|
|
|
var str = "{{";
|
2015-04-20 15:31:59 +00:00
|
|
|
var length = curve.length == 7 ? 6 : curve.length;
|
|
|
|
if (curve.length == 7) {
|
|
|
|
str += "{";
|
|
|
|
}
|
|
|
|
for (i = 0; i < length; i += 2) {
|
2014-06-17 12:15:38 +00:00
|
|
|
str += curve[i].toFixed(decimal_places) + "," + curve[i + 1].toFixed(decimal_places);
|
|
|
|
if (i < curve.length - 2) {
|
|
|
|
str += "}, {";
|
|
|
|
}
|
|
|
|
}
|
2015-04-20 15:31:59 +00:00
|
|
|
str += "}";
|
|
|
|
if (curve.length == 7) {
|
|
|
|
str += "}, " + curve[6].toFixed(decimal_places);
|
|
|
|
}
|
|
|
|
str += "}";
|
2014-06-17 12:15:38 +00:00
|
|
|
return str;
|
|
|
|
}
|
|
|
|
|
|
|
|
function dumpCurve(curve) {
|
|
|
|
console.log(curveToString(curve));
|
|
|
|
}
|
|
|
|
|
|
|
|
function draw(test, lines, title) {
|
|
|
|
ctx.fillStyle = "rgba(0,0,0, 0.1)";
|
|
|
|
ctx.font = "normal 50px Arial";
|
|
|
|
ctx.textAlign = "left";
|
|
|
|
ctx.fillText(title, 50, 50);
|
|
|
|
ctx.font = "normal 10px Arial";
|
|
|
|
ctx.lineWidth = "1.001"; "0.999";
|
|
|
|
var secondPath = test.length;
|
|
|
|
var closeCount = 0;
|
|
|
|
logStart = -1;
|
|
|
|
logRange = 0;
|
|
|
|
// find last active rec type at this step
|
|
|
|
var curType = test[0];
|
|
|
|
var curStep = 0;
|
|
|
|
var hasOp = false;
|
|
|
|
var lastActive = 0;
|
|
|
|
var lastAdd = 0;
|
2015-05-11 14:21:27 +00:00
|
|
|
var lastCoin = 0;
|
2014-06-17 12:15:38 +00:00
|
|
|
var lastSect = 0;
|
|
|
|
var lastSort = 0;
|
|
|
|
var lastMark = 0;
|
2015-04-23 16:13:37 +00:00
|
|
|
var lastTop = 0;
|
2014-06-17 12:15:38 +00:00
|
|
|
activeCount = 0;
|
|
|
|
addCount = 0;
|
|
|
|
angleCount = 0;
|
|
|
|
opCount = 0;
|
|
|
|
sectCount = 0;
|
|
|
|
sortCount = 0;
|
2015-04-23 16:13:37 +00:00
|
|
|
topCount = 0;
|
2014-06-17 12:15:38 +00:00
|
|
|
markCount = 0;
|
|
|
|
activeMax = 0;
|
|
|
|
addMax = 0;
|
|
|
|
angleMax = 0;
|
2015-05-11 14:21:27 +00:00
|
|
|
coinMax = 0;
|
2014-06-17 12:15:38 +00:00
|
|
|
opMax = 0;
|
|
|
|
sectMax = 0;
|
|
|
|
sectMax2 = 0;
|
|
|
|
sortMax = 0;
|
2015-04-23 16:13:37 +00:00
|
|
|
topMax = 0;
|
2014-06-17 12:15:38 +00:00
|
|
|
markMax = 0;
|
|
|
|
lastIndex = test.length - 3;
|
|
|
|
for (var tIndex = 0; tIndex < test.length; tIndex += 3) {
|
|
|
|
var recType = test[tIndex];
|
|
|
|
if (!typeof recType == 'number' || recType < REC_TYPE_UNKNOWN || recType > REC_TYPE_LAST) {
|
|
|
|
console.log("unknown rec type: " + recType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
// if (curType == recType && curType != REC_TYPE_ADD) {
|
|
|
|
// continue;
|
|
|
|
// }
|
|
|
|
var inStepRange = step_limit == 0 || curStep < step_limit;
|
|
|
|
curType = recType;
|
|
|
|
if (recType == REC_TYPE_OP) {
|
|
|
|
hasOp = true;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (recType == REC_TYPE_UNKNOWN) {
|
|
|
|
// these types do not advance step
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
var bumpStep = false;
|
|
|
|
var records = test[tIndex + 2];
|
|
|
|
var fragType = records[0];
|
|
|
|
if (recType == REC_TYPE_ADD) {
|
|
|
|
if (records.length != 2) {
|
|
|
|
console.log("expect only two elements: " + records.length);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
if (fragType == ADD_MOVETO || fragType == ADD_CLOSE) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
++addMax;
|
|
|
|
if (!draw_add || !inStepRange) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
lastAdd = tIndex;
|
|
|
|
++addCount;
|
|
|
|
bumpStep = true;
|
|
|
|
}
|
|
|
|
if (recType == REC_TYPE_PATH && hasOp) {
|
|
|
|
secondPath = tIndex;
|
|
|
|
}
|
2015-03-26 14:52:43 +00:00
|
|
|
if (recType == REC_TYPE_PATH2 && hasOp) {
|
|
|
|
secondPath = tIndex;
|
|
|
|
}
|
2014-06-17 12:15:38 +00:00
|
|
|
if (recType == REC_TYPE_ACTIVE) {
|
|
|
|
++activeMax;
|
|
|
|
if (!draw_active || !inStepRange) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
lastActive = tIndex;
|
|
|
|
++activeCount;
|
|
|
|
bumpStep = true;
|
|
|
|
}
|
|
|
|
if (recType == REC_TYPE_ACTIVE_OP) {
|
|
|
|
++opMax;
|
|
|
|
if (!draw_op || !inStepRange) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
lastOp = tIndex;
|
|
|
|
++opCount;
|
|
|
|
bumpStep = true;
|
|
|
|
}
|
2015-03-26 14:52:43 +00:00
|
|
|
if (recType == REC_TYPE_AFTERPART) {
|
|
|
|
if (draw_angle != 3 || !inStepRange) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
lastAngle = tIndex;
|
|
|
|
++angleCount;
|
|
|
|
bumpStep = true;
|
|
|
|
}
|
2014-06-17 12:15:38 +00:00
|
|
|
if (recType == REC_TYPE_ANGLE) {
|
|
|
|
++angleMax;
|
2015-03-26 14:52:43 +00:00
|
|
|
if (draw_angle == 0 || draw_angle == 3 || !inStepRange) {
|
2014-06-17 12:15:38 +00:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
lastAngle = tIndex;
|
|
|
|
++angleCount;
|
|
|
|
bumpStep = true;
|
|
|
|
}
|
2015-05-11 14:21:27 +00:00
|
|
|
if (recType == REC_TYPE_COINCIDENCE) {
|
|
|
|
++coinMax;
|
|
|
|
if (!draw_coincidence || !inStepRange) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
lastCoin = tIndex;
|
|
|
|
++coinCount;
|
|
|
|
bumpStep = true;
|
|
|
|
}
|
2014-06-17 12:15:38 +00:00
|
|
|
if (recType == REC_TYPE_SECT) {
|
|
|
|
if (records.length != 2) {
|
|
|
|
console.log("expect only two elements: " + records.length);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
++sectMax;
|
|
|
|
var sectBump = 1;
|
|
|
|
switch (fragType) {
|
|
|
|
case INTERSECT_LINE:
|
|
|
|
case INTERSECT_QUAD_LINE:
|
|
|
|
case INTERSECT_QUAD:
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC_LINE:
|
2016-07-18 17:01:36 +00:00
|
|
|
case INTERSECT_CONIC_QUAD:
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC:
|
2014-06-17 12:15:38 +00:00
|
|
|
case INTERSECT_SELF_CUBIC:
|
|
|
|
case INTERSECT_CUBIC_LINE:
|
|
|
|
case INTERSECT_CUBIC_QUAD:
|
|
|
|
case INTERSECT_CUBIC:
|
|
|
|
sectBump = 1;
|
|
|
|
break;
|
|
|
|
case INTERSECT_LINE_2:
|
|
|
|
case INTERSECT_QUAD_LINE_2:
|
|
|
|
case INTERSECT_QUAD_2:
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC_LINE_2:
|
2016-07-18 17:01:36 +00:00
|
|
|
case INTERSECT_CONIC_QUAD_2:
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC_2:
|
2014-06-17 12:15:38 +00:00
|
|
|
case INTERSECT_CUBIC_LINE_2:
|
|
|
|
case INTERSECT_CUBIC_QUAD_2:
|
|
|
|
case INTERSECT_CUBIC_2:
|
|
|
|
sectBump = 2;
|
|
|
|
break;
|
|
|
|
case INTERSECT_LINE_NO:
|
|
|
|
case INTERSECT_QUAD_LINE_NO:
|
|
|
|
case INTERSECT_QUAD_NO:
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC_LINE_NO:
|
2016-07-18 17:01:36 +00:00
|
|
|
case INTERSECT_CONIC_QUAD_NO:
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC_NO:
|
2014-06-17 12:15:38 +00:00
|
|
|
case INTERSECT_SELF_CUBIC_NO:
|
|
|
|
case INTERSECT_CUBIC_LINE_NO:
|
|
|
|
case INTERSECT_CUBIC_QUAD_NO:
|
|
|
|
case INTERSECT_CUBIC_NO:
|
|
|
|
sectBump = 0;
|
|
|
|
break;
|
2016-09-26 12:36:58 +00:00
|
|
|
case INTERSECT_CONIC_QUAD_3:
|
2014-06-17 12:15:38 +00:00
|
|
|
case INTERSECT_CUBIC_LINE_3:
|
|
|
|
case INTERSECT_CUBIC_QUAD_3:
|
|
|
|
case INTERSECT_CUBIC_3:
|
|
|
|
sectBump = 3;
|
|
|
|
break;
|
2016-09-26 12:36:58 +00:00
|
|
|
case INTERSECT_CONIC_QUAD_4:
|
2014-06-17 12:15:38 +00:00
|
|
|
case INTERSECT_CUBIC_QUAD_4:
|
|
|
|
case INTERSECT_CUBIC_4:
|
|
|
|
sectBump = 4;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("missing case " + records.length);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
sectMax2 += sectBump;
|
|
|
|
if (draw_intersection <= 1 || !inStepRange) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
lastSect = tIndex;
|
|
|
|
sectCount += sectBump;
|
|
|
|
bumpStep = true;
|
|
|
|
}
|
|
|
|
if (recType == REC_TYPE_SORT) {
|
|
|
|
++sortMax;
|
|
|
|
if (!draw_sort || !inStepRange) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
lastSort = tIndex;
|
|
|
|
++sortCount;
|
|
|
|
bumpStep = true;
|
|
|
|
}
|
2015-04-23 16:13:37 +00:00
|
|
|
if (recType == REC_TYPE_TOP) {
|
|
|
|
++topMax;
|
|
|
|
if (!draw_top || !inStepRange) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
lastTop = tIndex;
|
|
|
|
++topCount;
|
|
|
|
bumpStep = true;
|
|
|
|
}
|
2014-06-17 12:15:38 +00:00
|
|
|
if (recType == REC_TYPE_MARK) {
|
|
|
|
++markMax;
|
|
|
|
if (!draw_mark || !inStepRange) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
lastMark = tIndex;
|
|
|
|
++markCount;
|
|
|
|
bumpStep = true;
|
|
|
|
}
|
|
|
|
if (bumpStep) {
|
|
|
|
lastIndex = tIndex;
|
|
|
|
logStart = test[tIndex + 1];
|
|
|
|
logRange = records.length / 2;
|
|
|
|
++curStep;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stepMax = (draw_add ? addMax : 0)
|
|
|
|
+ (draw_active ? activeMax : 0)
|
2015-03-24 20:55:33 +00:00
|
|
|
+ (draw_angle ? angleMax : 0)
|
2015-05-11 14:21:27 +00:00
|
|
|
+ (draw_coincidence ? coinMax : 0)
|
2015-03-26 14:52:43 +00:00
|
|
|
+ (draw_op ? opMax : 0)
|
2014-06-17 12:15:38 +00:00
|
|
|
+ (draw_sort ? sortMax : 0)
|
2015-04-23 16:13:37 +00:00
|
|
|
+ (draw_top ? topMax : 0)
|
2014-06-17 12:15:38 +00:00
|
|
|
+ (draw_mark ? markMax : 0)
|
|
|
|
+ (draw_intersection == 2 ? sectMax : draw_intersection == 3 ? sectMax2 : 0);
|
|
|
|
if (stepMax == 0) {
|
2015-05-11 14:21:27 +00:00
|
|
|
stepMax = addMax + activeMax + angleMax + coinMax + opMax + sortMax + topMax + markMax;
|
2014-06-17 12:15:38 +00:00
|
|
|
}
|
|
|
|
drawnPts = [];
|
|
|
|
drawnLines = [];
|
|
|
|
drawnQuads = [];
|
2015-04-20 15:31:59 +00:00
|
|
|
drawnConics = [];
|
2014-06-17 12:15:38 +00:00
|
|
|
drawnCubics = [];
|
|
|
|
focusXmin = focusYmin = Infinity;
|
|
|
|
focusXmax = focusYmax = -Infinity;
|
|
|
|
var pathIndex = 0;
|
|
|
|
var opLetter = 'S';
|
|
|
|
for (var tIndex = lastIndex; tIndex >= 0; tIndex -= 3) {
|
|
|
|
var recType = test[tIndex];
|
|
|
|
var records = test[tIndex + 2];
|
|
|
|
for (var recordIndex = 0; recordIndex < records.length; recordIndex += 2) {
|
|
|
|
var fragType = records[recordIndex];
|
|
|
|
if (!typeof fragType == 'number' || fragType < 1 || fragType > FRAG_TYPE_LAST) {
|
|
|
|
console.log("unknown in range frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
var frags = records[recordIndex + 1];
|
|
|
|
focus_enabled = false;
|
|
|
|
switch (recType) {
|
|
|
|
case REC_TYPE_COMPUTED:
|
|
|
|
if (draw_computed == 0) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
ctx.lineWidth = 1;
|
|
|
|
ctx.strokeStyle = pathIndex == 0 ? "black" : "red";
|
|
|
|
ctx.fillStyle = "blue";
|
|
|
|
var drawThis = false;
|
|
|
|
switch (fragType) {
|
|
|
|
case PATH_QUAD:
|
2015-04-20 15:31:59 +00:00
|
|
|
if ((draw_computed & 0x9) == 1 || ((draw_computed & 8) != 0
|
|
|
|
&& (draw_computed & 7) == pathIndex)) {
|
2014-06-17 12:15:38 +00:00
|
|
|
drawQuad(frags[0], frags[1], frags[2], frags[3],
|
|
|
|
frags[4], frags[5]);
|
|
|
|
drawThis = true;
|
|
|
|
}
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case PATH_CONIC:
|
|
|
|
if ((draw_computed & 0xA) == 2 || ((draw_computed & 8) != 0
|
|
|
|
&& (draw_computed & 7) == pathIndex)) {
|
|
|
|
drawConicWithQuads(frags[0], frags[1], frags[2], frags[3],
|
|
|
|
frags[4], frags[5], frags[6]);
|
|
|
|
drawThis = true;
|
|
|
|
}
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case PATH_CUBIC:
|
2015-04-20 15:31:59 +00:00
|
|
|
if ((draw_computed & 0xC) == 4 || ((draw_computed & 8) != 0
|
|
|
|
&& (draw_computed & 7) == pathIndex)) {
|
2014-06-17 12:15:38 +00:00
|
|
|
drawCubic(frags[0], frags[1], frags[2], frags[3],
|
|
|
|
frags[4], frags[5], frags[6], frags[7]);
|
|
|
|
drawThis = true;
|
|
|
|
}
|
|
|
|
++pathIndex;
|
|
|
|
break;
|
|
|
|
case COMPUTED_SET_1:
|
|
|
|
pathIndex = 0;
|
|
|
|
break;
|
|
|
|
case COMPUTED_SET_2:
|
|
|
|
pathIndex = 1;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("unknown REC_TYPE_COMPUTED frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
if (!drawThis || collect_bounds) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
drawCurveSpecials(test, frags, fragType);
|
|
|
|
break;
|
2015-10-16 16:03:38 +00:00
|
|
|
case REC_TYPE_ALIGNED:
|
|
|
|
if (draw_path < 4) {
|
|
|
|
continue;
|
|
|
|
}
|
2014-06-17 12:15:38 +00:00
|
|
|
case REC_TYPE_PATH:
|
2015-03-26 14:52:43 +00:00
|
|
|
case REC_TYPE_PATH2:
|
2015-10-16 16:03:38 +00:00
|
|
|
if (REC_TYPE_ALIGNED != recType && draw_path >= 4) {
|
|
|
|
continue;
|
|
|
|
}
|
2014-06-17 12:15:38 +00:00
|
|
|
if (!draw_path) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
var firstPath = tIndex < secondPath;
|
|
|
|
if ((draw_path & (firstPath ? 1 : 2)) == 0) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
ctx.lineWidth = 1;
|
|
|
|
ctx.strokeStyle = firstPath ? "black" : "red";
|
|
|
|
ctx.fillStyle = "blue";
|
2016-07-18 17:01:36 +00:00
|
|
|
var frags2 = [];
|
2014-06-17 12:15:38 +00:00
|
|
|
switch (fragType) {
|
|
|
|
case PATH_LINE:
|
2015-03-26 14:52:43 +00:00
|
|
|
for (var i = 0; i < 4; ++ i) { frags2[i] = frags[i + 1]; }
|
|
|
|
drawLine(frags2[0], frags2[1], frags2[2], frags2[3]);
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case PATH_QUAD:
|
2015-03-26 14:52:43 +00:00
|
|
|
for (var i = 0; i < 6; ++ i) { frags2[i] = frags[i + 1]; }
|
|
|
|
drawQuad(frags2[0], frags2[1], frags2[2], frags2[3],
|
|
|
|
frags2[4], frags2[5]);
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case PATH_CONIC:
|
|
|
|
for (var i = 0; i < 7; ++ i) { frags2[i] = frags[i + 1]; }
|
|
|
|
drawConicWithQuads(frags2[0], frags2[1], frags2[2], frags2[3],
|
|
|
|
frags2[4], frags2[5], frags2[6]);
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case PATH_CUBIC:
|
2015-03-26 14:52:43 +00:00
|
|
|
for (var i = 0; i < 8; ++ i) { frags2[i] = frags[i + 1]; }
|
|
|
|
drawCubic(frags2[0], frags2[1], frags2[2], frags2[3],
|
|
|
|
frags2[4], frags2[5], frags2[6], frags2[7]);
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
default:
|
2015-10-16 16:03:38 +00:00
|
|
|
console.log("unknown " + recType + " frag type: " + fragType);
|
2014-06-17 12:15:38 +00:00
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
if (collect_bounds) {
|
|
|
|
break;
|
|
|
|
}
|
2015-03-26 14:52:43 +00:00
|
|
|
drawCurveSpecials(test, frags2, fragType);
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case REC_TYPE_OP:
|
|
|
|
switch (fragType) {
|
|
|
|
case OP_INTERSECT: opLetter = 'I'; break;
|
|
|
|
case OP_DIFFERENCE: opLetter = 'D'; break;
|
|
|
|
case OP_UNION: opLetter = 'U'; break;
|
|
|
|
case OP_XOR: opLetter = 'X'; break;
|
|
|
|
default:
|
|
|
|
console.log("unknown REC_TYPE_OP frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case REC_TYPE_ACTIVE:
|
|
|
|
if (!draw_active || (step_limit > 0 && tIndex < lastActive)) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
var x1 = frags[SPAN_X1];
|
|
|
|
var y1 = frags[SPAN_Y1];
|
|
|
|
var x2 = frags[SPAN_X2];
|
|
|
|
var y2 = frags[SPAN_Y2];
|
2016-07-18 17:01:36 +00:00
|
|
|
var x3, y3, x3, y4, w;
|
2014-06-17 12:15:38 +00:00
|
|
|
ctx.lineWidth = 3;
|
|
|
|
ctx.strokeStyle = "rgba(0,0,255, 0.3)";
|
|
|
|
focus_enabled = true;
|
|
|
|
switch (fragType) {
|
|
|
|
case ACTIVE_LINE_SPAN:
|
2016-07-18 17:01:36 +00:00
|
|
|
drawLine(x1, y1, x2, y2);
|
2014-06-17 12:15:38 +00:00
|
|
|
if (draw_id) {
|
2016-07-18 17:01:36 +00:00
|
|
|
drawLineID(frags[0], x1, y1, x2, y2);
|
|
|
|
}
|
|
|
|
if (pt_labels) {
|
|
|
|
var curve = [x1, y1, x2, y2];
|
|
|
|
ctx.fillStyle = "blue";
|
|
|
|
drawPoints(curve, PATH_LINE, pt_labels == 2);
|
2014-06-17 12:15:38 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case ACTIVE_QUAD_SPAN:
|
|
|
|
x3 = frags[SPAN_X3];
|
|
|
|
y3 = frags[SPAN_Y3];
|
2016-07-18 17:01:36 +00:00
|
|
|
drawQuad(x1, y1, x2, y2, x3, y3);
|
2014-06-17 12:15:38 +00:00
|
|
|
if (draw_id) {
|
2016-07-18 17:01:36 +00:00
|
|
|
drawQuadID(frags[0], x1, y1, x2, y2, x3, y3);
|
|
|
|
}
|
|
|
|
if (pt_labels) {
|
|
|
|
var curve = [x1, y1, x2, y2, x3, y3];
|
|
|
|
ctx.fillStyle = "blue";
|
|
|
|
drawPoints(curve, PATH_QUAD, pt_labels == 2);
|
2014-06-17 12:15:38 +00:00
|
|
|
}
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case ACTIVE_CONIC_SPAN:
|
|
|
|
x3 = frags[SPAN_X3];
|
|
|
|
y3 = frags[SPAN_Y3];
|
|
|
|
w = frags[SPAN_K_W];
|
2016-07-18 17:01:36 +00:00
|
|
|
drawConicWithQuads(x1, y1, x2, y2, x3, y3, w);
|
2015-04-20 15:31:59 +00:00
|
|
|
if (draw_id) {
|
2016-07-18 17:01:36 +00:00
|
|
|
drawConicID(frags[0], x1, y1, x2, y2, x3, y3, w);
|
|
|
|
}
|
|
|
|
if (pt_labels) {
|
|
|
|
var curve = [x1, y1, x2, y2, x3, y3, w];
|
|
|
|
ctx.fillStyle = "blue";
|
|
|
|
drawPoints(curve, PATH_CONIC, pt_labels == 2);
|
2015-04-20 15:31:59 +00:00
|
|
|
}
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case ACTIVE_CUBIC_SPAN:
|
|
|
|
x3 = frags[SPAN_X3];
|
|
|
|
y3 = frags[SPAN_Y3];
|
|
|
|
x4 = frags[SPAN_X4];
|
|
|
|
y4 = frags[SPAN_Y4];
|
2016-07-18 17:01:36 +00:00
|
|
|
drawCubic(x1, y1, x2, y2, x3, y3, x4, y4);
|
2014-06-17 12:15:38 +00:00
|
|
|
if (draw_id) {
|
2016-07-18 17:01:36 +00:00
|
|
|
drawCubicID(frags[0], x1, y1, x2, y2, x3, y3, x4, y4);
|
|
|
|
}
|
|
|
|
if (pt_labels) {
|
|
|
|
var curve = [x1, y1, x2, y2, x3, y3, x4, y4];
|
|
|
|
ctx.fillStyle = "blue";
|
|
|
|
drawPoints(curve, PATH_CUBIC, pt_labels == 2);
|
2014-06-17 12:15:38 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("unknown REC_TYPE_ACTIVE frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case REC_TYPE_ACTIVE_OP:
|
|
|
|
if (!draw_op || (step_limit > 0 && tIndex < lastOp)) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
focus_enabled = true;
|
|
|
|
ctx.lineWidth = 3;
|
|
|
|
var activeSpan = frags[7] == "1";
|
|
|
|
ctx.strokeStyle = activeSpan ? "rgba(45,160,0, 0.3)" : "rgba(255,45,0, 0.5)";
|
|
|
|
var curve = curvePartialByID(test, frags[0], frags[1], frags[2]);
|
|
|
|
drawCurve(curve);
|
|
|
|
if (draw_op > 1) {
|
|
|
|
drawArc(curve, false, frags[3], frags[4]);
|
|
|
|
drawArc(curve, true, frags[5], frags[6]);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case REC_TYPE_ADD:
|
|
|
|
if (!draw_add) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
ctx.lineWidth = 3;
|
|
|
|
ctx.strokeStyle = closeCount == 0 ? "rgba(0,0,255, 0.3)"
|
|
|
|
: closeCount == 1 ? "rgba(0,127,0, 0.3)"
|
|
|
|
: closeCount == 2 ? "rgba(0,127,127, 0.3)"
|
|
|
|
: closeCount == 3 ? "rgba(127,127,0, 0.3)"
|
|
|
|
: "rgba(127,0,127, 0.3)";
|
|
|
|
focus_enabled = true;
|
|
|
|
switch (fragType) {
|
|
|
|
case ADD_MOVETO:
|
|
|
|
break;
|
|
|
|
case ADD_LINETO:
|
|
|
|
if (step_limit == 0 || tIndex >= lastAdd) {
|
|
|
|
drawLine(frags[0], frags[1], frags[2], frags[3]);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case ADD_QUADTO:
|
|
|
|
if (step_limit == 0 || tIndex >= lastAdd) {
|
|
|
|
drawQuad(frags[0], frags[1], frags[2], frags[3], frags[4], frags[5]);
|
|
|
|
}
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case ADD_CONICTO:
|
|
|
|
if (step_limit == 0 || tIndex >= lastAdd) {
|
|
|
|
drawConicWithQuads(frags[0], frags[1], frags[2], frags[3],
|
|
|
|
frags[4], frags[5], frags[6]);
|
|
|
|
}
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case ADD_CUBICTO:
|
|
|
|
if (step_limit == 0 || tIndex >= lastAdd) {
|
|
|
|
drawCubic(frags[0], frags[1], frags[2], frags[3],
|
|
|
|
frags[4], frags[5], frags[6], frags[7]);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case ADD_CLOSE:
|
|
|
|
++closeCount;
|
|
|
|
break;
|
|
|
|
case ADD_FILL:
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("unknown REC_TYPE_ADD frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case REC_TYPE_ANGLE:
|
2015-03-26 14:52:43 +00:00
|
|
|
angleBetween = frags[18] == "T";
|
|
|
|
afterIndex = 0;
|
|
|
|
if (draw_angle == 0 || draw_angle == 3 || (step_limit > 0 && tIndex < lastAngle)) {
|
2014-06-17 12:15:38 +00:00
|
|
|
continue;
|
|
|
|
}
|
|
|
|
focus_enabled = true;
|
|
|
|
ctx.lineWidth = 3;
|
|
|
|
ctx.strokeStyle = "rgba(127,45,127, 0.3)";
|
2015-03-26 14:52:43 +00:00
|
|
|
var leftCurve = curvePartialByID(test, frags[0], frags[4], frags[5]);
|
|
|
|
var midCurve = curvePartialByID(test, frags[6], frags[10], frags[11]);
|
|
|
|
var rightCurve = curvePartialByID(test, frags[12], frags[16], frags[17]);
|
2014-06-17 12:15:38 +00:00
|
|
|
drawCurve(leftCurve);
|
|
|
|
drawCurve(rightCurve);
|
2015-03-26 14:52:43 +00:00
|
|
|
ctx.strokeStyle = angleBetween ? "rgba(0,160,45, 0.3)" : "rgba(255,0,45, 0.5)";
|
2014-06-17 12:15:38 +00:00
|
|
|
drawCurve(midCurve);
|
|
|
|
if (draw_angle > 1) {
|
|
|
|
drawOrder(leftCurve, 'L');
|
|
|
|
drawOrder(rightCurve, 'R');
|
|
|
|
}
|
|
|
|
break;
|
2015-03-26 14:52:43 +00:00
|
|
|
case REC_TYPE_AFTERPART:
|
|
|
|
if (draw_angle != 3 || (step_limit > 0 && tIndex < lastAngle)) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
ctx.strokeStyle = afterIndex == 0 ? "rgba(255,0,0, 1.0)"
|
|
|
|
: (afterIndex == 1) == angleBetween ? "rgba(0,128,0, 1.0)"
|
|
|
|
: "rgba(0,0,255, 1.0)";
|
|
|
|
switch (fragType) {
|
|
|
|
case PATH_LINE:
|
|
|
|
drawLine(frags[0], frags[1], frags[2], frags[3]);
|
|
|
|
break;
|
|
|
|
case PATH_QUAD:
|
|
|
|
drawQuad(frags[0], frags[1], frags[2], frags[3],
|
|
|
|
frags[4], frags[5]);
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case PATH_CONIC:
|
|
|
|
drawConicWithQuads(frags[0], frags[1], frags[2], frags[3],
|
|
|
|
frags[4], frags[5], frags[6]);
|
|
|
|
break;
|
2015-03-26 14:52:43 +00:00
|
|
|
case PATH_CUBIC:
|
|
|
|
drawCubic(frags[0], frags[1], frags[2], frags[3],
|
2015-04-20 15:31:59 +00:00
|
|
|
frags[4], frags[5], frags[6], frags[7]);
|
2015-03-26 14:52:43 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("unknown REC_TYPE_AFTERPART frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
++afterIndex;
|
|
|
|
break;
|
2015-05-11 14:21:27 +00:00
|
|
|
case REC_TYPE_COINCIDENCE:
|
|
|
|
if (!draw_coincidence || (step_limit > 0 && tIndex < lastCoin)) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
focus_enabled = true;
|
|
|
|
ctx.lineWidth = 3;
|
|
|
|
ctx.strokeStyle = "rgba(127,45,63, 0.3)";
|
|
|
|
var curve = curvePartialByID(test, frags[0], frags[1], frags[2]);
|
|
|
|
drawCurve(curve);
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case REC_TYPE_SECT:
|
|
|
|
if (!draw_intersection) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if (draw_intersection != 1 && (step_limit > 0 && tIndex < lastSect)) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
// draw_intersection == 1 : show all
|
|
|
|
// draw_intersection == 2 : step == 0 ? show all : show intersection line #step
|
|
|
|
// draw_intersection == 3 : step == 0 ? show all : show intersection #step
|
|
|
|
ctx.lineWidth = 1;
|
|
|
|
ctx.strokeStyle = "rgba(0,0,255, 0.3)";
|
|
|
|
ctx.fillStyle = "blue";
|
|
|
|
focus_enabled = true;
|
|
|
|
var f = [];
|
|
|
|
var c1s;
|
|
|
|
var c1l;
|
|
|
|
var c2s;
|
|
|
|
var c2l;
|
|
|
|
switch (fragType) {
|
|
|
|
case INTERSECT_LINE:
|
|
|
|
f.push(5, 6, 0, 7);
|
|
|
|
c1s = 1; c1l = 4; c2s = 8; c2l = 4;
|
|
|
|
break;
|
|
|
|
case INTERSECT_LINE_2:
|
|
|
|
f.push(5, 6, 0, 10);
|
|
|
|
f.push(8, 9, 7, 15);
|
|
|
|
c1s = 1; c1l = 4; c2s = 11; c2l = 4;
|
|
|
|
break;
|
|
|
|
case INTERSECT_LINE_NO:
|
|
|
|
c1s = 0; c1l = 4; c2s = 4; c2l = 4;
|
|
|
|
break;
|
|
|
|
case INTERSECT_QUAD_LINE:
|
|
|
|
f.push(7, 8, 0, 9);
|
|
|
|
c1s = 1; c1l = 6; c2s = 10; c2l = 4;
|
|
|
|
break;
|
|
|
|
case INTERSECT_QUAD_LINE_2:
|
|
|
|
f.push(7, 8, 0, 12);
|
|
|
|
f.push(10, 11, 9, 17);
|
|
|
|
c1s = 1; c1l = 6; c2s = 13; c2l = 4;
|
|
|
|
break;
|
|
|
|
case INTERSECT_QUAD_LINE_NO:
|
|
|
|
c1s = 0; c1l = 6; c2s = 6; c2l = 4;
|
|
|
|
break;
|
|
|
|
case INTERSECT_QUAD:
|
|
|
|
f.push(7, 8, 0, 9);
|
|
|
|
c1s = 1; c1l = 6; c2s = 10; c2l = 6;
|
|
|
|
break;
|
|
|
|
case INTERSECT_QUAD_2:
|
|
|
|
f.push(7, 8, 0, 12);
|
|
|
|
f.push(10, 11, 9, 19);
|
|
|
|
c1s = 1; c1l = 6; c2s = 13; c2l = 6;
|
|
|
|
break;
|
|
|
|
case INTERSECT_QUAD_NO:
|
|
|
|
c1s = 0; c1l = 6; c2s = 6; c2l = 6;
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC_LINE:
|
|
|
|
f.push(8, 9, 0, 10);
|
|
|
|
c1s = 1; c1l = 7; c2s = 11; c2l = 4;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CONIC_LINE_2:
|
|
|
|
f.push(8, 9, 0, 12);
|
|
|
|
f.push(11, 12, 10, 18);
|
|
|
|
c1s = 1; c1l = 7; c2s = 14; c2l = 4;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CONIC_LINE_NO:
|
|
|
|
c1s = 0; c1l = 7; c2s = 7; c2l = 4;
|
|
|
|
break;
|
2016-07-18 17:01:36 +00:00
|
|
|
case INTERSECT_CONIC_QUAD:
|
|
|
|
f.push(8, 9, 0, 10);
|
|
|
|
c1s = 1; c1l = 7; c2s = 11; c2l = 6;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CONIC_QUAD_2:
|
|
|
|
f.push(8, 9, 0, 12);
|
|
|
|
f.push(11, 12, 10, 18);
|
|
|
|
c1s = 1; c1l = 7; c2s = 14; c2l = 6;
|
|
|
|
break;
|
2016-09-26 12:36:58 +00:00
|
|
|
case INTERSECT_CONIC_QUAD_3:
|
|
|
|
f.push(8, 9, 0, 15);
|
|
|
|
f.push(11, 12, 10, 21);
|
|
|
|
f.push(14, 15, 13, 22);
|
|
|
|
c1s = 1; c1l = 7; c2s = 17; c2l = 6;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CONIC_QUAD_4:
|
|
|
|
f.push(8, 9, 0, 18);
|
|
|
|
f.push(11, 12, 10, 24);
|
|
|
|
f.push(14, 15, 13, 25);
|
|
|
|
f.push(17, 18, 16, 26);
|
|
|
|
c1s = 1; c1l = 7; c2s = 20; c2l = 6;
|
|
|
|
break;
|
2016-07-18 17:01:36 +00:00
|
|
|
case INTERSECT_CONIC_QUAD_NO:
|
|
|
|
c1s = 0; c1l = 7; c2s = 7; c2l = 6;
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case INTERSECT_CONIC:
|
|
|
|
f.push(8, 9, 0, 10);
|
|
|
|
c1s = 1; c1l = 7; c2s = 11; c2l = 7;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CONIC_2:
|
|
|
|
f.push(8, 9, 0, 13);
|
|
|
|
f.push(11, 12, 10, 21);
|
|
|
|
c1s = 1; c1l = 7; c2s = 14; c2l = 7;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CONIC_NO:
|
|
|
|
c1s = 0; c1l = 7; c2s = 7; c2l = 7;
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case INTERSECT_SELF_CUBIC:
|
|
|
|
f.push(9, 10, 0, 11);
|
|
|
|
c1s = 1; c1l = 8; c2s = 0; c2l = 0;
|
|
|
|
break;
|
|
|
|
case INTERSECT_SELF_CUBIC_NO:
|
|
|
|
c1s = 0; c1l = 8; c2s = 0; c2l = 0;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_LINE:
|
|
|
|
f.push(9, 10, 0, 11);
|
|
|
|
c1s = 1; c1l = 8; c2s = 12; c2l = 4;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_LINE_2:
|
|
|
|
f.push(9, 10, 0, 14);
|
|
|
|
f.push(12, 13, 11, 19);
|
|
|
|
c1s = 1; c1l = 8; c2s = 15; c2l = 4;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_LINE_3:
|
|
|
|
f.push(9, 10, 0, 17);
|
|
|
|
f.push(12, 13, 11, 22);
|
|
|
|
f.push(15, 16, 14, 23);
|
|
|
|
c1s = 1; c1l = 8; c2s = 18; c2l = 4;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_QUAD_NO:
|
|
|
|
c1s = 0; c1l = 8; c2s = 8; c2l = 6;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_QUAD:
|
|
|
|
f.push(9, 10, 0, 11);
|
|
|
|
c1s = 1; c1l = 8; c2s = 12; c2l = 6;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_QUAD_2:
|
|
|
|
f.push(9, 10, 0, 14);
|
|
|
|
f.push(12, 13, 11, 21);
|
|
|
|
c1s = 1; c1l = 8; c2s = 15; c2l = 6;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_QUAD_3:
|
|
|
|
f.push(9, 10, 0, 17);
|
|
|
|
f.push(12, 13, 11, 24);
|
|
|
|
f.push(15, 16, 14, 25);
|
|
|
|
c1s = 1; c1l = 8; c2s = 18; c2l = 6;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_QUAD_4:
|
|
|
|
f.push(9, 10, 0, 20);
|
|
|
|
f.push(12, 13, 11, 27);
|
|
|
|
f.push(15, 16, 14, 28);
|
|
|
|
f.push(18, 19, 17, 29);
|
|
|
|
c1s = 1; c1l = 8; c2s = 21; c2l = 6;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_LINE_NO:
|
|
|
|
c1s = 0; c1l = 8; c2s = 8; c2l = 4;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC:
|
|
|
|
f.push(9, 10, 0, 11);
|
|
|
|
c1s = 1; c1l = 8; c2s = 12; c2l = 8;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_2:
|
|
|
|
f.push(9, 10, 0, 14);
|
|
|
|
f.push(12, 13, 11, 23);
|
|
|
|
c1s = 1; c1l = 8; c2s = 15; c2l = 8;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_3:
|
|
|
|
f.push(9, 10, 0, 17);
|
|
|
|
f.push(12, 13, 11, 26);
|
|
|
|
f.push(15, 16, 14, 27);
|
|
|
|
c1s = 1; c1l = 8; c2s = 18; c2l = 8;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_4:
|
|
|
|
f.push(9, 10, 0, 20);
|
|
|
|
f.push(12, 13, 11, 29);
|
|
|
|
f.push(15, 16, 14, 30);
|
|
|
|
f.push(18, 19, 17, 31);
|
|
|
|
c1s = 1; c1l = 8; c2s = 21; c2l = 8;
|
|
|
|
break;
|
|
|
|
case INTERSECT_CUBIC_NO:
|
|
|
|
c1s = 0; c1l = 8; c2s = 8; c2l = 8;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("unknown REC_TYPE_SECT frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
if (draw_intersection != 1) {
|
|
|
|
var id = -1;
|
|
|
|
var curve;
|
|
|
|
switch (c1l) {
|
2016-07-18 17:01:36 +00:00
|
|
|
case 4:
|
2014-06-17 12:15:38 +00:00
|
|
|
drawLine(frags[c1s], frags[c1s + 1], frags[c1s + 2], frags[c1s + 3]);
|
|
|
|
if (draw_id) {
|
|
|
|
curve = [frags[c1s], frags[c1s + 1], frags[c1s + 2], frags[c1s + 3]];
|
|
|
|
id = idByCurve(test, curve, PATH_LINE);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
drawQuad(frags[c1s], frags[c1s + 1], frags[c1s + 2], frags[c1s + 3],
|
|
|
|
frags[c1s + 4], frags[c1s + 5]);
|
|
|
|
if (draw_id) {
|
|
|
|
curve = [frags[c1s], frags[c1s + 1], frags[c1s + 2], frags[c1s + 3],
|
|
|
|
frags[c1s + 4], frags[c1s + 5]];
|
|
|
|
id = idByCurve(test, curve, PATH_QUAD);
|
|
|
|
}
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case 7:
|
|
|
|
drawConicWithQuads(frags[c1s], frags[c1s + 1], frags[c1s + 2], frags[c1s + 3],
|
|
|
|
frags[c1s + 4], frags[c1s + 5], frags[c1s + 6]);
|
|
|
|
if (draw_id) {
|
|
|
|
curve = [frags[c1s], frags[c1s + 1], frags[c1s + 2], frags[c1s + 3],
|
|
|
|
frags[c1s + 4], frags[c1s + 5], frags[c1s + 6]];
|
|
|
|
id = idByCurve(test, curve, PATH_CONIC);
|
|
|
|
}
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case 8:
|
|
|
|
drawCubic(frags[c1s], frags[c1s + 1], frags[c1s + 2], frags[c1s + 3],
|
|
|
|
frags[c1s + 4], frags[c1s + 5], frags[c1s + 6], frags[c1s + 7]);
|
|
|
|
if (draw_id) {
|
|
|
|
curve = [frags[c1s], frags[c1s + 1], frags[c1s + 2], frags[c1s + 3],
|
|
|
|
frags[c1s + 4], frags[c1s + 5], frags[c1s + 6], frags[c1s + 7]];
|
|
|
|
id = idByCurve(test, curve, PATH_CUBIC);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (id >= 0) {
|
|
|
|
drawID(curve, id);
|
|
|
|
}
|
|
|
|
id = -1;
|
|
|
|
switch (c2l) {
|
|
|
|
case 0:
|
|
|
|
break;
|
2016-07-18 17:01:36 +00:00
|
|
|
case 4:
|
2014-06-17 12:15:38 +00:00
|
|
|
drawLine(frags[c2s], frags[c2s + 1], frags[c2s + 2], frags[c2s + 3]);
|
|
|
|
if (draw_id) {
|
|
|
|
curve = [frags[c2s], frags[c2s + 1], frags[c2s + 2], frags[c2s + 3]];
|
|
|
|
id = idByCurve(test, curve, PATH_LINE);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 6:
|
|
|
|
drawQuad(frags[c2s], frags[c2s + 1], frags[c2s + 2], frags[c2s + 3],
|
|
|
|
frags[c2s + 4], frags[c2s + 5]);
|
|
|
|
if (draw_id) {
|
|
|
|
curve = [frags[c2s], frags[c2s + 1], frags[c2s + 2], frags[c2s + 3],
|
|
|
|
frags[c2s + 4], frags[c2s + 5]];
|
|
|
|
id = idByCurve(test, curve, PATH_QUAD);
|
|
|
|
}
|
|
|
|
break;
|
2015-04-20 15:31:59 +00:00
|
|
|
case 7:
|
|
|
|
drawConicWithQuads(frags[c2s], frags[c2s + 1], frags[c2s + 2], frags[c2s + 3],
|
|
|
|
frags[c2s + 4], frags[c2s + 5], frags[c2s + 6]);
|
|
|
|
if (draw_id) {
|
|
|
|
curve = [frags[c2s], frags[c2s + 1], frags[c2s + 2], frags[c2s + 3],
|
|
|
|
frags[c2s + 4], frags[c2s + 5], frags[c2s + 6]];
|
|
|
|
id = idByCurve(test, curve, PATH_CONIC);
|
|
|
|
}
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case 8:
|
|
|
|
drawCubic(frags[c2s], frags[c2s + 1], frags[c2s + 2], frags[c2s + 3],
|
|
|
|
frags[c2s + 4], frags[c2s + 5], frags[c2s + 6], frags[c2s + 7]);
|
|
|
|
if (draw_id) {
|
|
|
|
curve = [frags[c2s], frags[c2s + 1], frags[c2s + 2], frags[c2s + 3],
|
|
|
|
frags[c2s + 4], frags[c2s + 5], frags[c2s + 6], frags[c2s + 7]];
|
|
|
|
id = idByCurve(test, curve, PATH_CUBIC);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (id >= 0) {
|
|
|
|
drawID(curve, id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (collect_bounds) {
|
|
|
|
break;
|
|
|
|
}
|
2015-03-26 14:52:43 +00:00
|
|
|
if (draw_intersection != 3 || step_limit == 0 || tIndex >= lastSect) {
|
|
|
|
for (var idx = 0; idx < f.length; idx += 4) {
|
2014-06-17 12:15:38 +00:00
|
|
|
drawPoint(frags[f[idx]], frags[f[idx + 1]], true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!draw_intersectT) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
ctx.fillStyle = "red";
|
2015-03-26 14:52:43 +00:00
|
|
|
if (draw_intersection != 3 || step_limit == 0 || tIndex >= lastSect) {
|
|
|
|
for (var idx = 0; idx < f.length; idx += 4) {
|
2014-06-17 12:15:38 +00:00
|
|
|
drawTAtPointUp(frags[f[idx]], frags[f[idx + 1]], frags[f[idx + 2]]);
|
|
|
|
drawTAtPointDown(frags[f[idx]], frags[f[idx + 1]], frags[f[idx + 3]]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case REC_TYPE_SORT:
|
|
|
|
if (!draw_sort || (step_limit > 0 && tIndex < lastSort)) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
ctx.lineWidth = 3;
|
|
|
|
ctx.strokeStyle = "rgba(127,127,0, 0.5)";
|
|
|
|
focus_enabled = true;
|
|
|
|
switch (fragType) {
|
|
|
|
case SORT_UNARY:
|
|
|
|
case SORT_BINARY:
|
|
|
|
var curve = curvePartialByID(test, frags[0], frags[6], frags[8]);
|
|
|
|
drawCurve(curve);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("unknown REC_TYPE_SORT frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
break;
|
2015-04-23 16:13:37 +00:00
|
|
|
case REC_TYPE_TOP:
|
|
|
|
if (!draw_top || (step_limit > 0 && tIndex < lastTop)) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
ctx.lineWidth = 3;
|
|
|
|
ctx.strokeStyle = "rgba(127,127,0, 0.5)";
|
|
|
|
focus_enabled = true;
|
|
|
|
{
|
|
|
|
var curve = curvePartialByID(test, frags[0], frags[1], frags[2]);
|
|
|
|
drawCurve(curve);
|
|
|
|
var type = PATH_LINE + (curve.length / 2 - 2);
|
|
|
|
var mid = pointAtT(curve, type, 0.5);
|
|
|
|
var d = dxy_at_t(curve, type, 0.5);
|
|
|
|
drawArrow(mid.x, mid.y, d.x, d.y, 0.3);
|
|
|
|
}
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case REC_TYPE_MARK:
|
|
|
|
if (!draw_mark || (step_limit > 0 && tIndex < lastMark)) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
ctx.lineWidth = 3;
|
|
|
|
ctx.strokeStyle = fragType >= MARK_DONE_LINE ?
|
|
|
|
"rgba(127,0,127, 0.5)" : "rgba(127,127,0, 0.5)";
|
|
|
|
focus_enabled = true;
|
|
|
|
switch (fragType) {
|
|
|
|
case MARK_LINE:
|
|
|
|
case MARK_DONE_LINE:
|
|
|
|
case MARK_UNSORTABLE_LINE:
|
|
|
|
case MARK_SIMPLE_LINE:
|
|
|
|
case MARK_SIMPLE_DONE_LINE:
|
|
|
|
case MARK_DONE_UNARY_LINE:
|
|
|
|
drawLinePartial(frags[1], frags[2], frags[3], frags[4],
|
|
|
|
frags[5], frags[9]);
|
|
|
|
if (draw_id) {
|
|
|
|
drawLinePartialID(frags[0], frags[1], frags[2], frags[3], frags[4],
|
|
|
|
frags[5], frags[9]);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case MARK_QUAD:
|
|
|
|
case MARK_DONE_QUAD:
|
|
|
|
case MARK_UNSORTABLE_QUAD:
|
|
|
|
case MARK_SIMPLE_QUAD:
|
|
|
|
case MARK_SIMPLE_DONE_QUAD:
|
|
|
|
case MARK_DONE_UNARY_QUAD:
|
|
|
|
drawQuadPartial(frags[1], frags[2], frags[3], frags[4],
|
|
|
|
frags[5], frags[6], frags[7], frags[11]);
|
|
|
|
if (draw_id) {
|
|
|
|
drawQuadPartialID(frags[0], frags[1], frags[2], frags[3], frags[4],
|
|
|
|
frags[5], frags[6], frags[7], frags[11]);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case MARK_CUBIC:
|
|
|
|
case MARK_DONE_CUBIC:
|
|
|
|
case MARK_UNSORTABLE_CUBIC:
|
|
|
|
case MARK_SIMPLE_CUBIC:
|
|
|
|
case MARK_SIMPLE_DONE_CUBIC:
|
|
|
|
case MARK_DONE_UNARY_CUBIC:
|
|
|
|
drawCubicPartial(frags[1], frags[2], frags[3], frags[4],
|
|
|
|
frags[5], frags[6], frags[7], frags[8], frags[9], frags[13]);
|
|
|
|
if (draw_id) {
|
|
|
|
drawCubicPartialID(frags[0], frags[1], frags[2], frags[3], frags[4],
|
|
|
|
frags[5], frags[6], frags[7], frags[8], frags[9], frags[13]);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case MARK_ANGLE_LAST:
|
|
|
|
// FIXME: ignored for now
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("unknown REC_TYPE_MARK frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
switch (recType) {
|
|
|
|
case REC_TYPE_SORT:
|
|
|
|
if (!draw_sort || (step_limit > 0 && tIndex < lastSort)) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
var angles = []; // use tangent lines to describe arcs
|
|
|
|
var windFrom = [];
|
|
|
|
var windTo = [];
|
|
|
|
var opp = [];
|
|
|
|
var minXY = Number.MAX_VALUE;
|
|
|
|
var partial;
|
|
|
|
focus_enabled = true;
|
|
|
|
var someUnsortable = false;
|
|
|
|
for (var recordIndex = 0; recordIndex < records.length; recordIndex += 2) {
|
|
|
|
var fragType = records[recordIndex];
|
|
|
|
var frags = records[recordIndex + 1];
|
|
|
|
var unsortable = (fragType == SORT_UNARY && frags[14]) ||
|
|
|
|
(fragType == SORT_BINARY && frags[16]);
|
|
|
|
someUnsortable |= unsortable;
|
|
|
|
switch (fragType) {
|
|
|
|
case SORT_UNARY:
|
|
|
|
case SORT_BINARY:
|
|
|
|
partial = curvePartialByID(test, frags[0], frags[6], frags[8]);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
console.log("unknown REC_TYPE_SORT frag type: " + fragType);
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
var dx = boundsWidth(partial);
|
|
|
|
var dy = boundsHeight(partial);
|
|
|
|
minXY = Math.min(minXY, dx * dx + dy * dy);
|
|
|
|
if (collect_bounds) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
angles.push(tangent(partial));
|
|
|
|
var from = frags[12];
|
|
|
|
var to = frags[12];
|
|
|
|
var sgn = frags[10];
|
|
|
|
if (sgn < 0) {
|
|
|
|
from -= frags[11];
|
|
|
|
} else if (sgn > 0) {
|
|
|
|
to -= frags[11];
|
|
|
|
}
|
|
|
|
windFrom.push(from + (unsortable ? "!" : ""));
|
|
|
|
windTo.push(to + (unsortable ? "!" : ""));
|
|
|
|
opp.push(fragType == SORT_BINARY);
|
|
|
|
if (draw_sort == 1) {
|
|
|
|
drawOrder(partial, frags[12]);
|
|
|
|
} else {
|
|
|
|
drawOrder(partial, (recordIndex / 2) + 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var radius = Math.sqrt(minXY) / 2 * scale;
|
|
|
|
radius = Math.min(50, radius);
|
|
|
|
var scaledRadius = radius / scale;
|
|
|
|
var centerX = partial[0];
|
|
|
|
var centerY = partial[1];
|
|
|
|
if (collect_bounds) {
|
|
|
|
if (focus_enabled) {
|
|
|
|
focusXmin = Math.min(focusXmin, centerX - scaledRadius);
|
|
|
|
focusYmin = Math.min(focusYmin, centerY - scaledRadius);
|
|
|
|
focusXmax = Math.max(focusXmax, centerX + scaledRadius);
|
|
|
|
focusYmax = Math.max(focusYmax, centerY + scaledRadius);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (collect_bounds) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (draw_log && logStart >= 0) {
|
|
|
|
ctx.font = "normal 10px Arial";
|
|
|
|
ctx.textAlign = "left";
|
|
|
|
ctx.beginPath();
|
|
|
|
var top = screenHeight - 20 - (logRange + 2) * 10;
|
|
|
|
ctx.rect(50, top, screenWidth - 100, (logRange + 2) * 10);
|
|
|
|
ctx.fillStyle = "white";
|
|
|
|
ctx.fill();
|
|
|
|
ctx.fillStyle = "rgba(0,0,0, 0.5)";
|
|
|
|
if (logStart > 0) {
|
|
|
|
ctx.fillText(lines[logStart - 1], 50, top + 8);
|
|
|
|
}
|
|
|
|
ctx.fillStyle = "black";
|
|
|
|
for (var idx = 0; idx < logRange; ++idx) {
|
|
|
|
ctx.fillText(lines[logStart + idx], 50, top + 18 + 10 * idx);
|
|
|
|
}
|
|
|
|
ctx.fillStyle = "rgba(0,0,0, 0.5)";
|
|
|
|
if (logStart + logRange < lines.length) {
|
|
|
|
ctx.fillText(lines[logStart + logRange], 50, top + 18 + 10 * logRange);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (draw_legend) {
|
|
|
|
var pos = 0;
|
2015-05-11 14:21:27 +00:00
|
|
|
var drawSomething = draw_add | draw_active | draw_angle | draw_coincidence | draw_sort | draw_mark;
|
2014-06-17 12:15:38 +00:00
|
|
|
// drawBox(pos++, "yellow", "black", opLetter, true, '');
|
|
|
|
drawBox(pos++, "rgba(0,0,255, 0.3)", "black", draw_intersection > 1 ? sectCount : sectMax2, draw_intersection, intersectionKey);
|
|
|
|
drawBox(pos++, "rgba(0,0,255, 0.3)", "black", draw_add ? addCount : addMax, draw_add, addKey);
|
|
|
|
drawBox(pos++, "rgba(0,0,255, 0.3)", "black", draw_active ? activeCount : activeMax, draw_active, activeKey);
|
|
|
|
drawBox(pos++, "rgba(127,127,0, 0.3)", "black", draw_angle ? angleCount : angleMax, draw_angle, angleKey);
|
2015-05-11 14:21:27 +00:00
|
|
|
drawBox(pos++, "rgba(127,127,0, 0.3)", "black", draw_coincidence ? coinCount : coinMax, draw_coincidence, coincidenceKey);
|
2014-06-17 12:15:38 +00:00
|
|
|
drawBox(pos++, "rgba(127,127,0, 0.3)", "black", draw_op ? opCount : opMax, draw_op, opKey);
|
|
|
|
drawBox(pos++, "rgba(127,127,0, 0.3)", "black", draw_sort ? sortCount : sortMax, draw_sort, sortKey);
|
2015-04-23 16:13:37 +00:00
|
|
|
drawBox(pos++, "rgba(127,127,0, 0.3)", "black", draw_top ? topCount : topMax, draw_top, topKey);
|
2014-06-17 12:15:38 +00:00
|
|
|
drawBox(pos++, "rgba(127,0,127, 0.3)", "black", draw_mark ? markCount : markMax, draw_mark, markKey);
|
2016-07-18 17:01:36 +00:00
|
|
|
drawBox(pos++, "black", "white",
|
2015-10-16 16:03:38 +00:00
|
|
|
(new Array('P', 'P1', 'P2', 'P', 'p', 'p1', 'p2'))[draw_path], draw_path != 0, pathKey);
|
2014-06-17 12:15:38 +00:00
|
|
|
drawBox(pos++, "rgba(0,63,0, 0.7)", "white",
|
|
|
|
(new Array('Q', 'Q', 'C', 'QC', 'Qc', 'Cq'))[draw_computed],
|
|
|
|
draw_computed != 0, computedKey);
|
|
|
|
drawBox(pos++, "green", "black", step_limit, drawSomething, '');
|
|
|
|
drawBox(pos++, "green", "black", stepMax, drawSomething, '');
|
|
|
|
drawBox(pos++, "rgba(255,0,0, 0.6)", "black", lastIndex, drawSomething & draw_log, '');
|
|
|
|
drawBox(pos++, "rgba(255,0,0, 0.6)", "black", test.length - 1, drawSomething & draw_log, '');
|
|
|
|
if (curve_t) {
|
|
|
|
drawCurveTControl();
|
|
|
|
}
|
|
|
|
ctx.font = "normal 20px Arial";
|
|
|
|
ctx.fillStyle = "rgba(0,0,0, 0.3)";
|
|
|
|
ctx.textAlign = "right";
|
|
|
|
ctx.fillText(scale.toFixed(decimal_places) + 'x' , screenWidth - 10, screenHeight - 5);
|
|
|
|
}
|
|
|
|
if (draw_hints) {
|
|
|
|
ctx.font = "normal 10px Arial";
|
|
|
|
ctx.fillStyle = "rgba(0,0,0, 0.5)";
|
|
|
|
ctx.textAlign = "right";
|
|
|
|
var y = 4;
|
|
|
|
ctx.fillText("control lines : " + controlLinesKey, ctx.screenWidthwidth - 10, pos * 50 + y++ * 10);
|
|
|
|
ctx.fillText("curve t : " + curveTKey, screenWidth - 10, pos * 50 + y++ * 10);
|
|
|
|
ctx.fillText("deriviatives : " + deriviativesKey, screenWidth - 10, pos * 50 + y++ * 10);
|
|
|
|
ctx.fillText("intersect t : " + intersectTKey, screenWidth - 10, pos * 50 + y++ * 10);
|
|
|
|
ctx.fillText("log : " + logKey, screenWidth - 10, pos * 50 + y++ * 10);
|
|
|
|
ctx.fillText("log curve : " + logCurvesKey, screenWidth - 10, pos * 50 + y++ * 10);
|
|
|
|
ctx.fillText("mid point : " + midpointKey, screenWidth - 10, pos * 50 + y++ * 10);
|
|
|
|
ctx.fillText("points : " + ptsKey, screenWidth - 10, pos * 50 + y++ * 10);
|
|
|
|
ctx.fillText("sequence : " + sequenceKey, screenWidth - 10, pos * 50 + y++ * 10);
|
|
|
|
ctx.fillText("xy : " + xyKey, screenWidth - 10, pos * 50 + y++ * 10);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawBox(y, backC, foreC, str, enable, label) {
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.fillStyle = backC;
|
|
|
|
ctx.rect(screenWidth - 40, y * 50 + 10, 40, 30);
|
|
|
|
ctx.fill();
|
|
|
|
ctx.font = "normal 16px Arial";
|
|
|
|
ctx.fillStyle = foreC;
|
|
|
|
ctx.textAlign = "center";
|
|
|
|
ctx.fillText(str, screenWidth - 20, y * 50 + 32);
|
|
|
|
if (!enable) {
|
|
|
|
ctx.fillStyle = "rgba(255,255,255, 0.5)";
|
|
|
|
ctx.fill();
|
|
|
|
}
|
|
|
|
if (label != '') {
|
|
|
|
ctx.font = "normal 9px Arial";
|
|
|
|
ctx.fillStyle = "black";
|
|
|
|
ctx.fillText(label, screenWidth - 47, y * 50 + 40);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawCurveTControl() {
|
|
|
|
ctx.lineWidth = 2;
|
|
|
|
ctx.strokeStyle = "rgba(0,0,0, 0.3)";
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.rect(screenWidth - 80, 40, 28, screenHeight - 80);
|
|
|
|
ctx.stroke();
|
|
|
|
var ty = 40 + curveT * (screenHeight - 80);
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.moveTo(screenWidth - 80, ty);
|
|
|
|
ctx.lineTo(screenWidth - 85, ty - 5);
|
|
|
|
ctx.lineTo(screenWidth - 85, ty + 5);
|
|
|
|
ctx.lineTo(screenWidth - 80, ty);
|
|
|
|
ctx.fillStyle = "rgba(0,0,0, 0.6)";
|
|
|
|
ctx.fill();
|
|
|
|
var num = curveT.toFixed(decimal_places);
|
|
|
|
ctx.font = "normal 10px Arial";
|
|
|
|
ctx.textAlign = "left";
|
|
|
|
ctx.fillText(num, screenWidth - 78, ty);
|
|
|
|
}
|
|
|
|
|
|
|
|
function ptInTControl() {
|
|
|
|
var e = window.event;
|
2016-07-18 17:01:36 +00:00
|
|
|
var tgt = e.target || e.srcElement;
|
2014-06-17 12:15:38 +00:00
|
|
|
var left = tgt.offsetLeft;
|
|
|
|
var top = tgt.offsetTop;
|
|
|
|
var x = (e.clientX - left);
|
|
|
|
var y = (e.clientY - top);
|
|
|
|
if (x < screenWidth - 80 || x > screenWidth - 50) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if (y < 40 || y > screenHeight - 80) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
curveT = (y - 40) / (screenHeight - 120);
|
|
|
|
if (curveT < 0 || curveT > 1) {
|
|
|
|
throw "stop execution";
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
function drawTop() {
|
|
|
|
if (tests[testIndex] == null) {
|
|
|
|
var str = testDivs[testIndex].textContent;
|
|
|
|
parse_all(str);
|
|
|
|
var title = testDivs[testIndex].id.toString();
|
|
|
|
testTitles[testIndex] = title;
|
|
|
|
}
|
|
|
|
init(tests[testIndex]);
|
|
|
|
redraw();
|
|
|
|
}
|
|
|
|
|
|
|
|
function redraw() {
|
|
|
|
if (focus_on_selection) {
|
|
|
|
collect_bounds = true;
|
|
|
|
draw(tests[testIndex], testLines[testIndex], testTitles[testIndex]);
|
|
|
|
collect_bounds = false;
|
|
|
|
if (focusXmin < focusXmax && focusYmin < focusYmax) {
|
|
|
|
setScale(focusXmin, focusXmax, focusYmin, focusYmax);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.fillStyle = "white";
|
|
|
|
ctx.rect(0, 0, screenWidth, screenHeight);
|
|
|
|
ctx.fill();
|
|
|
|
draw(tests[testIndex], testLines[testIndex], testTitles[testIndex]);
|
|
|
|
}
|
|
|
|
|
|
|
|
function dumpCurvePartial(test, id, t0, t1) {
|
|
|
|
var curve = curveByID(test, id);
|
|
|
|
var name = ["line", "quad", "cubic"][curve.length / 2 - 2];
|
|
|
|
console.log("id=" + id + " " + name + "=" + curveToString(curve)
|
|
|
|
+ " t0=" + t0 + " t1=" + t1
|
|
|
|
+ " partial=" + curveToString(curvePartialByID(test, id, t0, t1)));
|
|
|
|
}
|
|
|
|
|
|
|
|
function dumpAngleTest(test, id, t0, t1) {
|
|
|
|
var curve = curveByID(test, id);
|
2016-07-18 17:01:36 +00:00
|
|
|
console.log(" { {" + curveToString(curve) + "}, "
|
2014-06-17 12:15:38 +00:00
|
|
|
+ curve.length / 2 + ", " + t0 + ", " + t1 + ", {} }, //");
|
|
|
|
}
|
|
|
|
|
|
|
|
function dumpLogToConsole() {
|
|
|
|
if (logStart < 0) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
var test = tests[testIndex];
|
|
|
|
var recType = REC_TYPE_UNKNOWN;
|
|
|
|
var records;
|
|
|
|
for (var index = 0; index < test.length; index += 3) {
|
|
|
|
var lastLineNo = test[index + 1];
|
|
|
|
if (lastLineNo >= logStart && lastLineNo < logStart + logRange) {
|
|
|
|
recType = test[index];
|
|
|
|
records = test[index + 2];
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (recType == REC_TYPE_UNKNOWN) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
var lines = testLines[testIndex];
|
|
|
|
for (var idx = 0; idx < logRange; ++idx) {
|
|
|
|
var line = lines[logStart + idx];
|
|
|
|
console.log(line);
|
|
|
|
for (var recordIndex = 0; recordIndex < records.length; recordIndex += 2) {
|
|
|
|
var fragType = records[recordIndex];
|
|
|
|
var frags = records[recordIndex + 1];
|
|
|
|
if (recType == REC_TYPE_ANGLE && fragType == ANGLE_AFTER) {
|
|
|
|
dumpCurvePartial(test, frags[0], frags[4], frags[5]);
|
|
|
|
dumpCurvePartial(test, frags[6], frags[10], frags[11]);
|
|
|
|
dumpCurvePartial(test, frags[12], frags[16], frags[17]);
|
|
|
|
console.log("\nstatic IntersectData intersectDataSet[] = { //");
|
|
|
|
dumpAngleTest(test, frags[0], frags[4], frags[5]);
|
|
|
|
dumpAngleTest(test, frags[6], frags[10], frags[11]);
|
|
|
|
dumpAngleTest(test, frags[12], frags[16], frags[17]);
|
|
|
|
console.log("}; //");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var activeKey = 'a';
|
|
|
|
var pathKey = 'b';
|
|
|
|
var pathBackKey = 'B';
|
|
|
|
var centerKey = 'c';
|
2015-05-11 14:21:27 +00:00
|
|
|
var coincidenceKey = 'C';
|
2014-06-17 12:15:38 +00:00
|
|
|
var addKey = 'd';
|
|
|
|
var deriviativesKey = 'f';
|
|
|
|
var angleKey = 'g';
|
|
|
|
var angleBackKey = 'G';
|
|
|
|
var intersectionKey = 'i';
|
|
|
|
var intersectionBackKey = 'I';
|
|
|
|
var sequenceKey = 'j';
|
|
|
|
var midpointKey = 'k';
|
|
|
|
var logKey = 'l';
|
|
|
|
var logToConsoleKey = 'L';
|
|
|
|
var markKey = 'm';
|
|
|
|
var sortKey = 'o';
|
|
|
|
var opKey = 'p';
|
|
|
|
var opBackKey = 'P';
|
|
|
|
var computedKey = 'q';
|
|
|
|
var computedBackKey = 'Q';
|
|
|
|
var stepKey = 's';
|
|
|
|
var stepBackKey = 'S';
|
|
|
|
var intersectTKey = 't';
|
2015-04-23 16:13:37 +00:00
|
|
|
var topKey = 'T';
|
2014-06-17 12:15:38 +00:00
|
|
|
var curveTKey = 'u';
|
|
|
|
var controlLinesBackKey = 'V';
|
|
|
|
var controlLinesKey = 'v';
|
|
|
|
var ptsKey = 'x';
|
|
|
|
var xyKey = 'y';
|
|
|
|
var logCurvesKey = 'z';
|
|
|
|
var focusKey = '`';
|
|
|
|
var idKey = '.';
|
|
|
|
var retinaKey = '\\';
|
|
|
|
|
|
|
|
function doKeyPress(evt) {
|
|
|
|
var char = String.fromCharCode(evt.charCode);
|
|
|
|
var focusWasOn = false;
|
|
|
|
switch (char) {
|
|
|
|
case '0':
|
|
|
|
case '1':
|
|
|
|
case '2':
|
|
|
|
case '3':
|
|
|
|
case '4':
|
|
|
|
case '5':
|
|
|
|
case '6':
|
|
|
|
case '7':
|
|
|
|
case '8':
|
|
|
|
case '9':
|
|
|
|
decimal_places = char - '0';
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case activeKey:
|
|
|
|
draw_active ^= true;
|
2016-07-18 17:01:36 +00:00
|
|
|
redraw();
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case addKey:
|
|
|
|
draw_add ^= true;
|
2016-07-18 17:01:36 +00:00
|
|
|
redraw();
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case angleKey:
|
2015-03-26 14:52:43 +00:00
|
|
|
draw_angle = (draw_angle + 1) % 4;
|
2014-06-17 12:15:38 +00:00
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case angleBackKey:
|
|
|
|
draw_angle = (draw_angle + 2) % 3;
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case centerKey:
|
|
|
|
setScale(xmin, xmax, ymin, ymax);
|
2016-07-18 17:01:36 +00:00
|
|
|
redraw();
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
2015-05-11 14:21:27 +00:00
|
|
|
case coincidenceKey:
|
|
|
|
draw_coincidence ^= true;
|
|
|
|
redraw();
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case controlLinesBackKey:
|
|
|
|
control_lines = (control_lines + 3) % 4;
|
2016-07-18 17:01:36 +00:00
|
|
|
redraw();
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case controlLinesKey:
|
|
|
|
control_lines = (control_lines + 1) % 4;
|
2016-07-18 17:01:36 +00:00
|
|
|
redraw();
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case computedBackKey:
|
|
|
|
draw_computed = (draw_computed + 5) % 6;
|
2016-07-18 17:01:36 +00:00
|
|
|
redraw();
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case computedKey:
|
|
|
|
draw_computed = (draw_computed + 1) % 6;
|
2016-07-18 17:01:36 +00:00
|
|
|
redraw();
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case curveTKey:
|
|
|
|
curve_t ^= true;
|
|
|
|
if (curve_t) {
|
|
|
|
draw_legend = true;
|
|
|
|
}
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case deriviativesKey:
|
|
|
|
draw_deriviatives = (draw_deriviatives + 1) % 3;
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case focusKey:
|
|
|
|
focus_on_selection ^= true;
|
|
|
|
setScale(xmin, xmax, ymin, ymax);
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case idKey:
|
|
|
|
draw_id ^= true;
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case intersectionBackKey:
|
|
|
|
draw_intersection = (draw_intersection + 3) % 4;
|
2016-07-18 17:01:36 +00:00
|
|
|
redraw();
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case intersectionKey:
|
|
|
|
draw_intersection = (draw_intersection + 1) % 4;
|
2016-07-18 17:01:36 +00:00
|
|
|
redraw();
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case intersectTKey:
|
|
|
|
draw_intersectT ^= true;
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case logCurvesKey:
|
|
|
|
logCurves(tests[testIndex]);
|
|
|
|
break;
|
|
|
|
case logKey:
|
|
|
|
draw_log ^= true;
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case logToConsoleKey:
|
|
|
|
if (draw_log) {
|
|
|
|
dumpLogToConsole();
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case markKey:
|
|
|
|
draw_mark ^= true;
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case midpointKey:
|
|
|
|
draw_midpoint ^= true;
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case opKey:
|
|
|
|
draw_op = (draw_op + 1) % 3;
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case opBackKey:
|
|
|
|
draw_op = (draw_op + 2) % 3;
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case pathKey:
|
2015-10-16 16:03:38 +00:00
|
|
|
draw_path = (draw_path + 1) % (4 + (hasAlignedPath ? 3 : 0));
|
2016-07-18 17:01:36 +00:00
|
|
|
redraw();
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case pathBackKey:
|
2015-10-16 16:03:38 +00:00
|
|
|
draw_path = (draw_path + 3 + (hasAlignedPath ? 3 : 0)) % (4 + (hasAlignedPath ? 3 : 0));
|
2016-07-18 17:01:36 +00:00
|
|
|
redraw();
|
2014-06-17 12:15:38 +00:00
|
|
|
break;
|
|
|
|
case ptsKey:
|
|
|
|
pt_labels = (pt_labels + 1) % 3;
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case retinaKey:
|
|
|
|
retina_scale ^= true;
|
|
|
|
drawTop();
|
|
|
|
break;
|
|
|
|
case sequenceKey:
|
|
|
|
draw_sequence ^= true;
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case sortKey:
|
|
|
|
draw_sort = (draw_sort + 1) % 3;
|
|
|
|
drawTop();
|
|
|
|
break;
|
|
|
|
case stepKey:
|
|
|
|
step_limit++;
|
|
|
|
if (step_limit > stepMax) {
|
|
|
|
step_limit = stepMax;
|
|
|
|
}
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case stepBackKey:
|
|
|
|
step_limit--;
|
|
|
|
if (step_limit < 0) {
|
|
|
|
step_limit = 0;
|
|
|
|
}
|
|
|
|
redraw();
|
|
|
|
break;
|
2015-04-23 16:13:37 +00:00
|
|
|
case topKey:
|
|
|
|
draw_top ^= true;
|
|
|
|
redraw();
|
|
|
|
break;
|
2014-06-17 12:15:38 +00:00
|
|
|
case xyKey:
|
|
|
|
debug_xy = (debug_xy + 1) % 3;
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case '-':
|
|
|
|
focusWasOn = focus_on_selection;
|
|
|
|
if (focusWasOn) {
|
|
|
|
focus_on_selection = false;
|
|
|
|
scale /= 1.2;
|
|
|
|
} else {
|
|
|
|
scale /= 2;
|
|
|
|
calcLeftTop();
|
|
|
|
}
|
|
|
|
redraw();
|
|
|
|
focus_on_selection = focusWasOn;
|
|
|
|
break;
|
|
|
|
case '=':
|
|
|
|
case '+':
|
|
|
|
focusWasOn = focus_on_selection;
|
|
|
|
if (focusWasOn) {
|
|
|
|
focus_on_selection = false;
|
|
|
|
scale *= 1.2;
|
|
|
|
} else {
|
|
|
|
scale *= 2;
|
|
|
|
calcLeftTop();
|
|
|
|
}
|
|
|
|
redraw();
|
|
|
|
focus_on_selection = focusWasOn;
|
|
|
|
break;
|
|
|
|
case '?':
|
|
|
|
draw_hints ^= true;
|
|
|
|
if (draw_hints && !draw_legend) {
|
|
|
|
draw_legend = true;
|
|
|
|
}
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
case '/':
|
|
|
|
draw_legend ^= true;
|
|
|
|
redraw();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function doKeyDown(evt) {
|
|
|
|
var char = evt.keyCode;
|
|
|
|
var preventDefault = false;
|
|
|
|
switch (char) {
|
|
|
|
case 37: // left arrow
|
|
|
|
if (evt.shiftKey) {
|
|
|
|
testIndex -= 9;
|
|
|
|
}
|
|
|
|
if (--testIndex < 0)
|
|
|
|
testIndex = tests.length - 1;
|
|
|
|
drawTop();
|
|
|
|
preventDefault = true;
|
|
|
|
break;
|
|
|
|
case 39: // right arrow
|
|
|
|
if (evt.shiftKey) {
|
|
|
|
testIndex += 9;
|
|
|
|
}
|
|
|
|
if (++testIndex >= tests.length)
|
|
|
|
testIndex = 0;
|
|
|
|
drawTop();
|
|
|
|
preventDefault = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (preventDefault) {
|
|
|
|
evt.preventDefault();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
var hidden = "hidden";
|
|
|
|
|
|
|
|
// Standards:
|
|
|
|
if (hidden in document)
|
|
|
|
document.addEventListener("visibilitychange", onchange);
|
|
|
|
else if ((hidden = "mozHidden") in document)
|
|
|
|
document.addEventListener("mozvisibilitychange", onchange);
|
|
|
|
else if ((hidden = "webkitHidden") in document)
|
|
|
|
document.addEventListener("webkitvisibilitychange", onchange);
|
|
|
|
else if ((hidden = "msHidden") in document)
|
|
|
|
document.addEventListener("msvisibilitychange", onchange);
|
|
|
|
// IE 9 and lower:
|
|
|
|
else if ('onfocusin' in document)
|
|
|
|
document.onfocusin = document.onfocusout = onchange;
|
|
|
|
// All others:
|
|
|
|
else
|
2016-07-18 17:01:36 +00:00
|
|
|
window.onpageshow = window.onpagehide
|
2014-06-17 12:15:38 +00:00
|
|
|
= window.onfocus = window.onblur = onchange;
|
|
|
|
|
|
|
|
function onchange (evt) {
|
|
|
|
var v = 'visible', h = 'hidden',
|
2016-07-18 17:01:36 +00:00
|
|
|
evtMap = {
|
|
|
|
focus:v, focusin:v, pageshow:v, blur:h, focusout:h, pagehide:h
|
2014-06-17 12:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
evt = evt || window.event;
|
|
|
|
if (evt.type in evtMap)
|
|
|
|
document.body.className = evtMap[evt.type];
|
2016-07-18 17:01:36 +00:00
|
|
|
else
|
2014-06-17 12:15:38 +00:00
|
|
|
document.body.className = this[hidden] ? "hidden" : "visible";
|
|
|
|
}
|
|
|
|
})();
|
|
|
|
|
|
|
|
function calcXY() {
|
|
|
|
var e = window.event;
|
2016-07-18 17:01:36 +00:00
|
|
|
var tgt = e.target || e.srcElement;
|
2014-06-17 12:15:38 +00:00
|
|
|
var left = tgt.offsetLeft;
|
|
|
|
var top = tgt.offsetTop;
|
|
|
|
mouseX = (e.clientX - left) / scale + srcLeft;
|
|
|
|
mouseY = (e.clientY - top) / scale + srcTop;
|
|
|
|
}
|
|
|
|
|
|
|
|
function calcLeftTop() {
|
|
|
|
srcLeft = mouseX - screenWidth / 2 / scale;
|
|
|
|
srcTop = mouseY - screenHeight / 2 / scale;
|
|
|
|
}
|
|
|
|
|
|
|
|
var disableClick = false;
|
|
|
|
|
|
|
|
function handleMouseClick() {
|
|
|
|
if (disableClick) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (!curve_t || !ptInTControl()) {
|
|
|
|
calcXY();
|
|
|
|
calcLeftTop();
|
|
|
|
}
|
|
|
|
redraw();
|
|
|
|
// if (!curve_t || !ptInTControl()) {
|
|
|
|
// mouseX = screenWidth / 2 / scale + srcLeft;
|
|
|
|
// mouseY = screenHeight / 2 / scale + srcTop;
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
|
|
|
|
function handleMouseOver() {
|
|
|
|
calcXY();
|
|
|
|
if (debug_xy != 2) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
var num = mouseX.toFixed(decimal_places) + ", " + mouseY.toFixed(decimal_places);
|
|
|
|
ctx.beginPath();
|
|
|
|
ctx.rect(300,100,num.length * 6,10);
|
|
|
|
ctx.fillStyle="white";
|
|
|
|
ctx.fill();
|
|
|
|
ctx.font = "normal 10px Arial";
|
|
|
|
ctx.fillStyle="black";
|
|
|
|
ctx.textAlign = "left";
|
|
|
|
ctx.fillText(num, 300, 108);
|
|
|
|
}
|
|
|
|
|
|
|
|
function start() {
|
|
|
|
for (var i = 0; i < testDivs.length; ++i) {
|
|
|
|
tests[i] = null;
|
|
|
|
}
|
|
|
|
testIndex = 0;
|
|
|
|
drawTop();
|
|
|
|
window.addEventListener('keypress', doKeyPress, true);
|
|
|
|
window.addEventListener('keydown', doKeyDown, true);
|
|
|
|
window.onresize = function() {
|
|
|
|
drawTop();
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
window.onpagehide = function() {
|
|
|
|
disableClick = true;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
window.onpageshow = function () {
|
|
|
|
disableClick = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onLoad="start();">
|
|
|
|
<canvas id="canvas" width="750" height="500"
|
|
|
|
onmousemove="handleMouseOver()"
|
|
|
|
onclick="handleMouseClick()"
|
|
|
|
></canvas >
|
|
|
|
</body>
|
|
|
|
</html>
|