182b499cd7
TBR=reed@google.com BUG=skia:3651 Review URL: https://codereview.chromium.org/1129863007
4521 lines
287 KiB
HTML
4521 lines
287 KiB
HTML
<html>
|
|
<head>
|
|
<div height="0" hidden="true">
|
|
|
|
<div id="issue3651_7">
|
|
seg=1 {{{68.1999969f, 74.8000031f}, {68.4444427f, 74.8000031f}, {68.6888885f, 74.8039017f}, {68.9333344f, 74.8078003f}}}
|
|
seg=2 {{{68.9333344f, 74.8078003f}, {69.422226f, 74.8155975f}, {69.9111099f, 74.8233948f}, {70.4000015f, 74.8000031f}}}
|
|
seg=3 {{{70.4000015f, 74.8000031f}, {70.7796326f, 74.7818375f}, {71.1592636f, 74.7372665f}, {71.5388947f, 74.6926956f}}}
|
|
seg=4 {{{71.5388947f, 74.6926956f}, {71.8925934f, 74.6511688f}, {72.2462997f, 74.609642f}, {72.5999985f, 74.5894699f}}}
|
|
seg=5 {{{72.5999985f, 74.5894699f}, {73.1301117f, 74.5592346f}, {73.6602249f, 74.5564957f}, {74.1903381f, 74.5537567f}}}
|
|
seg=6 {{{74.1903381f, 74.5537567f}, {74.3935623f, 74.5527115f}, {74.5967789f, 74.5516663f}, {74.8000031f, 74.5490646f}}}
|
|
seg=7 {{{74.8000031f, 74.5490646f}, {75.0211792f, 74.5462341f}, {75.242363f, 74.5398636f}, {75.4635391f, 74.5335007f}}}
|
|
seg=8 {{{75.4635391f, 74.5335007f}, {75.9756927f, 74.5187607f}, {76.4878464f, 74.5040207f}, {77, 74.5332108f}}}
|
|
seg=9 {{{77, 74.5332108f}, {77.3702316f, 74.5543137f}, {77.7404709f, 74.610733f}, {78.1107025f, 74.66716f}}}
|
|
seg=10 {{{78.1107025f, 74.66716f}, {78.4738007f, 74.722496f}, {78.8368988f, 74.777832f}, {79.1999969f, 74.7998505f}}}
|
|
seg=11 {{{79.1999969f, 74.7998505f}, {79.689003f, 74.8295059f}, {80.1780014f, 74.819664f}, {80.6670074f, 74.8098221f}}}
|
|
seg=12 {{{80.6670074f, 74.8098221f}, {80.9113388f, 74.8049088f}, {81.1556702f, 74.7999954f}, {81.4000015f, 74.8000031f}}}
|
|
seg=13 {{{81.4000015f, 74.8000031f}, {81.6438522f, 74.8000107f}, {81.8877106f, 74.8010635f}, {82.1315613f, 74.8021164f}}}
|
|
seg=14 {{{82.1315613f, 74.8021164f}, {82.6210403f, 74.8042297f}, {83.1105194f, 74.8063507f}, {83.5999985f, 74.8000031f}}}
|
|
seg=15 {{{83.5999985f, 74.8000031f}, {83.9259109f, 74.7957764f}, {84.2518234f, 74.7840347f}, {84.5777359f, 74.7722931f}}}
|
|
seg=16 {{{84.5777359f, 74.7722931f}, {84.9851608f, 74.7576141f}, {85.3925781f, 74.7429352f}, {85.8000031f, 74.7429352f}}}
|
|
seg=17 {{{85.8000031f, 74.7429352f}, {86.2074203f, 74.7429352f}, {86.6148453f, 74.7576141f}, {87.0222626f, 74.7722931f}}}
|
|
seg=18 {{{87.0222626f, 74.7722931f}, {87.348175f, 74.7840347f}, {87.6740875f, 74.7957764f}, {88, 74.8000031f}}}
|
|
seg=19 {{{88, 74.8000031f}, {88.1576462f, 74.8020477f}, {88.3152924f, 74.8048859f}, {88.4729385f, 74.8077316f}}}
|
|
seg=20 {{{88.4729385f, 74.8077316f}, {89.0486221f, 74.8181076f}, {89.6243134f, 74.8284836f}, {90.1999969f, 74.8000031f}}}
|
|
seg=21 {{{90.1999969f, 74.8000031f}, {90.5620499f, 74.7820892f}, {90.9241028f, 74.7369537f}, {91.2861557f, 74.6918182f}}}
|
|
seg=22 {{{91.2861557f, 74.6918182f}, {91.6574402f, 74.6455307f}, {92.028717f, 74.5992432f}, {92.4000015f, 74.5823135f}}}
|
|
seg=23 {{{92.4000015f, 74.5823135f}, {92.9111481f, 74.5590057f}, {93.4223022f, 74.5721283f}, {93.9334488f, 74.5852509f}}}
|
|
seg=24 {{{93.9334488f, 74.5852509f}, {94.155632f, 74.59095f}, {94.3778152f, 74.5966568f}, {94.5999985f, 74.5993652f}}}
|
|
seg=25 {{{94.5999985f, 74.5993652f}, {94.8669891f, 74.602623f}, {95.1339798f, 74.6110153f}, {95.4009705f, 74.6194f}}}
|
|
seg=26 {{{95.4009705f, 74.6194f}, {95.8673172f, 74.6340485f}, {96.3336563f, 74.6486969f}, {96.8000031f, 74.6360168f}}}
|
|
seg=27 {{{96.8000031f, 74.6360168f}, {97.2396164f, 74.624054f}, {97.6792297f, 74.5860596f}, {98.1188431f, 74.5480652f}}}
|
|
seg=28 {{{98.1188431f, 74.5480652f}, {98.4125595f, 74.5226822f}, {98.7062836f, 74.4972992f}, {99, 74.4796829f}}}
|
|
seg=29 {{{99, 74.4796829f}, {99.7333298f, 74.4356995f}, {100.466667f, 74.3924866f}, {101.199997f, 74.3721085f}}}
|
|
seg=30 {{{101.199997f, 74.3721085f}, {101.6632f, 74.3592453f}, {102.126396f, 74.3594589f}, {102.5896f, 74.3596725f}}}
|
|
seg=31 {{{102.5896f, 74.3596725f}, {102.859734f, 74.3597946f}, {103.129868f, 74.3599167f}, {103.400002f, 74.3574448f}}}
|
|
seg=32 {{{103.400002f, 74.3574448f}, {103.499123f, 74.3565369f}, {103.598244f, 74.3556519f}, {103.697365f, 74.3547668f}}}
|
|
seg=33 {{{103.697365f, 74.3547668f}, {104.331573f, 74.3491211f}, {104.96579f, 74.3434753f}, {105.599998f, 74.3318787f}}}
|
|
seg=34 {{{105.599998f, 74.3318787f}, {105.951164f, 74.3254547f}, {106.30233f, 74.3153458f}, {106.653496f, 74.3052368f}}}
|
|
seg=35 {{{106.653496f, 74.3052368f}, {107.035667f, 74.2942352f}, {107.417831f, 74.2832336f}, {107.800003f, 74.2769852f}}}
|
|
seg=36 {{{107.800003f, 74.2769852f}, {107.904305f, 74.2752838f}, {108.008606f, 74.2734833f}, {108.112907f, 74.2716827f}}}
|
|
seg=37 {{{108.112907f, 74.2716827f}, {108.741936f, 74.2608261f}, {109.370972f, 74.2499771f}, {110, 74.2599411f}}}
|
|
seg=38 {{{110, 74.2599411f}, {110.73333f, 74.2715607f}, {111.466667f, 74.3080215f}, {112.199997f, 74.3467178f}}}
|
|
seg=39 {{{112.199997f, 74.3467178f}, {112.524193f, 74.3638306f}, {112.848389f, 74.3887024f}, {113.172585f, 74.4135742f}}}
|
|
seg=40 {{{113.172585f, 74.4135742f}, {113.581726f, 74.4449615f}, {113.99086f, 74.4763565f}, {114.400002f, 74.4921417f}}}
|
|
seg=41 {{{114.400002f, 74.4921417f}, {115.133331f, 74.5204391f}, {115.866669f, 74.5265198f}, {116.599998f, 74.5165176f}}}
|
|
seg=42 {{{116.599998f, 74.5165176f}, {117.013039f, 74.5108871f}, {117.426071f, 74.4911652f}, {117.839111f, 74.4714432f}}}
|
|
seg=43 {{{117.839111f, 74.4714432f}, {118.159409f, 74.4561462f}, {118.479706f, 74.4408493f}, {118.800003f, 74.4321289f}}}
|
|
seg=44 {{{118.800003f, 74.4321289f}, {118.915619f, 74.428978f}, {119.031235f, 74.4256439f}, {119.146851f, 74.4223099f}}}
|
|
seg=45 {{{119.146851f, 74.4223099f}, {119.764565f, 74.4045105f}, {120.382286f, 74.3867035f}, {121, 74.3966675f}}}
|
|
seg=46 {{{121, 74.3966675f}, {121.552635f, 74.405571f}, {122.105278f, 74.4385529f}, {122.657913f, 74.4715347f}}}
|
|
seg=47 {{{122.657913f, 74.4715347f}, {122.838608f, 74.4823227f}, {123.019302f, 74.4931107f}, {123.199997f, 74.5030518f}}}
|
|
seg=48 {{{123.199997f, 74.5030518f}, {123.480431f, 74.5184784f}, {123.760864f, 74.5394821f}, {124.041298f, 74.5604858f}}}
|
|
seg=49 {{{124.041298f, 74.5604858f}, {124.494202f, 74.5943985f}, {124.947098f, 74.6283112f}, {125.400002f, 74.6387558f}}}
|
|
seg=50 {{{125.400002f, 74.6387558f}, {126.133331f, 74.6556625f}, {126.866669f, 74.6397476f}, {127.599998f, 74.6044846f}}}
|
|
seg=51 {{{127.599998f, 74.6044846f}, {128.17691f, 74.5767441f}, {128.75383f, 74.5233994f}, {129.33075f, 74.4700623f}}}
|
|
seg=52 {{{129.33075f, 74.4700623f}, {129.487167f, 74.4555969f}, {129.643585f, 74.4411316f}, {129.800003f, 74.4271774f}}}
|
|
seg=53 {{{129.800003f, 74.4271774f}, {130.08493f, 74.4017639f}, {130.369843f, 74.3696442f}, {130.65477f, 74.3375244f}}}
|
|
seg=54 {{{130.65477f, 74.3375244f}, {131.10318f, 74.2869797f}, {131.55159f, 74.2364349f}, {132, 74.2120285f}}}
|
|
seg=55 {{{132, 74.2120285f}, {132.682098f, 74.1748962f}, {133.364182f, 74.1806335f}, {134.04628f, 74.1863708f}}}
|
|
seg=56 {{{134.04628f, 74.1863708f}, {134.199997f, 74.1876526f}}}
|
|
seg=57 {{{134.199997f, 74.1876526f}, {134.740479f, 74.1920013f}, {135.28096f, 74.2102814f}, {135.821426f, 74.2285538f}}}
|
|
seg=58 {{{135.821426f, 74.2285538f}, {136.014282f, 74.2350769f}, {136.207138f, 74.2416f}, {136.399994f, 74.2474899f}}}
|
|
seg=59 {{{136.399994f, 74.2474899f}, {136.723831f, 74.2573776f}, {137.047668f, 74.2692032f}, {137.371506f, 74.2810364f}}}
|
|
seg=60 {{{137.371506f, 74.2810364f}, {137.781006f, 74.2959976f}, {138.190506f, 74.3109589f}, {138.600006f, 74.3219833f}}}
|
|
seg=61 {{{138.600006f, 74.3219833f}, {138.775055f, 74.3266983f}, {138.950119f, 74.3321457f}, {139.125183f, 74.3375931f}}}
|
|
seg=62 {{{139.125183f, 74.3375931f}, {139.683456f, 74.3549652f}, {140.24173f, 74.3723373f}, {140.800003f, 74.3659744f}}}
|
|
seg=63 {{{140.800003f, 74.3659744f}, {141.173523f, 74.3617172f}, {141.547028f, 74.3401871f}, {141.920547f, 74.3186493f}}}
|
|
seg=64 {{{141.920547f, 74.3186493f}, {142.280365f, 74.297905f}, {142.640182f, 74.2771606f}, {143, 74.2718658f}}}
|
|
seg=65 {{{143, 74.2718658f}, {143.733337f, 74.2610703f}, {144.46666f, 74.2575989f}, {145.199997f, 74.3011856f}}}
|
|
seg=66 {{{145.199997f, 74.3011856f}, {145.574966f, 74.3234711f}, {145.949936f, 74.3711548f}, {146.32489f, 74.4188385f}}}
|
|
seg=67 {{{146.32489f, 74.4188385f}, {146.683258f, 74.4644165f}, {147.041626f, 74.5099869f}, {147.399994f, 74.5333862f}}}
|
|
seg=68 {{{147.399994f, 74.5333862f}, {148.133331f, 74.5812607f}, {148.866669f, 74.6018982f}, {149.600006f, 74.5884552f}}}
|
|
seg=69 {{{149.600006f, 74.5884552f}, {149.982086f, 74.5814514f}, {150.364182f, 74.5504913f}, {150.746277f, 74.5195313f}}}
|
|
seg=70 {{{150.746277f, 74.5195313f}, {151.097519f, 74.491066f}, {151.448761f, 74.4626007f}, {151.800003f, 74.4527512f}}}
|
|
seg=71 {{{151.800003f, 74.4527512f}, {152.343307f, 74.4375076f}, {152.886597f, 74.4468765f}, {153.429901f, 74.4562454f}}}
|
|
seg=72 {{{153.429901f, 74.4562454f}, {153.619934f, 74.4595261f}, {153.809967f, 74.4627991f}, {154, 74.4650269f}}}
|
|
seg=73 {{{154, 74.4650269f}, {154.295746f, 74.4684906f}, {154.591476f, 74.4761581f}, {154.887222f, 74.4838257f}}}
|
|
seg=74 {{{154.887222f, 74.4838257f}, {155.324814f, 74.4951782f}, {155.762405f, 74.5065308f}, {156.199997f, 74.5042419f}}}
|
|
seg=75 {{{156.199997f, 74.5042419f}, {156.559143f, 74.5023651f}, {156.918289f, 74.487793f}, {157.27742f, 74.4732208f}}}
|
|
seg=76 {{{157.27742f, 74.4732208f}, {157.651611f, 74.4580307f}, {158.025803f, 74.4428406f}, {158.399994f, 74.4420166f}}}
|
|
seg=77 {{{158.399994f, 74.4420166f}, {159.133331f, 74.4403992f}, {159.866669f, 74.448494f}, {160.600006f, 74.4945221f}}}
|
|
seg=78 {{{160.600006f, 74.4945221f}, {160.952393f, 74.5166473f}, {161.304794f, 74.5602722f}, {161.657196f, 74.6038971f}}}
|
|
seg=79 {{{161.657196f, 74.6038971f}, {162.038132f, 74.6510468f}, {162.419067f, 74.698204f}, {162.800003f, 74.7182007f}}}
|
|
seg=80 {{{162.800003f, 74.7182007f}, {163.53334f, 74.7566986f}, {164.266663f, 74.7636337f}, {165, 74.7255325f}}}
|
|
seg=81 {{{165, 74.7255325f}, {165.356293f, 74.7070236f}, {165.712585f, 74.65802f}, {166.068878f, 74.6090164f}}}
|
|
seg=82 {{{166.068878f, 74.6090164f}, {166.445923f, 74.5571594f}, {166.822952f, 74.5053024f}, {167.199997f, 74.4895782f}}}
|
|
seg=83 {{{167.199997f, 74.4895782f}, {167.933334f, 74.4590073f}, {168.666672f, 74.4903488f}, {169.399994f, 74.5420837f}}}
|
|
seg=84 {{{169.399994f, 74.5420837f}, {169.752808f, 74.5669785f}, {170.105621f, 74.6176682f}, {170.458435f, 74.6683578f}}}
|
|
seg=85 {{{170.458435f, 74.6683578f}, {170.838959f, 74.7230225f}, {171.219482f, 74.7776947f}, {171.600006f, 74.8000031f}}}
|
|
seg=86 {{{171.600006f, 74.8000031f}, {172.333328f, 74.8429871f}, {173.066666f, 74.8376999f}, {173.800003f, 74.8000031f}}}
|
|
seg=87 {{{173.800003f, 74.8000031f}, {174.500809f, 74.7639694f}, {175.201599f, 74.6750717f}, {175.902405f, 74.5861664f}}}
|
|
seg=88 {{{175.902405f, 74.5861664f}, {176, 74.5737915f}}}
|
|
seg=89 {{{176, 74.5737915f}, {176.306427f, 74.5349655f}, {176.612839f, 74.4810333f}, {176.919266f, 74.4270935f}}}
|
|
seg=90 {{{176.919266f, 74.4270935f}, {177.346176f, 74.3519516f}, {177.773087f, 74.2768097f}, {178.199997f, 74.2425385f}}}
|
|
seg=91 {{{178.199997f, 74.2425385f}, {178.933334f, 74.18367f}, {179.666672f, 74.1942673f}, {180.399994f, 74.2205505f}}}
|
|
seg=92 {{{180.399994f, 74.2205505f}, {180.822174f, 74.2356796f}, {181.244354f, 74.2772751f}, {181.666534f, 74.3188705f}}}
|
|
seg=93 {{{181.666534f, 74.3188705f}, {181.977692f, 74.3495255f}, {182.288849f, 74.3801804f}, {182.600006f, 74.400238f}}}
|
|
seg=94 {{{182.600006f, 74.400238f}, {183.153549f, 74.435936f}, {183.707108f, 74.4587555f}, {184.260666f, 74.481575f}}}
|
|
seg=95 {{{184.260666f, 74.481575f}, {184.440445f, 74.4889832f}, {184.620224f, 74.4963913f}, {184.800003f, 74.5042419f}}}
|
|
seg=96 {{{184.800003f, 74.5042419f}, {185.53334f, 74.5362625f}, {186.266663f, 74.5669022f}, {187, 74.5923843f}}}
|
|
seg=97 {{{187, 74.5923843f}, {187.218643f, 74.5999832f}, {187.437286f, 74.6105118f}, {187.65593f, 74.6210403f}}}
|
|
seg=98 {{{187.65593f, 74.6210403f}, {188.170624f, 74.6458359f}, {188.685303f, 74.6706314f}, {189.199997f, 74.6571732f}}}
|
|
seg=99 {{{189.199997f, 74.6571732f}, {189.560562f, 74.6477432f}, {189.921127f, 74.6077042f}, {190.281693f, 74.5676651f}}}
|
|
seg=100 {{{190.281693f, 74.5676651f}, {190.654465f, 74.526268f}, {191.027237f, 74.4848709f}, {191.399994f, 74.4773026f}}}
|
|
seg=101 {{{191.399994f, 74.4773026f}, {191.942627f, 74.4662857f}, {192.48526f, 74.5001678f}, {193.027893f, 74.5340576f}}}
|
|
seg=102 {{{193.027893f, 74.5340576f}, {193.218597f, 74.5459671f}, {193.409302f, 74.5578766f}, {193.600006f, 74.5678329f}}}
|
|
seg=103 {{{193.600006f, 74.5678329f}, {193.897125f, 74.5833511f}, {194.19426f, 74.6063919f}, {194.491394f, 74.6294403f}}}
|
|
seg=104 {{{194.491394f, 74.6294403f}, {194.927597f, 74.663269f}, {195.3638f, 74.6970978f}, {195.800003f, 74.7071152f}}}
|
|
seg=105 {{{195.800003f, 74.7071152f}, {196.363327f, 74.7200546f}, {196.926636f, 74.7021637f}, {197.48996f, 74.6842728f}}}
|
|
seg=106 {{{197.48996f, 74.6842728f}, {197.659973f, 74.6788712f}, {197.829987f, 74.6734695f}, {198, 74.6689148f}}}
|
|
seg=107 {{{198, 74.6689148f}, {198.539948f, 74.6544571f}, {199.07988f, 74.6331635f}, {199.619827f, 74.6118698f}}}
|
|
seg=108 {{{199.619827f, 74.6118698f}, {199.813217f, 74.6042404f}, {200.006607f, 74.596611f}, {200.199997f, 74.5892944f}}}
|
|
seg=109 {{{200.199997f, 74.5892944f}, {200.468765f, 74.5791321f}, {200.737534f, 74.5671921f}, {201.006287f, 74.5552597f}}}
|
|
seg=110 {{{201.006287f, 74.5552597f}, {201.470856f, 74.5346298f}, {201.935425f, 74.5139999f}, {202.399994f, 74.5025177f}}}
|
|
seg=111 {{{202.399994f, 74.5025177f}, {202.888885f, 74.4904327f}, {203.377777f, 74.4879456f}, {203.866669f, 74.4854507f}}}
|
|
seg=112 {{{203.866669f, 74.4854507f}, {204.111115f, 74.4842072f}, {204.35556f, 74.4829636f}, {204.600006f, 74.4805222f}}}
|
|
seg=113 {{{204.600006f, 74.4805222f}, {204.84462f, 74.4780731f}, {205.089233f, 74.476059f}, {205.333847f, 74.4740448f}}}
|
|
seg=114 {{{205.333847f, 74.4740448f}, {205.822556f, 74.4700241f}, {206.311279f, 74.4659958f}, {206.800003f, 74.4585342f}}}
|
|
seg=115 {{{206.800003f, 74.4585342f}, {207.53334f, 74.4473343f}, {208.266663f, 74.4324722f}, {209, 74.413353f}}}
|
|
seg=116 {{{209, 74.413353f}, {209.350708f, 74.404213f}, {209.701416f, 74.3919983f}, {210.052124f, 74.3797836f}}}
|
|
seg=117 {{{210.052124f, 74.3797836f}, {210.434753f, 74.3664627f}, {210.817368f, 74.3531418f}, {211.199997f, 74.3438034f}}}
|
|
seg=118 {{{211.199997f, 74.3438034f}, {211.933334f, 74.3259048f}, {212.666672f, 74.3128586f}, {213.399994f, 74.305954f}}}
|
|
seg=119 {{{213.399994f, 74.305954f}, {214.133331f, 74.2990494f}, {214.866669f, 74.2958145f}, {215.600006f, 74.3023758f}}}
|
|
seg=120 {{{215.600006f, 74.3023758f}, {216.076187f, 74.3066406f}, {216.552383f, 74.317627f}, {217.02858f, 74.3286133f}}}
|
|
seg=121 {{{217.02858f, 74.3286133f}, {217.285721f, 74.334549f}, {217.542862f, 74.340477f}, {217.800003f, 74.3453522f}}}
|
|
seg=122 {{{217.800003f, 74.3453522f}, {218.041779f, 74.3499298f}, {218.283554f, 74.358696f}, {218.52533f, 74.3674622f}}}
|
|
seg=123 {{{218.52533f, 74.3674622f}, {219.016891f, 74.3852844f}, {219.508438f, 74.4031067f}, {220, 74.3857574f}}}
|
|
seg=124 {{{220, 74.3857574f}, {220.409988f, 74.3712845f}, {220.819977f, 74.3263474f}, {221.229965f, 74.2814102f}}}
|
|
seg=125 {{{221.229965f, 74.2814102f}, {221.553314f, 74.2459717f}, {221.876648f, 74.2105331f}, {222.199997f, 74.190033f}}}
|
|
seg=126 {{{222.199997f, 74.190033f}, {222.933334f, 74.1435471f}, {223.666672f, 74.1037674f}, {224.399994f, 74.1068344f}}}
|
|
seg=127 {{{224.399994f, 74.1068344f}, {224.885803f, 74.1088638f}, {225.371613f, 74.1381073f}, {225.857422f, 74.1673508f}}}
|
|
seg=128 {{{225.857422f, 74.1673508f}, {226.10495f, 74.182251f}, {226.352478f, 74.1971512f}, {226.600006f, 74.2084503f}}}
|
|
seg=129 {{{226.600006f, 74.2084503f}, {226.839722f, 74.2193909f}, {227.079437f, 74.2324677f}, {227.319153f, 74.2455521f}}}
|
|
seg=130 {{{227.319153f, 74.2455521f}, {227.812759f, 74.2724838f}, {228.306381f, 74.2994156f}, {228.800003f, 74.3076782f}}}
|
|
seg=131 {{{228.800003f, 74.3076782f}, {229.309921f, 74.3162155f}, {229.819824f, 74.3054352f}, {230.329742f, 74.2946548f}}}
|
|
seg=132 {{{230.329742f, 74.2946548f}, {230.553162f, 74.2899323f}, {230.776581f, 74.2852097f}, {231, 74.2821121f}}}
|
|
seg=133 {{{231, 74.2821121f}, {231.290405f, 74.2780838f}, {231.580811f, 74.2724228f}, {231.871216f, 74.2667542f}}}
|
|
seg=134 {{{231.871216f, 74.2667542f}, {232.314148f, 74.2581177f}, {232.757065f, 74.2494812f}, {233.199997f, 74.2466507f}}}
|
|
seg=135 {{{233.199997f, 74.2466507f}, {233.343719f, 74.2457352f}, {233.487442f, 74.2448959f}, {233.631165f, 74.2442474f}}}
|
|
seg=136 {{{233.631165f, 74.2442474f}, {234.220779f, 74.2415924f}, {234.810394f, 74.2421951f}, {235.399994f, 74.2539825f}}}
|
|
seg=137 {{{235.399994f, 74.2539825f}, {235.845032f, 74.2628784f}, {236.29007f, 74.2817612f}, {236.735107f, 74.3006439f}}}
|
|
seg=138 {{{236.735107f, 74.3006439f}, {237.023407f, 74.3128738f}, {237.311707f, 74.3251038f}, {237.600006f, 74.3346176f}}}
|
|
seg=139 {{{237.600006f, 74.3346176f}, {238.333328f, 74.3588257f}, {239.066666f, 74.3803329f}, {239.800003f, 74.3992233f}}}
|
|
seg=140 {{{239.800003f, 74.3992233f}, {240.082169f, 74.4064941f}, {240.364334f, 74.4108353f}, {240.6465f, 74.4151764f}}}
|
|
seg=141 {{{240.6465f, 74.4151764f}, {241.097672f, 74.4221191f}, {241.548828f, 74.4290695f}, {242, 74.4479828f}}}
|
|
seg=142 {{{242, 74.4479828f}, {242.416458f, 74.4654388f}, {242.832916f, 74.4942093f}, {243.249374f, 74.5229874f}}}
|
|
seg=143 {{{243.249374f, 74.5229874f}, {243.566254f, 74.5448837f}, {243.883118f, 74.5667801f}, {244.199997f, 74.5836868f}}}
|
|
seg=144 {{{244.199997f, 74.5836868f}, {244.933334f, 74.6228104f}, {245.666672f, 74.6546402f}, {246.399994f, 74.6827393f}}}
|
|
seg=145 {{{246.399994f, 74.6827393f}, {247.133331f, 74.7108383f}, {247.866669f, 74.7327499f}, {248.600006f, 74.7522964f}}}
|
|
seg=146 {{{248.600006f, 74.7522964f}, {248.714218f, 74.7553406f}}}
|
|
seg=147 {{{248.714218f, 74.7553406f}, {249.40947f, 74.7739029f}, {250.104736f, 74.7924576f}, {250.800003f, 74.8000031f}}}
|
|
seg=148 {{{250.800003f, 74.8000031f}, {251.288895f, 74.8053055f}, {251.777771f, 74.8035355f}, {252.266663f, 74.8017731f}}}
|
|
seg=149 {{{252.266663f, 74.8017731f}, {252.511108f, 74.8008881f}, {252.755554f, 74.8000031f}, {253, 74.8000031f}}}
|
|
seg=150 {{{253, 74.8000031f}, {68.1999969f, 74.8000031f}}}
|
|
op union
|
|
seg=151 {{{68.1999969f, 74.8000031f}, {68.4444427f, 74.8000031f}, {68.6888885f, 74.7961044f}, {68.9333344f, 74.7922058f}}}
|
|
seg=152 {{{68.9333344f, 74.7922058f}, {69.422226f, 74.7844086f}, {69.9111099f, 74.7766113f}, {70.4000015f, 74.8000031f}}}
|
|
seg=153 {{{70.4000015f, 74.8000031f}, {70.7796326f, 74.8181686f}, {71.1592636f, 74.8627396f}, {71.5388947f, 74.9073105f}}}
|
|
seg=154 {{{71.5388947f, 74.9073105f}, {71.8925934f, 74.9488373f}, {72.2462997f, 74.9903641f}, {72.5999985f, 75.0105362f}}}
|
|
seg=155 {{{72.5999985f, 75.0105362f}, {73.1301117f, 75.0407715f}, {73.6602249f, 75.0435104f}, {74.1903381f, 75.0462494f}}}
|
|
seg=156 {{{74.1903381f, 75.0462494f}, {74.3935623f, 75.0472946f}, {74.5967789f, 75.0483398f}, {74.8000031f, 75.0509415f}}}
|
|
seg=157 {{{74.8000031f, 75.0509415f}, {75.0211792f, 75.053772f}, {75.242363f, 75.0601425f}, {75.4635391f, 75.0665054f}}}
|
|
seg=158 {{{75.4635391f, 75.0665054f}, {75.9756927f, 75.0812454f}, {76.4878464f, 75.0959854f}, {77, 75.0667953f}}}
|
|
seg=159 {{{77, 75.0667953f}, {77.3702316f, 75.0456924f}, {77.7404709f, 74.9892731f}, {78.1107025f, 74.9328461f}}}
|
|
seg=160 {{{78.1107025f, 74.9328461f}, {78.4738007f, 74.8775101f}, {78.8368988f, 74.8221741f}, {79.1999969f, 74.8001556f}}}
|
|
seg=161 {{{79.1999969f, 74.8001556f}, {79.689003f, 74.7705002f}, {80.1780014f, 74.7803421f}, {80.6670074f, 74.790184f}}}
|
|
seg=162 {{{80.6670074f, 74.790184f}, {80.9113388f, 74.7950974f}, {81.1556702f, 74.8000107f}, {81.4000015f, 74.8000031f}}}
|
|
seg=163 {{{81.4000015f, 74.8000031f}, {81.6438522f, 74.7999954f}, {81.8877106f, 74.7989426f}, {82.1315613f, 74.7978897f}}}
|
|
seg=164 {{{82.1315613f, 74.7978897f}, {82.6210403f, 74.7957764f}, {83.1105194f, 74.7936554f}, {83.5999985f, 74.8000031f}}}
|
|
seg=165 {{{83.5999985f, 74.8000031f}, {83.9259109f, 74.8042297f}, {84.2518234f, 74.8159714f}, {84.5777359f, 74.827713f}}}
|
|
seg=166 {{{84.5777359f, 74.827713f}, {84.9851608f, 74.842392f}, {85.3925781f, 74.8570709f}, {85.8000031f, 74.8570709f}}}
|
|
seg=167 {{{85.8000031f, 74.8570709f}, {86.2074203f, 74.8570709f}, {86.6148453f, 74.842392f}, {87.0222626f, 74.827713f}}}
|
|
seg=168 {{{87.0222626f, 74.827713f}, {87.348175f, 74.8159714f}, {87.6740875f, 74.8042297f}, {88, 74.8000031f}}}
|
|
seg=169 {{{88, 74.8000031f}, {88.1576462f, 74.7979584f}, {88.3152924f, 74.7951202f}, {88.4729385f, 74.7922745f}}}
|
|
seg=170 {{{88.4729385f, 74.7922745f}, {89.0486221f, 74.7818985f}, {89.6243134f, 74.7715225f}, {90.1999969f, 74.8000031f}}}
|
|
seg=171 {{{90.1999969f, 74.8000031f}, {90.5620499f, 74.8179169f}, {90.9241028f, 74.8630524f}, {91.2861557f, 74.9081879f}}}
|
|
seg=172 {{{91.2861557f, 74.9081879f}, {91.6574402f, 74.9544754f}, {92.028717f, 75.0007629f}, {92.4000015f, 75.0176926f}}}
|
|
seg=173 {{{92.4000015f, 75.0176926f}, {92.9111481f, 75.0410004f}, {93.4223022f, 75.0278778f}, {93.9334488f, 75.0147552f}}}
|
|
seg=174 {{{93.9334488f, 75.0147552f}, {94.155632f, 75.0090561f}, {94.3778152f, 75.0033493f}, {94.5999985f, 75.0006409f}}}
|
|
seg=175 {{{94.5999985f, 75.0006409f}, {94.8669891f, 74.9973831f}, {95.1339798f, 74.9889908f}, {95.4009705f, 74.9806061f}}}
|
|
seg=176 {{{95.4009705f, 74.9806061f}, {95.8673172f, 74.9659576f}, {96.3336563f, 74.9513092f}, {96.8000031f, 74.9639893f}}}
|
|
seg=177 {{{96.8000031f, 74.9639893f}, {97.2396164f, 74.9759521f}, {97.6792297f, 75.0139465f}, {98.1188431f, 75.0519409f}}}
|
|
seg=178 {{{98.1188431f, 75.0519409f}, {98.4125595f, 75.0773239f}, {98.7062836f, 75.1027069f}, {99, 75.1203232f}}}
|
|
seg=179 {{{99, 75.1203232f}, {99.7333298f, 75.1643066f}, {100.466667f, 75.2075195f}, {101.199997f, 75.2278976f}}}
|
|
seg=180 {{{101.199997f, 75.2278976f}, {101.6632f, 75.2407608f}, {102.126396f, 75.2405472f}, {102.5896f, 75.2403336f}}}
|
|
seg=181 {{{102.5896f, 75.2403336f}, {102.859734f, 75.2402115f}, {103.129868f, 75.2400894f}, {103.400002f, 75.2425613f}}}
|
|
seg=182 {{{103.400002f, 75.2425613f}, {103.499123f, 75.2434692f}, {103.598244f, 75.2443542f}, {103.697365f, 75.2452393f}}}
|
|
seg=183 {{{103.697365f, 75.2452393f}, {104.331573f, 75.250885f}, {104.96579f, 75.2565308f}, {105.599998f, 75.2681274f}}}
|
|
seg=184 {{{105.599998f, 75.2681274f}, {105.951164f, 75.2745514f}, {106.30233f, 75.2846603f}, {106.653496f, 75.2947693f}}}
|
|
seg=185 {{{106.653496f, 75.2947693f}, {107.035667f, 75.3057709f}, {107.417831f, 75.3167725f}, {107.800003f, 75.3230209f}}}
|
|
seg=186 {{{107.800003f, 75.3230209f}, {107.904305f, 75.3247223f}, {108.008606f, 75.3265228f}, {108.112907f, 75.3283234f}}}
|
|
seg=187 {{{108.112907f, 75.3283234f}, {108.741936f, 75.33918f}, {109.370972f, 75.350029f}, {110, 75.340065f}}}
|
|
seg=188 {{{110, 75.340065f}, {110.73333f, 75.3284454f}, {111.466667f, 75.2919846f}, {112.199997f, 75.2532883f}}}
|
|
seg=189 {{{112.199997f, 75.2532883f}, {112.524193f, 75.2361755f}, {112.848389f, 75.2113037f}, {113.172585f, 75.1864319f}}}
|
|
seg=190 {{{113.172585f, 75.1864319f}, {113.581726f, 75.1550446f}, {113.99086f, 75.1236496f}, {114.400002f, 75.1078644f}}}
|
|
seg=191 {{{114.400002f, 75.1078644f}, {115.133331f, 75.079567f}, {115.866669f, 75.0734863f}, {116.599998f, 75.0834885f}}}
|
|
seg=192 {{{116.599998f, 75.0834885f}, {117.013039f, 75.089119f}, {117.426071f, 75.1088409f}, {117.839111f, 75.1285629f}}}
|
|
seg=193 {{{117.839111f, 75.1285629f}, {118.159409f, 75.1438599f}, {118.479706f, 75.1591568f}, {118.800003f, 75.1678772f}}}
|
|
seg=194 {{{118.800003f, 75.1678772f}, {118.915619f, 75.1710281f}, {119.031235f, 75.1743622f}, {119.146851f, 75.1776962f}}}
|
|
seg=195 {{{119.146851f, 75.1776962f}, {119.764565f, 75.1954956f}, {120.382286f, 75.2133026f}, {121, 75.2033386f}}}
|
|
seg=196 {{{121, 75.2033386f}, {121.552635f, 75.1944351f}, {122.105278f, 75.1614532f}, {122.657913f, 75.1284714f}}}
|
|
seg=197 {{{122.657913f, 75.1284714f}, {122.838608f, 75.1176834f}, {123.019302f, 75.1068954f}, {123.199997f, 75.0969543f}}}
|
|
seg=198 {{{123.199997f, 75.0969543f}, {123.480431f, 75.0815277f}, {123.760864f, 75.060524f}, {124.041298f, 75.0395203f}}}
|
|
seg=199 {{{124.041298f, 75.0395203f}, {124.494202f, 75.0056076f}, {124.947098f, 74.9716949f}, {125.400002f, 74.9612503f}}}
|
|
seg=200 {{{125.400002f, 74.9612503f}, {126.133331f, 74.9443436f}, {126.866669f, 74.9602585f}, {127.599998f, 74.9955215f}}}
|
|
seg=201 {{{127.599998f, 74.9955215f}, {128.17691f, 75.023262f}, {128.75383f, 75.0766068f}, {129.33075f, 75.1299438f}}}
|
|
seg=202 {{{129.33075f, 75.1299438f}, {129.487167f, 75.1444092f}, {129.643585f, 75.1588745f}, {129.800003f, 75.1728287f}}}
|
|
seg=203 {{{129.800003f, 75.1728287f}, {130.08493f, 75.1982422f}, {130.369843f, 75.2303619f}, {130.65477f, 75.2624817f}}}
|
|
seg=204 {{{130.65477f, 75.2624817f}, {131.10318f, 75.3130264f}, {131.55159f, 75.3635712f}, {132, 75.3879776f}}}
|
|
seg=205 {{{132, 75.3879776f}, {132.682098f, 75.4251099f}, {133.364182f, 75.4193726f}, {134.04628f, 75.4136353f}}}
|
|
seg=206 {{{134.04628f, 75.4136353f}, {134.199997f, 75.4123535f}}}
|
|
seg=207 {{{134.199997f, 75.4123535f}, {134.740479f, 75.4080048f}, {135.28096f, 75.3897247f}, {135.821426f, 75.3714523f}}}
|
|
seg=208 {{{135.821426f, 75.3714523f}, {136.014282f, 75.3649292f}, {136.207138f, 75.3584061f}, {136.399994f, 75.3525162f}}}
|
|
seg=209 {{{136.399994f, 75.3525162f}, {136.723831f, 75.3426285f}, {137.047668f, 75.3308029f}, {137.371506f, 75.3189697f}}}
|
|
seg=210 {{{137.371506f, 75.3189697f}, {137.781006f, 75.3040085f}, {138.190506f, 75.2890472f}, {138.600006f, 75.2780228f}}}
|
|
seg=211 {{{138.600006f, 75.2780228f}, {138.775055f, 75.2733078f}, {138.950119f, 75.2678604f}, {139.125183f, 75.262413f}}}
|
|
seg=212 {{{139.125183f, 75.262413f}, {139.683456f, 75.2450409f}, {140.24173f, 75.2276688f}, {140.800003f, 75.2340317f}}}
|
|
seg=213 {{{140.800003f, 75.2340317f}, {141.173523f, 75.2382889f}, {141.547028f, 75.259819f}, {141.920547f, 75.2813568f}}}
|
|
seg=214 {{{141.920547f, 75.2813568f}, {142.280365f, 75.3021011f}, {142.640182f, 75.3228455f}, {143, 75.3281403f}}}
|
|
seg=215 {{{143, 75.3281403f}, {143.733337f, 75.3389359f}, {144.46666f, 75.3424072f}, {145.199997f, 75.2988205f}}}
|
|
seg=216 {{{145.199997f, 75.2988205f}, {145.574966f, 75.276535f}, {145.949936f, 75.2288513f}, {146.32489f, 75.1811676f}}}
|
|
seg=217 {{{146.32489f, 75.1811676f}, {146.683258f, 75.1355896f}, {147.041626f, 75.0900192f}, {147.399994f, 75.0666199f}}}
|
|
seg=218 {{{147.399994f, 75.0666199f}, {148.133331f, 75.0187454f}, {148.866669f, 74.9981079f}, {149.600006f, 75.0115509f}}}
|
|
seg=219 {{{149.600006f, 75.0115509f}, {149.982086f, 75.0185547f}, {150.364182f, 75.0495148f}, {150.746277f, 75.0804749f}}}
|
|
seg=220 {{{150.746277f, 75.0804749f}, {151.097519f, 75.1089401f}, {151.448761f, 75.1374054f}, {151.800003f, 75.1472549f}}}
|
|
seg=221 {{{151.800003f, 75.1472549f}, {152.343307f, 75.1624985f}, {152.886597f, 75.1531296f}, {153.429901f, 75.1437607f}}}
|
|
seg=222 {{{153.429901f, 75.1437607f}, {153.619934f, 75.14048f}, {153.809967f, 75.137207f}, {154, 75.1349792f}}}
|
|
seg=223 {{{154, 75.1349792f}, {154.295746f, 75.1315155f}, {154.591476f, 75.123848f}, {154.887222f, 75.1161804f}}}
|
|
seg=224 {{{154.887222f, 75.1161804f}, {155.324814f, 75.1048279f}, {155.762405f, 75.0934753f}, {156.199997f, 75.0957642f}}}
|
|
seg=225 {{{156.199997f, 75.0957642f}, {156.559143f, 75.097641f}, {156.918289f, 75.1122131f}, {157.27742f, 75.1267853f}}}
|
|
seg=226 {{{157.27742f, 75.1267853f}, {157.651611f, 75.1419754f}, {158.025803f, 75.1571655f}, {158.399994f, 75.1579895f}}}
|
|
seg=227 {{{158.399994f, 75.1579895f}, {159.133331f, 75.1596069f}, {159.866669f, 75.1515121f}, {160.600006f, 75.105484f}}}
|
|
seg=228 {{{160.600006f, 75.105484f}, {160.952393f, 75.0833588f}, {161.304794f, 75.0397339f}, {161.657196f, 74.996109f}}}
|
|
seg=229 {{{161.657196f, 74.996109f}, {162.038132f, 74.9489594f}, {162.419067f, 74.9018021f}, {162.800003f, 74.8818054f}}}
|
|
seg=230 {{{162.800003f, 74.8818054f}, {163.53334f, 74.8433075f}, {164.266663f, 74.8363724f}, {165, 74.8744736f}}}
|
|
seg=231 {{{165, 74.8744736f}, {165.356293f, 74.8929825f}, {165.712585f, 74.9419861f}, {166.068878f, 74.9909897f}}}
|
|
seg=232 {{{166.068878f, 74.9909897f}, {166.445923f, 75.0428467f}, {166.822952f, 75.0947037f}, {167.199997f, 75.1104279f}}}
|
|
seg=233 {{{167.199997f, 75.1104279f}, {167.933334f, 75.1409988f}, {168.666672f, 75.1096573f}, {169.399994f, 75.0579224f}}}
|
|
seg=234 {{{169.399994f, 75.0579224f}, {169.752808f, 75.0330276f}, {170.105621f, 74.982338f}, {170.458435f, 74.9316483f}}}
|
|
seg=235 {{{170.458435f, 74.9316483f}, {170.838959f, 74.8769836f}, {171.219482f, 74.8223114f}, {171.600006f, 74.8000031f}}}
|
|
seg=236 {{{171.600006f, 74.8000031f}, {172.333328f, 74.757019f}, {173.066666f, 74.7623062f}, {173.800003f, 74.8000031f}}}
|
|
seg=237 {{{173.800003f, 74.8000031f}, {174.500809f, 74.8360367f}, {175.201599f, 74.9249344f}, {175.902405f, 75.0138397f}}}
|
|
seg=238 {{{175.902405f, 75.0138397f}, {176, 75.0262146f}}}
|
|
seg=239 {{{176, 75.0262146f}, {176.306427f, 75.0650406f}, {176.612839f, 75.1189728f}, {176.919266f, 75.1729126f}}}
|
|
seg=240 {{{176.919266f, 75.1729126f}, {177.346176f, 75.2480545f}, {177.773087f, 75.3231964f}, {178.199997f, 75.3574677f}}}
|
|
seg=241 {{{178.199997f, 75.3574677f}, {178.933334f, 75.4163361f}, {179.666672f, 75.4057388f}, {180.399994f, 75.3794556f}}}
|
|
seg=242 {{{180.399994f, 75.3794556f}, {180.822174f, 75.3643265f}, {181.244354f, 75.322731f}, {181.666534f, 75.2811356f}}}
|
|
seg=243 {{{181.666534f, 75.2811356f}, {181.977692f, 75.2504807f}, {182.288849f, 75.2198257f}, {182.600006f, 75.1997681f}}}
|
|
seg=244 {{{182.600006f, 75.1997681f}, {183.153549f, 75.1640701f}, {183.707108f, 75.1412506f}, {184.260666f, 75.1184311f}}}
|
|
seg=245 {{{184.260666f, 75.1184311f}, {184.440445f, 75.1110229f}, {184.620224f, 75.1036148f}, {184.800003f, 75.0957642f}}}
|
|
seg=246 {{{184.800003f, 75.0957642f}, {185.53334f, 75.0637436f}, {186.266663f, 75.0331039f}, {187, 75.0076218f}}}
|
|
seg=247 {{{187, 75.0076218f}, {187.218643f, 75.0000229f}, {187.437286f, 74.9894943f}, {187.65593f, 74.9789658f}}}
|
|
seg=248 {{{187.65593f, 74.9789658f}, {188.170624f, 74.9541702f}, {188.685303f, 74.9293747f}, {189.199997f, 74.9428329f}}}
|
|
seg=249 {{{189.199997f, 74.9428329f}, {189.560562f, 74.9522629f}, {189.921127f, 74.9923019f}, {190.281693f, 75.032341f}}}
|
|
seg=250 {{{190.281693f, 75.032341f}, {190.654465f, 75.0737381f}, {191.027237f, 75.1151352f}, {191.399994f, 75.1227036f}}}
|
|
seg=251 {{{191.399994f, 75.1227036f}, {191.942627f, 75.1337204f}, {192.48526f, 75.0998383f}, {193.027893f, 75.0659485f}}}
|
|
seg=252 {{{193.027893f, 75.0659485f}, {193.218597f, 75.054039f}, {193.409302f, 75.0421295f}, {193.600006f, 75.0321732f}}}
|
|
seg=253 {{{193.600006f, 75.0321732f}, {193.897125f, 75.016655f}, {194.19426f, 74.9936142f}, {194.491394f, 74.9705658f}}}
|
|
seg=254 {{{194.491394f, 74.9705658f}, {194.927597f, 74.9367371f}, {195.3638f, 74.9029083f}, {195.800003f, 74.8928909f}}}
|
|
seg=255 {{{195.800003f, 74.8928909f}, {196.363327f, 74.8799515f}, {196.926636f, 74.8978424f}, {197.48996f, 74.9157333f}}}
|
|
seg=256 {{{197.48996f, 74.9157333f}, {197.659973f, 74.9211349f}, {197.829987f, 74.9265366f}, {198, 74.9310913f}}}
|
|
seg=257 {{{198, 74.9310913f}, {198.539948f, 74.945549f}, {199.07988f, 74.9668427f}, {199.619827f, 74.9881363f}}}
|
|
seg=258 {{{199.619827f, 74.9881363f}, {199.813217f, 74.9957657f}, {200.006607f, 75.0033951f}, {200.199997f, 75.0107117f}}}
|
|
seg=259 {{{200.199997f, 75.0107117f}, {200.468765f, 75.020874f}, {200.737534f, 75.032814f}, {201.006287f, 75.0447464f}}}
|
|
seg=260 {{{201.006287f, 75.0447464f}, {201.470856f, 75.0653763f}, {201.935425f, 75.0860062f}, {202.399994f, 75.0974884f}}}
|
|
seg=261 {{{202.399994f, 75.0974884f}, {202.888885f, 75.1095734f}, {203.377777f, 75.1120605f}, {203.866669f, 75.1145554f}}}
|
|
seg=262 {{{203.866669f, 75.1145554f}, {204.111115f, 75.115799f}, {204.35556f, 75.1170425f}, {204.600006f, 75.1194839f}}}
|
|
seg=263 {{{204.600006f, 75.1194839f}, {204.84462f, 75.121933f}, {205.089233f, 75.1239471f}, {205.333847f, 75.1259613f}}}
|
|
seg=264 {{{205.333847f, 75.1259613f}, {205.822556f, 75.129982f}, {206.311279f, 75.1340103f}, {206.800003f, 75.1414719f}}}
|
|
seg=265 {{{206.800003f, 75.1414719f}, {207.53334f, 75.1526718f}, {208.266663f, 75.1675339f}, {209, 75.1866531f}}}
|
|
seg=266 {{{209, 75.1866531f}, {209.350708f, 75.1957932f}, {209.701416f, 75.2080078f}, {210.052124f, 75.2202225f}}}
|
|
seg=267 {{{210.052124f, 75.2202225f}, {210.434753f, 75.2335434f}, {210.817368f, 75.2468643f}, {211.199997f, 75.2562027f}}}
|
|
seg=268 {{{211.199997f, 75.2562027f}, {211.933334f, 75.2741013f}, {212.666672f, 75.2871475f}, {213.399994f, 75.2940521f}}}
|
|
seg=269 {{{213.399994f, 75.2940521f}, {214.133331f, 75.3009567f}, {214.866669f, 75.3041916f}, {215.600006f, 75.2976303f}}}
|
|
seg=270 {{{215.600006f, 75.2976303f}, {216.076187f, 75.2933655f}, {216.552383f, 75.2823792f}, {217.02858f, 75.2713928f}}}
|
|
seg=271 {{{217.02858f, 75.2713928f}, {217.285721f, 75.2654572f}, {217.542862f, 75.2595291f}, {217.800003f, 75.2546539f}}}
|
|
seg=272 {{{217.800003f, 75.2546539f}, {218.041779f, 75.2500763f}, {218.283554f, 75.2413101f}, {218.52533f, 75.2325439f}}}
|
|
seg=273 {{{218.52533f, 75.2325439f}, {219.016891f, 75.2147217f}, {219.508438f, 75.1968994f}, {220, 75.2142487f}}}
|
|
seg=274 {{{220, 75.2142487f}, {220.409988f, 75.2287216f}, {220.819977f, 75.2736588f}, {221.229965f, 75.3185959f}}}
|
|
seg=275 {{{221.229965f, 75.3185959f}, {221.553314f, 75.3540344f}, {221.876648f, 75.389473f}, {222.199997f, 75.4099731f}}}
|
|
seg=276 {{{222.199997f, 75.4099731f}, {222.933334f, 75.456459f}, {223.666672f, 75.4962387f}, {224.399994f, 75.4931717f}}}
|
|
seg=277 {{{224.399994f, 75.4931717f}, {224.885803f, 75.4911423f}, {225.371613f, 75.4618988f}, {225.857422f, 75.4326553f}}}
|
|
seg=278 {{{225.857422f, 75.4326553f}, {226.10495f, 75.4177551f}, {226.352478f, 75.4028549f}, {226.600006f, 75.3915558f}}}
|
|
seg=279 {{{226.600006f, 75.3915558f}, {226.839722f, 75.3806152f}, {227.079437f, 75.3675385f}, {227.319153f, 75.354454f}}}
|
|
seg=280 {{{227.319153f, 75.354454f}, {227.812759f, 75.3275223f}, {228.306381f, 75.3005905f}, {228.800003f, 75.2923279f}}}
|
|
seg=281 {{{228.800003f, 75.2923279f}, {229.309921f, 75.2837906f}, {229.819824f, 75.2945709f}, {230.329742f, 75.3053513f}}}
|
|
seg=282 {{{230.329742f, 75.3053513f}, {230.553162f, 75.3100739f}, {230.776581f, 75.3147964f}, {231, 75.317894f}}}
|
|
seg=283 {{{231, 75.317894f}, {231.290405f, 75.3219223f}, {231.580811f, 75.3275833f}, {231.871216f, 75.333252f}}}
|
|
seg=284 {{{231.871216f, 75.333252f}, {232.314148f, 75.3418884f}, {232.757065f, 75.3505249f}, {233.199997f, 75.3533554f}}}
|
|
seg=285 {{{233.199997f, 75.3533554f}, {233.933334f, 75.3580399f}, {234.666672f, 75.3606873f}, {235.399994f, 75.3460236f}}}
|
|
seg=286 {{{235.399994f, 75.3460236f}, {235.845032f, 75.3371277f}, {236.29007f, 75.3182449f}, {236.735107f, 75.2993622f}}}
|
|
seg=287 {{{236.735107f, 75.2993622f}, {237.023407f, 75.2871323f}, {237.311707f, 75.2749023f}, {237.600006f, 75.2653885f}}}
|
|
seg=288 {{{237.600006f, 75.2653885f}, {238.333328f, 75.2411804f}, {239.066666f, 75.2196732f}, {239.800003f, 75.2007828f}}}
|
|
seg=289 {{{239.800003f, 75.2007828f}, {240.082169f, 75.193512f}, {240.364334f, 75.1891708f}, {240.6465f, 75.1848297f}}}
|
|
seg=290 {{{240.6465f, 75.1848297f}, {241.097672f, 75.177887f}, {241.548828f, 75.1709366f}, {242, 75.1520233f}}}
|
|
seg=291 {{{242, 75.1520233f}, {242.416458f, 75.1345673f}, {242.832916f, 75.1057968f}, {243.249374f, 75.0770187f}}}
|
|
seg=292 {{{243.249374f, 75.0770187f}, {243.566254f, 75.0551224f}, {243.883118f, 75.033226f}, {244.199997f, 75.0163193f}}}
|
|
seg=293 {{{244.199997f, 75.0163193f}, {244.933334f, 74.9771957f}, {245.666672f, 74.9453659f}, {246.399994f, 74.9172668f}}}
|
|
seg=294 {{{246.399994f, 74.9172668f}, {247.133331f, 74.8891678f}, {247.866669f, 74.8672562f}, {248.600006f, 74.8477097f}}}
|
|
seg=295 {{{248.600006f, 74.8477097f}, {248.714218f, 74.8446655f}}}
|
|
seg=296 {{{248.714218f, 74.8446655f}, {249.40947f, 74.8261032f}, {250.104736f, 74.8075485f}, {250.800003f, 74.8000031f}}}
|
|
seg=297 {{{250.800003f, 74.8000031f}, {251.288895f, 74.7947006f}, {251.777771f, 74.7964706f}, {252.266663f, 74.798233f}}}
|
|
seg=298 {{{252.266663f, 74.798233f}, {252.511108f, 74.799118f}, {252.755554f, 74.8000031f}, {253, 74.8000031f}}}
|
|
seg=299 {{{253, 74.8000031f}, {68.1999969f, 74.8000031f}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{68.1999969,74.8000031}, {68.4444427,74.8000031}, {68.6888885,74.8039017}, {68.9333344,74.8078003}}} {{68.9333344,74.8078003}} wnTs[0]=0 {{{68.9333344,74.8078003}, {69.422226,74.8155975}, {69.9111099,74.8233948}, {70.4000015,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{68.1999969,74.8000031}, {68.4444427,74.8000031}, {68.6888885,74.8039017}, {68.9333344,74.8078003}}} {{68.1999969,74.8000031}} wnTs[0]=1 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{68.9333344,74.8078003}, {69.422226,74.8155975}, {69.9111099,74.8233948}, {70.4000015,74.8000031}}} {{70.4000015,74.8000031}} wnTs[0]=0 {{{70.4000015,74.8000031}, {70.7796326,74.7818375}, {71.1592636,74.7372665}, {71.5388947,74.6926956}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{68.9333344,74.8078003}, {69.422226,74.8155975}, {69.9111099,74.8233948}, {70.4000015,74.8000031}}} {{70.4000015,74.8000031}} wnTs[0]=0.988095 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.988095214 segID=150 spanID=599
|
|
debugShowCubicIntersection wtTs[0]=1 {{{70.4000015,74.8000031}, {70.7796326,74.7818375}, {71.1592636,74.7372665}, {71.5388947,74.6926956}}} {{71.5388947,74.6926956}} wnTs[0]=0 {{{71.5388947,74.6926956}, {71.8925934,74.6511688}, {72.2462997,74.609642}, {72.5999985,74.5894699}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{70.4000015,74.8000031}, {70.7796326,74.7818375}, {71.1592636,74.7372665}, {71.5388947,74.6926956}}} {{70.4000015,74.8000031}} wnTs[0]=0.988095 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{71.5388947,74.6926956}, {71.8925934,74.6511688}, {72.2462997,74.609642}, {72.5999985,74.5894699}}} {{72.5999985,74.5894699}} wnTs[0]=0 {{{72.5999985,74.5894699}, {73.1301117,74.5592346}, {73.6602249,74.5564957}, {74.1903381,74.5537567}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{72.5999985,74.5894699}, {73.1301117,74.5592346}, {73.6602249,74.5564957}, {74.1903381,74.5537567}}} {{74.1903381,74.5537567}} wnTs[0]=0 {{{74.1903381,74.5537567}, {74.3935623,74.5527115}, {74.5967789,74.5516663}, {74.8000031,74.5490646}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{74.1903381,74.5537567}, {74.3935623,74.5527115}, {74.5967789,74.5516663}, {74.8000031,74.5490646}}} {{74.8000031,74.5490646}} wnTs[0]=0 {{{74.8000031,74.5490646}, {75.0211792,74.5462341}, {75.242363,74.5398636}, {75.4635391,74.5335007}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{74.8000031,74.5490646}, {75.0211792,74.5462341}, {75.242363,74.5398636}, {75.4635391,74.5335007}}} {{75.4635391,74.5335007}} wnTs[0]=0 {{{75.4635391,74.5335007}, {75.9756927,74.5187607}, {76.4878464,74.5040207}, {77,74.5332108}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{75.4635391,74.5335007}, {75.9756927,74.5187607}, {76.4878464,74.5040207}, {77,74.5332108}}} {{77,74.5332108}} wnTs[0]=0 {{{77,74.5332108}, {77.3702316,74.5543137}, {77.7404709,74.610733}, {78.1107025,74.66716}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{77,74.5332108}, {77.3702316,74.5543137}, {77.7404709,74.610733}, {78.1107025,74.66716}}} {{78.1107025,74.66716}} wnTs[0]=0 {{{78.1107025,74.66716}, {78.4738007,74.722496}, {78.8368988,74.777832}, {79.1999969,74.7998505}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{78.1107025,74.66716}, {78.4738007,74.722496}, {78.8368988,74.777832}, {79.1999969,74.7998505}}} {{79.1999969,74.7998505}} wnTs[0]=0 {{{79.1999969,74.7998505}, {79.689003,74.8295059}, {80.1780014,74.819664}, {80.6670074,74.8098221}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{79.1999969,74.7998505}, {79.689003,74.8295059}, {80.1780014,74.819664}, {80.6670074,74.8098221}}} {{80.6670074,74.8098221}} wnTs[0]=0 {{{80.6670074,74.8098221}, {80.9113388,74.8049088}, {81.1556702,74.7999954}, {81.4000015,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0.0017190524 {{{79.1999969,74.7998505}, {79.689003,74.8295059}, {80.1780014,74.819664}, {80.6670074,74.8098221}}} {{79.2025223,74.8000031}} wnTs[0]=0.940463 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.0017190524 segID=11 spanID=600
|
|
SkOpSegment::addT insert t=0.940462545 segID=150 spanID=601
|
|
debugShowCubicIntersection wtTs[0]=1 {{{80.6670074,74.8098221}, {80.9113388,74.8049088}, {81.1556702,74.7999954}, {81.4000015,74.8000031}}} {{81.4000015,74.8000031}} wnTs[0]=0 {{{81.4000015,74.8000031}, {81.6438522,74.8000107}, {81.8877106,74.8010635}, {82.1315613,74.8021164}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0.99844881 {{{80.6670074,74.8098221}, {80.9113388,74.8049088}, {81.1556702,74.7999954}, {81.4000015,74.8000031}}} {{81.3988647,74.8000031}} wtTs[1]=1 {{81.4000015,74.8000031}} wnTs[0]=0.928578 {{{253,74.8000031}, {68.1999969,74.8000031}}} wnTs[1]=0.928571405
|
|
SkOpSegment::addT insert t=0.99844881 segID=12 spanID=602
|
|
SkOpSegment::addT insert t=0.928577558 segID=150 spanID=603
|
|
SkOpSegment::addT insert t=0.928571405 segID=150 spanID=604
|
|
debugShowCubicIntersection wtTs[0]=1 {{{81.4000015,74.8000031}, {81.6438522,74.8000107}, {81.8877106,74.8010635}, {82.1315613,74.8021164}}} {{82.1315613,74.8021164}} wnTs[0]=0 {{{82.1315613,74.8021164}, {82.6210403,74.8042297}, {83.1105194,74.8063507}, {83.5999985,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{81.4000015,74.8000031}, {81.6438522,74.8000107}, {81.8877106,74.8010635}, {82.1315613,74.8021164}}} {{81.4000015,74.8000031}} wnTs[0]=0.928571 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{82.1315613,74.8021164}, {82.6210403,74.8042297}, {83.1105194,74.8063507}, {83.5999985,74.8000031}}} {{83.5999985,74.8000031}} wnTs[0]=0 {{{83.5999985,74.8000031}, {83.9259109,74.7957764}, {84.2518234,74.7840347}, {84.5777359,74.7722931}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{82.1315613,74.8021164}, {82.6210403,74.8042297}, {83.1105194,74.8063507}, {83.5999985,74.8000031}}} {{83.5999985,74.8000031}} wnTs[0]=0.916667 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.91666666 segID=150 spanID=605
|
|
debugShowCubicIntersection wtTs[0]=1 {{{83.5999985,74.8000031}, {83.9259109,74.7957764}, {84.2518234,74.7840347}, {84.5777359,74.7722931}}} {{84.5777359,74.7722931}} wnTs[0]=0 {{{84.5777359,74.7722931}, {84.9851608,74.7576141}, {85.3925781,74.7429352}, {85.8000031,74.7429352}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{83.5999985,74.8000031}, {83.9259109,74.7957764}, {84.2518234,74.7840347}, {84.5777359,74.7722931}}} {{83.5999985,74.8000031}} wnTs[0]=0.916667 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{84.5777359,74.7722931}, {84.9851608,74.7576141}, {85.3925781,74.7429352}, {85.8000031,74.7429352}}} {{85.8000031,74.7429352}} wnTs[0]=0 {{{85.8000031,74.7429352}, {86.2074203,74.7429352}, {86.6148453,74.7576141}, {87.0222626,74.7722931}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{85.8000031,74.7429352}, {86.2074203,74.7429352}, {86.6148453,74.7576141}, {87.0222626,74.7722931}}} {{87.0222626,74.7722931}} wnTs[0]=0 {{{87.0222626,74.7722931}, {87.348175,74.7840347}, {87.6740875,74.7957764}, {88,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{87.0222626,74.7722931}, {87.348175,74.7840347}, {87.6740875,74.7957764}, {88,74.8000031}}} {{88,74.8000031}} wnTs[0]=0 {{{88,74.8000031}, {88.1576462,74.8020477}, {88.3152924,74.8048859}, {88.4729385,74.8077316}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{87.0222626,74.7722931}, {87.348175,74.7840347}, {87.6740875,74.7957764}, {88,74.8000031}}} {{88,74.8000031}} wnTs[0]=0.892857 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.892857128 segID=150 spanID=606
|
|
debugShowCubicIntersection wtTs[0]=1 {{{88,74.8000031}, {88.1576462,74.8020477}, {88.3152924,74.8048859}, {88.4729385,74.8077316}}} {{88.4729385,74.8077316}} wnTs[0]=0 {{{88.4729385,74.8077316}, {89.0486221,74.8181076}, {89.6243134,74.8284836}, {90.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{88,74.8000031}, {88.1576462,74.8020477}, {88.3152924,74.8048859}, {88.4729385,74.8077316}}} {{88,74.8000031}} wnTs[0]=0.892857 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{88.4729385,74.8077316}, {89.0486221,74.8181076}, {89.6243134,74.8284836}, {90.1999969,74.8000031}}} {{90.1999969,74.8000031}} wnTs[0]=0 {{{90.1999969,74.8000031}, {90.5620499,74.7820892}, {90.9241028,74.7369537}, {91.2861557,74.6918182}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{88.4729385,74.8077316}, {89.0486221,74.8181076}, {89.6243134,74.8284836}, {90.1999969,74.8000031}}} {{90.1999969,74.8000031}} wnTs[0]=0.880952 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.880952383 segID=150 spanID=607
|
|
debugShowCubicIntersection wtTs[0]=1 {{{90.1999969,74.8000031}, {90.5620499,74.7820892}, {90.9241028,74.7369537}, {91.2861557,74.6918182}}} {{91.2861557,74.6918182}} wnTs[0]=0 {{{91.2861557,74.6918182}, {91.6574402,74.6455307}, {92.028717,74.5992432}, {92.4000015,74.5823135}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{90.1999969,74.8000031}, {90.5620499,74.7820892}, {90.9241028,74.7369537}, {91.2861557,74.6918182}}} {{90.1999969,74.8000031}} wnTs[0]=0.880952 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{91.2861557,74.6918182}, {91.6574402,74.6455307}, {92.028717,74.5992432}, {92.4000015,74.5823135}}} {{92.4000015,74.5823135}} wnTs[0]=0 {{{92.4000015,74.5823135}, {92.9111481,74.5590057}, {93.4223022,74.5721283}, {93.9334488,74.5852509}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{92.4000015,74.5823135}, {92.9111481,74.5590057}, {93.4223022,74.5721283}, {93.9334488,74.5852509}}} {{93.9334488,74.5852509}} wnTs[0]=0 {{{93.9334488,74.5852509}, {94.155632,74.59095}, {94.3778152,74.5966568}, {94.5999985,74.5993652}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{93.9334488,74.5852509}, {94.155632,74.59095}, {94.3778152,74.5966568}, {94.5999985,74.5993652}}} {{94.5999985,74.5993652}} wnTs[0]=0 {{{94.5999985,74.5993652}, {94.8669891,74.602623}, {95.1339798,74.6110153}, {95.4009705,74.6194}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{94.5999985,74.5993652}, {94.8669891,74.602623}, {95.1339798,74.6110153}, {95.4009705,74.6194}}} {{95.4009705,74.6194}} wnTs[0]=0 {{{95.4009705,74.6194}, {95.8673172,74.6340485}, {96.3336563,74.6486969}, {96.8000031,74.6360168}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{95.4009705,74.6194}, {95.8673172,74.6340485}, {96.3336563,74.6486969}, {96.8000031,74.6360168}}} {{96.8000031,74.6360168}} wnTs[0]=0 {{{96.8000031,74.6360168}, {97.2396164,74.624054}, {97.6792297,74.5860596}, {98.1188431,74.5480652}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{96.8000031,74.6360168}, {97.2396164,74.624054}, {97.6792297,74.5860596}, {98.1188431,74.5480652}}} {{98.1188431,74.5480652}} wnTs[0]=0 {{{98.1188431,74.5480652}, {98.4125595,74.5226822}, {98.7062836,74.4972992}, {99,74.4796829}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{98.1188431,74.5480652}, {98.4125595,74.5226822}, {98.7062836,74.4972992}, {99,74.4796829}}} {{99,74.4796829}} wnTs[0]=0 {{{99,74.4796829}, {99.7333298,74.4356995}, {100.466667,74.3924866}, {101.199997,74.3721085}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{99,74.4796829}, {99.7333298,74.4356995}, {100.466667,74.3924866}, {101.199997,74.3721085}}} {{101.199997,74.3721085}} wnTs[0]=0 {{{101.199997,74.3721085}, {101.6632,74.3592453}, {102.126396,74.3594589}, {102.5896,74.3596725}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{101.199997,74.3721085}, {101.6632,74.3592453}, {102.126396,74.3594589}, {102.5896,74.3596725}}} {{102.5896,74.3596725}} wnTs[0]=0 {{{102.5896,74.3596725}, {102.859734,74.3597946}, {103.129868,74.3599167}, {103.400002,74.3574448}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{102.5896,74.3596725}, {102.859734,74.3597946}, {103.129868,74.3599167}, {103.400002,74.3574448}}} {{103.400002,74.3574448}} wnTs[0]=0 {{{103.400002,74.3574448}, {103.499123,74.3565369}, {103.598244,74.3556519}, {103.697365,74.3547668}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{103.400002,74.3574448}, {103.499123,74.3565369}, {103.598244,74.3556519}, {103.697365,74.3547668}}} {{103.697365,74.3547668}} wnTs[0]=0 {{{103.697365,74.3547668}, {104.331573,74.3491211}, {104.96579,74.3434753}, {105.599998,74.3318787}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{103.697365,74.3547668}, {104.331573,74.3491211}, {104.96579,74.3434753}, {105.599998,74.3318787}}} {{105.599998,74.3318787}} wnTs[0]=0 {{{105.599998,74.3318787}, {105.951164,74.3254547}, {106.30233,74.3153458}, {106.653496,74.3052368}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{105.599998,74.3318787}, {105.951164,74.3254547}, {106.30233,74.3153458}, {106.653496,74.3052368}}} {{106.653496,74.3052368}} wnTs[0]=0 {{{106.653496,74.3052368}, {107.035667,74.2942352}, {107.417831,74.2832336}, {107.800003,74.2769852}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{106.653496,74.3052368}, {107.035667,74.2942352}, {107.417831,74.2832336}, {107.800003,74.2769852}}} {{107.800003,74.2769852}} wnTs[0]=0 {{{107.800003,74.2769852}, {107.904305,74.2752838}, {108.008606,74.2734833}, {108.112907,74.2716827}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{107.800003,74.2769852}, {107.904305,74.2752838}, {108.008606,74.2734833}, {108.112907,74.2716827}}} {{108.112907,74.2716827}} wnTs[0]=0 {{{108.112907,74.2716827}, {108.741936,74.2608261}, {109.370972,74.2499771}, {110,74.2599411}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{108.112907,74.2716827}, {108.741936,74.2608261}, {109.370972,74.2499771}, {110,74.2599411}}} {{110,74.2599411}} wnTs[0]=0 {{{110,74.2599411}, {110.73333,74.2715607}, {111.466667,74.3080215}, {112.199997,74.3467178}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{110,74.2599411}, {110.73333,74.2715607}, {111.466667,74.3080215}, {112.199997,74.3467178}}} {{112.199997,74.3467178}} wnTs[0]=0 {{{112.199997,74.3467178}, {112.524193,74.3638306}, {112.848389,74.3887024}, {113.172585,74.4135742}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{112.199997,74.3467178}, {112.524193,74.3638306}, {112.848389,74.3887024}, {113.172585,74.4135742}}} {{113.172585,74.4135742}} wnTs[0]=0 {{{113.172585,74.4135742}, {113.581726,74.4449615}, {113.99086,74.4763565}, {114.400002,74.4921417}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{113.172585,74.4135742}, {113.581726,74.4449615}, {113.99086,74.4763565}, {114.400002,74.4921417}}} {{114.400002,74.4921417}} wnTs[0]=0 {{{114.400002,74.4921417}, {115.133331,74.5204391}, {115.866669,74.5265198}, {116.599998,74.5165176}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{114.400002,74.4921417}, {115.133331,74.5204391}, {115.866669,74.5265198}, {116.599998,74.5165176}}} {{116.599998,74.5165176}} wnTs[0]=0 {{{116.599998,74.5165176}, {117.013039,74.5108871}, {117.426071,74.4911652}, {117.839111,74.4714432}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{116.599998,74.5165176}, {117.013039,74.5108871}, {117.426071,74.4911652}, {117.839111,74.4714432}}} {{117.839111,74.4714432}} wnTs[0]=0 {{{117.839111,74.4714432}, {118.159409,74.4561462}, {118.479706,74.4408493}, {118.800003,74.4321289}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{117.839111,74.4714432}, {118.159409,74.4561462}, {118.479706,74.4408493}, {118.800003,74.4321289}}} {{118.800003,74.4321289}} wnTs[0]=0 {{{118.800003,74.4321289}, {118.915619,74.428978}, {119.031235,74.4256439}, {119.146851,74.4223099}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{118.800003,74.4321289}, {118.915619,74.428978}, {119.031235,74.4256439}, {119.146851,74.4223099}}} {{119.146851,74.4223099}} wnTs[0]=0 {{{119.146851,74.4223099}, {119.764565,74.4045105}, {120.382286,74.3867035}, {121,74.3966675}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{119.146851,74.4223099}, {119.764565,74.4045105}, {120.382286,74.3867035}, {121,74.3966675}}} {{121,74.3966675}} wnTs[0]=0 {{{121,74.3966675}, {121.552635,74.405571}, {122.105278,74.4385529}, {122.657913,74.4715347}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{121,74.3966675}, {121.552635,74.405571}, {122.105278,74.4385529}, {122.657913,74.4715347}}} {{122.657913,74.4715347}} wnTs[0]=0 {{{122.657913,74.4715347}, {122.838608,74.4823227}, {123.019302,74.4931107}, {123.199997,74.5030518}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{122.657913,74.4715347}, {122.838608,74.4823227}, {123.019302,74.4931107}, {123.199997,74.5030518}}} {{123.199997,74.5030518}} wnTs[0]=0 {{{123.199997,74.5030518}, {123.480431,74.5184784}, {123.760864,74.5394821}, {124.041298,74.5604858}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{123.199997,74.5030518}, {123.480431,74.5184784}, {123.760864,74.5394821}, {124.041298,74.5604858}}} {{124.041298,74.5604858}} wnTs[0]=0 {{{124.041298,74.5604858}, {124.494202,74.5943985}, {124.947098,74.6283112}, {125.400002,74.6387558}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{124.041298,74.5604858}, {124.494202,74.5943985}, {124.947098,74.6283112}, {125.400002,74.6387558}}} {{125.400002,74.6387558}} wnTs[0]=0 {{{125.400002,74.6387558}, {126.133331,74.6556625}, {126.866669,74.6397476}, {127.599998,74.6044846}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{125.400002,74.6387558}, {126.133331,74.6556625}, {126.866669,74.6397476}, {127.599998,74.6044846}}} {{127.599998,74.6044846}} wnTs[0]=0 {{{127.599998,74.6044846}, {128.17691,74.5767441}, {128.75383,74.5233994}, {129.33075,74.4700623}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{127.599998,74.6044846}, {128.17691,74.5767441}, {128.75383,74.5233994}, {129.33075,74.4700623}}} {{129.33075,74.4700623}} wnTs[0]=0 {{{129.33075,74.4700623}, {129.487167,74.4555969}, {129.643585,74.4411316}, {129.800003,74.4271774}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{129.33075,74.4700623}, {129.487167,74.4555969}, {129.643585,74.4411316}, {129.800003,74.4271774}}} {{129.800003,74.4271774}} wnTs[0]=0 {{{129.800003,74.4271774}, {130.08493,74.4017639}, {130.369843,74.3696442}, {130.65477,74.3375244}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{129.800003,74.4271774}, {130.08493,74.4017639}, {130.369843,74.3696442}, {130.65477,74.3375244}}} {{130.65477,74.3375244}} wnTs[0]=0 {{{130.65477,74.3375244}, {131.10318,74.2869797}, {131.55159,74.2364349}, {132,74.2120285}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{130.65477,74.3375244}, {131.10318,74.2869797}, {131.55159,74.2364349}, {132,74.2120285}}} {{132,74.2120285}} wnTs[0]=0 {{{132,74.2120285}, {132.682098,74.1748962}, {133.364182,74.1806335}, {134.04628,74.1863708}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{132,74.2120285}, {132.682098,74.1748962}, {133.364182,74.1806335}, {134.04628,74.1863708}}} {{134.04628,74.1863708}} wnTs[0]=0 {{{134.04628,74.1863708}, {134.199997,74.1876526}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{134.199997,74.1876526}, {134.740479,74.1920013}, {135.28096,74.2102814}, {135.821426,74.2285538}}} {{134.199997,74.1876526}} wnTs[0]=1 {{{134.04628,74.1863708}, {134.199997,74.1876526}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{134.199997,74.1876526}, {134.740479,74.1920013}, {135.28096,74.2102814}, {135.821426,74.2285538}}} {{135.821426,74.2285538}} wnTs[0]=0 {{{135.821426,74.2285538}, {136.014282,74.2350769}, {136.207138,74.2416}, {136.399994,74.2474899}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{135.821426,74.2285538}, {136.014282,74.2350769}, {136.207138,74.2416}, {136.399994,74.2474899}}} {{136.399994,74.2474899}} wnTs[0]=0 {{{136.399994,74.2474899}, {136.723831,74.2573776}, {137.047668,74.2692032}, {137.371506,74.2810364}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{136.399994,74.2474899}, {136.723831,74.2573776}, {137.047668,74.2692032}, {137.371506,74.2810364}}} {{137.371506,74.2810364}} wnTs[0]=0 {{{137.371506,74.2810364}, {137.781006,74.2959976}, {138.190506,74.3109589}, {138.600006,74.3219833}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{137.371506,74.2810364}, {137.781006,74.2959976}, {138.190506,74.3109589}, {138.600006,74.3219833}}} {{138.600006,74.3219833}} wnTs[0]=0 {{{138.600006,74.3219833}, {138.775055,74.3266983}, {138.950119,74.3321457}, {139.125183,74.3375931}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{138.600006,74.3219833}, {138.775055,74.3266983}, {138.950119,74.3321457}, {139.125183,74.3375931}}} {{139.125183,74.3375931}} wnTs[0]=0 {{{139.125183,74.3375931}, {139.683456,74.3549652}, {140.24173,74.3723373}, {140.800003,74.3659744}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{139.125183,74.3375931}, {139.683456,74.3549652}, {140.24173,74.3723373}, {140.800003,74.3659744}}} {{140.800003,74.3659744}} wnTs[0]=0 {{{140.800003,74.3659744}, {141.173523,74.3617172}, {141.547028,74.3401871}, {141.920547,74.3186493}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{140.800003,74.3659744}, {141.173523,74.3617172}, {141.547028,74.3401871}, {141.920547,74.3186493}}} {{141.920547,74.3186493}} wnTs[0]=0 {{{141.920547,74.3186493}, {142.280365,74.297905}, {142.640182,74.2771606}, {143,74.2718658}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{141.920547,74.3186493}, {142.280365,74.297905}, {142.640182,74.2771606}, {143,74.2718658}}} {{143,74.2718658}} wnTs[0]=0 {{{143,74.2718658}, {143.733337,74.2610703}, {144.46666,74.2575989}, {145.199997,74.3011856}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{143,74.2718658}, {143.733337,74.2610703}, {144.46666,74.2575989}, {145.199997,74.3011856}}} {{145.199997,74.3011856}} wnTs[0]=0 {{{145.199997,74.3011856}, {145.574966,74.3234711}, {145.949936,74.3711548}, {146.32489,74.4188385}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{145.199997,74.3011856}, {145.574966,74.3234711}, {145.949936,74.3711548}, {146.32489,74.4188385}}} {{146.32489,74.4188385}} wnTs[0]=0 {{{146.32489,74.4188385}, {146.683258,74.4644165}, {147.041626,74.5099869}, {147.399994,74.5333862}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{146.32489,74.4188385}, {146.683258,74.4644165}, {147.041626,74.5099869}, {147.399994,74.5333862}}} {{147.399994,74.5333862}} wnTs[0]=0 {{{147.399994,74.5333862}, {148.133331,74.5812607}, {148.866669,74.6018982}, {149.600006,74.5884552}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{147.399994,74.5333862}, {148.133331,74.5812607}, {148.866669,74.6018982}, {149.600006,74.5884552}}} {{149.600006,74.5884552}} wnTs[0]=0 {{{149.600006,74.5884552}, {149.982086,74.5814514}, {150.364182,74.5504913}, {150.746277,74.5195313}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{149.600006,74.5884552}, {149.982086,74.5814514}, {150.364182,74.5504913}, {150.746277,74.5195313}}} {{150.746277,74.5195313}} wnTs[0]=0 {{{150.746277,74.5195313}, {151.097519,74.491066}, {151.448761,74.4626007}, {151.800003,74.4527512}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{150.746277,74.5195313}, {151.097519,74.491066}, {151.448761,74.4626007}, {151.800003,74.4527512}}} {{151.800003,74.4527512}} wnTs[0]=0 {{{151.800003,74.4527512}, {152.343307,74.4375076}, {152.886597,74.4468765}, {153.429901,74.4562454}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{151.800003,74.4527512}, {152.343307,74.4375076}, {152.886597,74.4468765}, {153.429901,74.4562454}}} {{153.429901,74.4562454}} wnTs[0]=0 {{{153.429901,74.4562454}, {153.619934,74.4595261}, {153.809967,74.4627991}, {154,74.4650269}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{153.429901,74.4562454}, {153.619934,74.4595261}, {153.809967,74.4627991}, {154,74.4650269}}} {{154,74.4650269}} wnTs[0]=0 {{{154,74.4650269}, {154.295746,74.4684906}, {154.591476,74.4761581}, {154.887222,74.4838257}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{154,74.4650269}, {154.295746,74.4684906}, {154.591476,74.4761581}, {154.887222,74.4838257}}} {{154.887222,74.4838257}} wnTs[0]=0 {{{154.887222,74.4838257}, {155.324814,74.4951782}, {155.762405,74.5065308}, {156.199997,74.5042419}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{154.887222,74.4838257}, {155.324814,74.4951782}, {155.762405,74.5065308}, {156.199997,74.5042419}}} {{156.199997,74.5042419}} wnTs[0]=0 {{{156.199997,74.5042419}, {156.559143,74.5023651}, {156.918289,74.487793}, {157.27742,74.4732208}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{156.199997,74.5042419}, {156.559143,74.5023651}, {156.918289,74.487793}, {157.27742,74.4732208}}} {{157.27742,74.4732208}} wnTs[0]=0 {{{157.27742,74.4732208}, {157.651611,74.4580307}, {158.025803,74.4428406}, {158.399994,74.4420166}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{157.27742,74.4732208}, {157.651611,74.4580307}, {158.025803,74.4428406}, {158.399994,74.4420166}}} {{158.399994,74.4420166}} wnTs[0]=0 {{{158.399994,74.4420166}, {159.133331,74.4403992}, {159.866669,74.448494}, {160.600006,74.4945221}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{158.399994,74.4420166}, {159.133331,74.4403992}, {159.866669,74.448494}, {160.600006,74.4945221}}} {{160.600006,74.4945221}} wnTs[0]=0 {{{160.600006,74.4945221}, {160.952393,74.5166473}, {161.304794,74.5602722}, {161.657196,74.6038971}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{160.600006,74.4945221}, {160.952393,74.5166473}, {161.304794,74.5602722}, {161.657196,74.6038971}}} {{161.657196,74.6038971}} wnTs[0]=0 {{{161.657196,74.6038971}, {162.038132,74.6510468}, {162.419067,74.698204}, {162.800003,74.7182007}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{161.657196,74.6038971}, {162.038132,74.6510468}, {162.419067,74.698204}, {162.800003,74.7182007}}} {{162.800003,74.7182007}} wnTs[0]=0 {{{162.800003,74.7182007}, {163.53334,74.7566986}, {164.266663,74.7636337}, {165,74.7255325}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{162.800003,74.7182007}, {163.53334,74.7566986}, {164.266663,74.7636337}, {165,74.7255325}}} {{165,74.7255325}} wnTs[0]=0 {{{165,74.7255325}, {165.356293,74.7070236}, {165.712585,74.65802}, {166.068878,74.6090164}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{165,74.7255325}, {165.356293,74.7070236}, {165.712585,74.65802}, {166.068878,74.6090164}}} {{166.068878,74.6090164}} wnTs[0]=0 {{{166.068878,74.6090164}, {166.445923,74.5571594}, {166.822952,74.5053024}, {167.199997,74.4895782}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{166.068878,74.6090164}, {166.445923,74.5571594}, {166.822952,74.5053024}, {167.199997,74.4895782}}} {{167.199997,74.4895782}} wnTs[0]=0 {{{167.199997,74.4895782}, {167.933334,74.4590073}, {168.666672,74.4903488}, {169.399994,74.5420837}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{167.199997,74.4895782}, {167.933334,74.4590073}, {168.666672,74.4903488}, {169.399994,74.5420837}}} {{169.399994,74.5420837}} wnTs[0]=0 {{{169.399994,74.5420837}, {169.752808,74.5669785}, {170.105621,74.6176682}, {170.458435,74.6683578}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{169.399994,74.5420837}, {169.752808,74.5669785}, {170.105621,74.6176682}, {170.458435,74.6683578}}} {{170.458435,74.6683578}} wnTs[0]=0 {{{170.458435,74.6683578}, {170.838959,74.7230225}, {171.219482,74.7776947}, {171.600006,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{170.458435,74.6683578}, {170.838959,74.7230225}, {171.219482,74.7776947}, {171.600006,74.8000031}}} {{171.600006,74.8000031}} wnTs[0]=0 {{{171.600006,74.8000031}, {172.333328,74.8429871}, {173.066666,74.8376999}, {173.800003,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{170.458435,74.6683578}, {170.838959,74.7230225}, {171.219482,74.7776947}, {171.600006,74.8000031}}} {{171.600006,74.8000031}} wnTs[0]=0.440476 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.44047615 segID=150 spanID=608
|
|
debugShowCubicIntersection wtTs[0]=1 {{{171.600006,74.8000031}, {172.333328,74.8429871}, {173.066666,74.8376999}, {173.800003,74.8000031}}} {{173.800003,74.8000031}} wnTs[0]=0 {{{173.800003,74.8000031}, {174.500809,74.7639694}, {175.201599,74.6750717}, {175.902405,74.5861664}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{171.600006,74.8000031}, {172.333328,74.8429871}, {173.066666,74.8376999}, {173.800003,74.8000031}}} {{171.600006,74.8000031}} wtTs[1]=1 {{173.800003,74.8000031}} wnTs[0]=0.440476 {{{253,74.8000031}, {68.1999969,74.8000031}}} wnTs[1]=0.428571405
|
|
SkOpSegment::addT insert t=0.428571405 segID=150 spanID=609
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{173.800003,74.8000031}, {174.500809,74.7639694}, {175.201599,74.6750717}, {175.902405,74.5861664}}} {{175.902405,74.5861664}} wnTs[0]=0 {{{175.902405,74.5861664}, {176,74.5737915}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{173.800003,74.8000031}, {174.500809,74.7639694}, {175.201599,74.6750717}, {175.902405,74.5861664}}} {{173.800003,74.8000031}} wnTs[0]=0.428571 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{176,74.5737915}, {176.306427,74.5349655}, {176.612839,74.4810333}, {176.919266,74.4270935}}} {{176,74.5737915}} wnTs[0]=1 {{{175.902405,74.5861664}, {176,74.5737915}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{176,74.5737915}, {176.306427,74.5349655}, {176.612839,74.4810333}, {176.919266,74.4270935}}} {{176.919266,74.4270935}} wnTs[0]=0 {{{176.919266,74.4270935}, {177.346176,74.3519516}, {177.773087,74.2768097}, {178.199997,74.2425385}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{176.919266,74.4270935}, {177.346176,74.3519516}, {177.773087,74.2768097}, {178.199997,74.2425385}}} {{178.199997,74.2425385}} wnTs[0]=0 {{{178.199997,74.2425385}, {178.933334,74.18367}, {179.666672,74.1942673}, {180.399994,74.2205505}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{178.199997,74.2425385}, {178.933334,74.18367}, {179.666672,74.1942673}, {180.399994,74.2205505}}} {{180.399994,74.2205505}} wnTs[0]=0 {{{180.399994,74.2205505}, {180.822174,74.2356796}, {181.244354,74.2772751}, {181.666534,74.3188705}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{180.399994,74.2205505}, {180.822174,74.2356796}, {181.244354,74.2772751}, {181.666534,74.3188705}}} {{181.666534,74.3188705}} wnTs[0]=0 {{{181.666534,74.3188705}, {181.977692,74.3495255}, {182.288849,74.3801804}, {182.600006,74.400238}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{181.666534,74.3188705}, {181.977692,74.3495255}, {182.288849,74.3801804}, {182.600006,74.400238}}} {{182.600006,74.400238}} wnTs[0]=0 {{{182.600006,74.400238}, {183.153549,74.435936}, {183.707108,74.4587555}, {184.260666,74.481575}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{182.600006,74.400238}, {183.153549,74.435936}, {183.707108,74.4587555}, {184.260666,74.481575}}} {{184.260666,74.481575}} wnTs[0]=0 {{{184.260666,74.481575}, {184.440445,74.4889832}, {184.620224,74.4963913}, {184.800003,74.5042419}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{184.260666,74.481575}, {184.440445,74.4889832}, {184.620224,74.4963913}, {184.800003,74.5042419}}} {{184.800003,74.5042419}} wnTs[0]=0 {{{184.800003,74.5042419}, {185.53334,74.5362625}, {186.266663,74.5669022}, {187,74.5923843}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{184.800003,74.5042419}, {185.53334,74.5362625}, {186.266663,74.5669022}, {187,74.5923843}}} {{187,74.5923843}} wnTs[0]=0 {{{187,74.5923843}, {187.218643,74.5999832}, {187.437286,74.6105118}, {187.65593,74.6210403}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{187,74.5923843}, {187.218643,74.5999832}, {187.437286,74.6105118}, {187.65593,74.6210403}}} {{187.65593,74.6210403}} wnTs[0]=0 {{{187.65593,74.6210403}, {188.170624,74.6458359}, {188.685303,74.6706314}, {189.199997,74.6571732}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{187.65593,74.6210403}, {188.170624,74.6458359}, {188.685303,74.6706314}, {189.199997,74.6571732}}} {{189.199997,74.6571732}} wnTs[0]=0 {{{189.199997,74.6571732}, {189.560562,74.6477432}, {189.921127,74.6077042}, {190.281693,74.5676651}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{189.199997,74.6571732}, {189.560562,74.6477432}, {189.921127,74.6077042}, {190.281693,74.5676651}}} {{190.281693,74.5676651}} wnTs[0]=0 {{{190.281693,74.5676651}, {190.654465,74.526268}, {191.027237,74.4848709}, {191.399994,74.4773026}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{190.281693,74.5676651}, {190.654465,74.526268}, {191.027237,74.4848709}, {191.399994,74.4773026}}} {{191.399994,74.4773026}} wnTs[0]=0 {{{191.399994,74.4773026}, {191.942627,74.4662857}, {192.48526,74.5001678}, {193.027893,74.5340576}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{191.399994,74.4773026}, {191.942627,74.4662857}, {192.48526,74.5001678}, {193.027893,74.5340576}}} {{193.027893,74.5340576}} wnTs[0]=0 {{{193.027893,74.5340576}, {193.218597,74.5459671}, {193.409302,74.5578766}, {193.600006,74.5678329}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{193.027893,74.5340576}, {193.218597,74.5459671}, {193.409302,74.5578766}, {193.600006,74.5678329}}} {{193.600006,74.5678329}} wnTs[0]=0 {{{193.600006,74.5678329}, {193.897125,74.5833511}, {194.19426,74.6063919}, {194.491394,74.6294403}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{193.600006,74.5678329}, {193.897125,74.5833511}, {194.19426,74.6063919}, {194.491394,74.6294403}}} {{194.491394,74.6294403}} wnTs[0]=0 {{{194.491394,74.6294403}, {194.927597,74.663269}, {195.3638,74.6970978}, {195.800003,74.7071152}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{194.491394,74.6294403}, {194.927597,74.663269}, {195.3638,74.6970978}, {195.800003,74.7071152}}} {{195.800003,74.7071152}} wnTs[0]=0 {{{195.800003,74.7071152}, {196.363327,74.7200546}, {196.926636,74.7021637}, {197.48996,74.6842728}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{195.800003,74.7071152}, {196.363327,74.7200546}, {196.926636,74.7021637}, {197.48996,74.6842728}}} {{197.48996,74.6842728}} wnTs[0]=0 {{{197.48996,74.6842728}, {197.659973,74.6788712}, {197.829987,74.6734695}, {198,74.6689148}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{197.48996,74.6842728}, {197.659973,74.6788712}, {197.829987,74.6734695}, {198,74.6689148}}} {{198,74.6689148}} wnTs[0]=0 {{{198,74.6689148}, {198.539948,74.6544571}, {199.07988,74.6331635}, {199.619827,74.6118698}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{198,74.6689148}, {198.539948,74.6544571}, {199.07988,74.6331635}, {199.619827,74.6118698}}} {{199.619827,74.6118698}} wnTs[0]=0 {{{199.619827,74.6118698}, {199.813217,74.6042404}, {200.006607,74.596611}, {200.199997,74.5892944}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{199.619827,74.6118698}, {199.813217,74.6042404}, {200.006607,74.596611}, {200.199997,74.5892944}}} {{200.199997,74.5892944}} wnTs[0]=0 {{{200.199997,74.5892944}, {200.468765,74.5791321}, {200.737534,74.5671921}, {201.006287,74.5552597}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{200.199997,74.5892944}, {200.468765,74.5791321}, {200.737534,74.5671921}, {201.006287,74.5552597}}} {{201.006287,74.5552597}} wnTs[0]=0 {{{201.006287,74.5552597}, {201.470856,74.5346298}, {201.935425,74.5139999}, {202.399994,74.5025177}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{201.006287,74.5552597}, {201.470856,74.5346298}, {201.935425,74.5139999}, {202.399994,74.5025177}}} {{202.399994,74.5025177}} wnTs[0]=0 {{{202.399994,74.5025177}, {202.888885,74.4904327}, {203.377777,74.4879456}, {203.866669,74.4854507}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{202.399994,74.5025177}, {202.888885,74.4904327}, {203.377777,74.4879456}, {203.866669,74.4854507}}} {{203.866669,74.4854507}} wnTs[0]=0 {{{203.866669,74.4854507}, {204.111115,74.4842072}, {204.35556,74.4829636}, {204.600006,74.4805222}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{203.866669,74.4854507}, {204.111115,74.4842072}, {204.35556,74.4829636}, {204.600006,74.4805222}}} {{204.600006,74.4805222}} wnTs[0]=0 {{{204.600006,74.4805222}, {204.84462,74.4780731}, {205.089233,74.476059}, {205.333847,74.4740448}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{204.600006,74.4805222}, {204.84462,74.4780731}, {205.089233,74.476059}, {205.333847,74.4740448}}} {{205.333847,74.4740448}} wnTs[0]=0 {{{205.333847,74.4740448}, {205.822556,74.4700241}, {206.311279,74.4659958}, {206.800003,74.4585342}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{205.333847,74.4740448}, {205.822556,74.4700241}, {206.311279,74.4659958}, {206.800003,74.4585342}}} {{206.800003,74.4585342}} wnTs[0]=0 {{{206.800003,74.4585342}, {207.53334,74.4473343}, {208.266663,74.4324722}, {209,74.413353}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{206.800003,74.4585342}, {207.53334,74.4473343}, {208.266663,74.4324722}, {209,74.413353}}} {{209,74.413353}} wnTs[0]=0 {{{209,74.413353}, {209.350708,74.404213}, {209.701416,74.3919983}, {210.052124,74.3797836}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{209,74.413353}, {209.350708,74.404213}, {209.701416,74.3919983}, {210.052124,74.3797836}}} {{210.052124,74.3797836}} wnTs[0]=0 {{{210.052124,74.3797836}, {210.434753,74.3664627}, {210.817368,74.3531418}, {211.199997,74.3438034}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{210.052124,74.3797836}, {210.434753,74.3664627}, {210.817368,74.3531418}, {211.199997,74.3438034}}} {{211.199997,74.3438034}} wnTs[0]=0 {{{211.199997,74.3438034}, {211.933334,74.3259048}, {212.666672,74.3128586}, {213.399994,74.305954}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{211.199997,74.3438034}, {211.933334,74.3259048}, {212.666672,74.3128586}, {213.399994,74.305954}}} {{213.399994,74.305954}} wnTs[0]=0 {{{213.399994,74.305954}, {214.133331,74.2990494}, {214.866669,74.2958145}, {215.600006,74.3023758}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{213.399994,74.305954}, {214.133331,74.2990494}, {214.866669,74.2958145}, {215.600006,74.3023758}}} {{215.600006,74.3023758}} wnTs[0]=0 {{{215.600006,74.3023758}, {216.076187,74.3066406}, {216.552383,74.317627}, {217.02858,74.3286133}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{215.600006,74.3023758}, {216.076187,74.3066406}, {216.552383,74.317627}, {217.02858,74.3286133}}} {{217.02858,74.3286133}} wnTs[0]=0 {{{217.02858,74.3286133}, {217.285721,74.334549}, {217.542862,74.340477}, {217.800003,74.3453522}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{217.02858,74.3286133}, {217.285721,74.334549}, {217.542862,74.340477}, {217.800003,74.3453522}}} {{217.800003,74.3453522}} wnTs[0]=0 {{{217.800003,74.3453522}, {218.041779,74.3499298}, {218.283554,74.358696}, {218.52533,74.3674622}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{217.800003,74.3453522}, {218.041779,74.3499298}, {218.283554,74.358696}, {218.52533,74.3674622}}} {{218.52533,74.3674622}} wnTs[0]=0 {{{218.52533,74.3674622}, {219.016891,74.3852844}, {219.508438,74.4031067}, {220,74.3857574}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{218.52533,74.3674622}, {219.016891,74.3852844}, {219.508438,74.4031067}, {220,74.3857574}}} {{220,74.3857574}} wnTs[0]=0 {{{220,74.3857574}, {220.409988,74.3712845}, {220.819977,74.3263474}, {221.229965,74.2814102}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{220,74.3857574}, {220.409988,74.3712845}, {220.819977,74.3263474}, {221.229965,74.2814102}}} {{221.229965,74.2814102}} wnTs[0]=0 {{{221.229965,74.2814102}, {221.553314,74.2459717}, {221.876648,74.2105331}, {222.199997,74.190033}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{221.229965,74.2814102}, {221.553314,74.2459717}, {221.876648,74.2105331}, {222.199997,74.190033}}} {{222.199997,74.190033}} wnTs[0]=0 {{{222.199997,74.190033}, {222.933334,74.1435471}, {223.666672,74.1037674}, {224.399994,74.1068344}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{222.199997,74.190033}, {222.933334,74.1435471}, {223.666672,74.1037674}, {224.399994,74.1068344}}} {{224.399994,74.1068344}} wnTs[0]=0 {{{224.399994,74.1068344}, {224.885803,74.1088638}, {225.371613,74.1381073}, {225.857422,74.1673508}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{224.399994,74.1068344}, {224.885803,74.1088638}, {225.371613,74.1381073}, {225.857422,74.1673508}}} {{225.857422,74.1673508}} wnTs[0]=0 {{{225.857422,74.1673508}, {226.10495,74.182251}, {226.352478,74.1971512}, {226.600006,74.2084503}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{225.857422,74.1673508}, {226.10495,74.182251}, {226.352478,74.1971512}, {226.600006,74.2084503}}} {{226.600006,74.2084503}} wnTs[0]=0 {{{226.600006,74.2084503}, {226.839722,74.2193909}, {227.079437,74.2324677}, {227.319153,74.2455521}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{226.600006,74.2084503}, {226.839722,74.2193909}, {227.079437,74.2324677}, {227.319153,74.2455521}}} {{227.319153,74.2455521}} wnTs[0]=0 {{{227.319153,74.2455521}, {227.812759,74.2724838}, {228.306381,74.2994156}, {228.800003,74.3076782}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{227.319153,74.2455521}, {227.812759,74.2724838}, {228.306381,74.2994156}, {228.800003,74.3076782}}} {{228.800003,74.3076782}} wnTs[0]=0 {{{228.800003,74.3076782}, {229.309921,74.3162155}, {229.819824,74.3054352}, {230.329742,74.2946548}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{228.800003,74.3076782}, {229.309921,74.3162155}, {229.819824,74.3054352}, {230.329742,74.2946548}}} {{230.329742,74.2946548}} wnTs[0]=0 {{{230.329742,74.2946548}, {230.553162,74.2899323}, {230.776581,74.2852097}, {231,74.2821121}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{230.329742,74.2946548}, {230.553162,74.2899323}, {230.776581,74.2852097}, {231,74.2821121}}} {{231,74.2821121}} wnTs[0]=0 {{{231,74.2821121}, {231.290405,74.2780838}, {231.580811,74.2724228}, {231.871216,74.2667542}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{231,74.2821121}, {231.290405,74.2780838}, {231.580811,74.2724228}, {231.871216,74.2667542}}} {{231.871216,74.2667542}} wnTs[0]=0 {{{231.871216,74.2667542}, {232.314148,74.2581177}, {232.757065,74.2494812}, {233.199997,74.2466507}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{231.871216,74.2667542}, {232.314148,74.2581177}, {232.757065,74.2494812}, {233.199997,74.2466507}}} {{233.199997,74.2466507}} wnTs[0]=0 {{{233.199997,74.2466507}, {233.343719,74.2457352}, {233.487442,74.2448959}, {233.631165,74.2442474}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{233.199997,74.2466507}, {233.343719,74.2457352}, {233.487442,74.2448959}, {233.631165,74.2442474}}} {{233.631165,74.2442474}} wnTs[0]=0 {{{233.631165,74.2442474}, {234.220779,74.2415924}, {234.810394,74.2421951}, {235.399994,74.2539825}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{233.631165,74.2442474}, {234.220779,74.2415924}, {234.810394,74.2421951}, {235.399994,74.2539825}}} {{235.399994,74.2539825}} wnTs[0]=0 {{{235.399994,74.2539825}, {235.845032,74.2628784}, {236.29007,74.2817612}, {236.735107,74.3006439}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{235.399994,74.2539825}, {235.845032,74.2628784}, {236.29007,74.2817612}, {236.735107,74.3006439}}} {{236.735107,74.3006439}} wnTs[0]=0 {{{236.735107,74.3006439}, {237.023407,74.3128738}, {237.311707,74.3251038}, {237.600006,74.3346176}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{236.735107,74.3006439}, {237.023407,74.3128738}, {237.311707,74.3251038}, {237.600006,74.3346176}}} {{237.600006,74.3346176}} wnTs[0]=0 {{{237.600006,74.3346176}, {238.333328,74.3588257}, {239.066666,74.3803329}, {239.800003,74.3992233}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{237.600006,74.3346176}, {238.333328,74.3588257}, {239.066666,74.3803329}, {239.800003,74.3992233}}} {{239.800003,74.3992233}} wnTs[0]=0 {{{239.800003,74.3992233}, {240.082169,74.4064941}, {240.364334,74.4108353}, {240.6465,74.4151764}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{239.800003,74.3992233}, {240.082169,74.4064941}, {240.364334,74.4108353}, {240.6465,74.4151764}}} {{240.6465,74.4151764}} wnTs[0]=0 {{{240.6465,74.4151764}, {241.097672,74.4221191}, {241.548828,74.4290695}, {242,74.4479828}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{240.6465,74.4151764}, {241.097672,74.4221191}, {241.548828,74.4290695}, {242,74.4479828}}} {{242,74.4479828}} wnTs[0]=0 {{{242,74.4479828}, {242.416458,74.4654388}, {242.832916,74.4942093}, {243.249374,74.5229874}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{242,74.4479828}, {242.416458,74.4654388}, {242.832916,74.4942093}, {243.249374,74.5229874}}} {{243.249374,74.5229874}} wnTs[0]=0 {{{243.249374,74.5229874}, {243.566254,74.5448837}, {243.883118,74.5667801}, {244.199997,74.5836868}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{243.249374,74.5229874}, {243.566254,74.5448837}, {243.883118,74.5667801}, {244.199997,74.5836868}}} {{244.199997,74.5836868}} wnTs[0]=0 {{{244.199997,74.5836868}, {244.933334,74.6228104}, {245.666672,74.6546402}, {246.399994,74.6827393}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{244.199997,74.5836868}, {244.933334,74.6228104}, {245.666672,74.6546402}, {246.399994,74.6827393}}} {{246.399994,74.6827393}} wnTs[0]=0 {{{246.399994,74.6827393}, {247.133331,74.7108383}, {247.866669,74.7327499}, {248.600006,74.7522964}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{246.399994,74.6827393}, {247.133331,74.7108383}, {247.866669,74.7327499}, {248.600006,74.7522964}}} {{248.600006,74.7522964}} wnTs[0]=0 {{{248.600006,74.7522964}, {248.714218,74.7553406}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{248.714218,74.7553406}, {249.40947,74.7739029}, {250.104736,74.7924576}, {250.800003,74.8000031}}} {{248.714218,74.7553406}} wnTs[0]=1 {{{248.600006,74.7522964}, {248.714218,74.7553406}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{248.714218,74.7553406}, {249.40947,74.7739029}, {250.104736,74.7924576}, {250.800003,74.8000031}}} {{250.800003,74.8000031}} wnTs[0]=0 {{{250.800003,74.8000031}, {251.288895,74.8053055}, {251.777771,74.8035355}, {252.266663,74.8017731}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{248.714218,74.7553406}, {249.40947,74.7739029}, {250.104736,74.7924576}, {250.800003,74.8000031}}} {{250.800003,74.8000031}} wnTs[0]=0.0119047 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.0119047452 segID=150 spanID=610
|
|
debugShowCubicIntersection wtTs[0]=1 {{{250.800003,74.8000031}, {251.288895,74.8053055}, {251.777771,74.8035355}, {252.266663,74.8017731}}} {{252.266663,74.8017731}} wnTs[0]=0 {{{252.266663,74.8017731}, {252.511108,74.8008881}, {252.755554,74.8000031}, {253,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{250.800003,74.8000031}, {251.288895,74.8053055}, {251.777771,74.8035355}, {252.266663,74.8017731}}} {{250.800003,74.8000031}} wnTs[0]=0.0119047 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{252.266663,74.8017731}, {252.511108,74.8008881}, {252.755554,74.8000031}, {253,74.8000031}}} {{253,74.8000031}} wnTs[0]=0 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=0 {{{68.1999969,74.8000031}, {68.4444427,74.8000031}, {68.6888885,74.8039017}, {68.9333344,74.8078003}}} {{68.1999969,74.8000031}} wnTs[0]=0 {{{68.1999969,74.8000031}, {68.4444427,74.8000031}, {68.6888885,74.7961044}, {68.9333344,74.7922058}}}
|
|
debugShowCubicIntersection no intersect {{{68.1999969,74.8000031}, {68.4444427,74.8000031}, {68.6888885,74.8039017}, {68.9333344,74.8078003}}} {{{68.9333344,74.7922058}, {69.422226,74.7844086}, {69.9111099,74.7766113}, {70.4000015,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{68.1999969,74.8000031}, {68.4444427,74.8000031}, {68.6888885,74.8039017}, {68.9333344,74.8078003}}} {{68.1999969,74.8000031}} wnTs[0]=1 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection no intersect {{{68.9333344,74.8078003}, {69.422226,74.8155975}, {69.9111099,74.8233948}, {70.4000015,74.8000031}}} {{{68.1999969,74.8000031}, {68.4444427,74.8000031}, {68.6888885,74.7961044}, {68.9333344,74.7922058}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{68.9333344,74.8078003}, {69.422226,74.8155975}, {69.9111099,74.8233948}, {70.4000015,74.8000031}}} {{70.4000015,74.8000031}} wnTs[0]=1 {{{68.9333344,74.7922058}, {69.422226,74.7844086}, {69.9111099,74.7766113}, {70.4000015,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{68.9333344,74.8078003}, {69.422226,74.8155975}, {69.9111099,74.8233948}, {70.4000015,74.8000031}}} {{70.4000015,74.8000031}} wnTs[0]=0 {{{70.4000015,74.8000031}, {70.7796326,74.8181686}, {71.1592636,74.8627396}, {71.5388947,74.9073105}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{68.9333344,74.8078003}, {69.422226,74.8155975}, {69.9111099,74.8233948}, {70.4000015,74.8000031}}} {{70.4000015,74.8000031}} wnTs[0]=0.988095 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.988095214 segID=299 spanID=611
|
|
debugShowCubicIntersection wtTs[0]=0 {{{70.4000015,74.8000031}, {70.7796326,74.7818375}, {71.1592636,74.7372665}, {71.5388947,74.6926956}}} {{70.4000015,74.8000031}} wnTs[0]=1 {{{68.9333344,74.7922058}, {69.422226,74.7844086}, {69.9111099,74.7766113}, {70.4000015,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=0 {{{70.4000015,74.8000031}, {70.7796326,74.7818375}, {71.1592636,74.7372665}, {71.5388947,74.6926956}}} {{70.4000015,74.8000031}} wnTs[0]=0 {{{70.4000015,74.8000031}, {70.7796326,74.8181686}, {71.1592636,74.8627396}, {71.5388947,74.9073105}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{70.4000015,74.8000031}, {70.7796326,74.7818375}, {71.1592636,74.7372665}, {71.5388947,74.6926956}}} {{70.4000015,74.8000031}} wnTs[0]=0.988095 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection no intersect {{{78.1107025,74.66716}, {78.4738007,74.722496}, {78.8368988,74.777832}, {79.1999969,74.7998505}}} {{{79.1999969,74.8001556}, {79.689003,74.7705002}, {80.1780014,74.7803421}, {80.6670074,74.790184}}}
|
|
debugShowCubicIntersection no intersect {{{79.1999969,74.7998505}, {79.689003,74.8295059}, {80.1780014,74.819664}, {80.6670074,74.8098221}}} {{{78.1107025,74.9328461}, {78.4738007,74.8775101}, {78.8368988,74.8221741}, {79.1999969,74.8001556}}}
|
|
debugShowCubicIntersection wtTs[0]=0.00172605823 {{{79.1999969,74.7998505}, {79.689003,74.8295059}, {80.1780014,74.819664}, {80.6670074,74.8098221}}} {{79.2025299,74.8000031}} wnTs[0]=0.00172606 {{{79.1999969,74.8001556}, {79.689003,74.7705002}, {80.1780014,74.7803421}, {80.6670074,74.790184}}}
|
|
SkOpSegment::addT alias t=0.00172605823 segID=11 spanID=600
|
|
SkOpSegment::addT insert t=0.00172605823 segID=161 spanID=612
|
|
debugShowCubicIntersection no intersect {{{79.1999969,74.7998505}, {79.689003,74.8295059}, {80.1780014,74.819664}, {80.6670074,74.8098221}}} {{{80.6670074,74.790184}, {80.9113388,74.7950974}, {81.1556702,74.8000107}, {81.4000015,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0.0017190524 {{{79.1999969,74.7998505}, {79.689003,74.8295059}, {80.1780014,74.819664}, {80.6670074,74.8098221}}} {{79.2025223,74.8000031}} wnTs[0]=0.940463 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.940462545 segID=299 spanID=613
|
|
debugShowCubicIntersection no intersect {{{80.6670074,74.8098221}, {80.9113388,74.8049088}, {81.1556702,74.7999954}, {81.4000015,74.8000031}}} {{{79.1999969,74.8001556}, {79.689003,74.7705002}, {80.1780014,74.7803421}, {80.6670074,74.790184}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{80.6670074,74.8098221}, {80.9113388,74.8049088}, {81.1556702,74.7999954}, {81.4000015,74.8000031}}} {{81.4000015,74.8000031}} wnTs[0]=1 {{{80.6670074,74.790184}, {80.9113388,74.7950974}, {81.1556702,74.8000107}, {81.4000015,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{80.6670074,74.8098221}, {80.9113388,74.8049088}, {81.1556702,74.7999954}, {81.4000015,74.8000031}}} {{81.4000015,74.8000031}} wnTs[0]=0 {{{81.4000015,74.8000031}, {81.6438522,74.7999954}, {81.8877106,74.7989426}, {82.1315613,74.7978897}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0.99844881 {{{80.6670074,74.8098221}, {80.9113388,74.8049088}, {81.1556702,74.7999954}, {81.4000015,74.8000031}}} {{81.3988647,74.8000031}} wtTs[1]=1 {{81.4000015,74.8000031}} wnTs[0]=0.928578 {{{253,74.8000031}, {68.1999969,74.8000031}}} wnTs[1]=0.928571405
|
|
SkOpSegment::addT insert t=0.928577558 segID=299 spanID=614
|
|
SkOpSegment::addT insert t=0.928571405 segID=299 spanID=615
|
|
debugShowCubicIntersection wtTs[0]=0 {{{81.4000015,74.8000031}, {81.6438522,74.8000107}, {81.8877106,74.8010635}, {82.1315613,74.8021164}}} {{81.4000015,74.8000031}} wnTs[0]=1 {{{80.6670074,74.790184}, {80.9113388,74.7950974}, {81.1556702,74.8000107}, {81.4000015,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=0 {{{81.4000015,74.8000031}, {81.6438522,74.8000107}, {81.8877106,74.8010635}, {82.1315613,74.8021164}}} {{81.4000015,74.8000031}} wnTs[0]=0 {{{81.4000015,74.8000031}, {81.6438522,74.7999954}, {81.8877106,74.7989426}, {82.1315613,74.7978897}}}
|
|
debugShowCubicIntersection no intersect {{{81.4000015,74.8000031}, {81.6438522,74.8000107}, {81.8877106,74.8010635}, {82.1315613,74.8021164}}} {{{82.1315613,74.7978897}, {82.6210403,74.7957764}, {83.1105194,74.7936554}, {83.5999985,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{81.4000015,74.8000031}, {81.6438522,74.8000107}, {81.8877106,74.8010635}, {82.1315613,74.8021164}}} {{81.4000015,74.8000031}} wnTs[0]=0.928571 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection no intersect {{{82.1315613,74.8021164}, {82.6210403,74.8042297}, {83.1105194,74.8063507}, {83.5999985,74.8000031}}} {{{81.4000015,74.8000031}, {81.6438522,74.7999954}, {81.8877106,74.7989426}, {82.1315613,74.7978897}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{82.1315613,74.8021164}, {82.6210403,74.8042297}, {83.1105194,74.8063507}, {83.5999985,74.8000031}}} {{83.5999985,74.8000031}} wnTs[0]=1 {{{82.1315613,74.7978897}, {82.6210403,74.7957764}, {83.1105194,74.7936554}, {83.5999985,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{82.1315613,74.8021164}, {82.6210403,74.8042297}, {83.1105194,74.8063507}, {83.5999985,74.8000031}}} {{83.5999985,74.8000031}} wnTs[0]=0 {{{83.5999985,74.8000031}, {83.9259109,74.8042297}, {84.2518234,74.8159714}, {84.5777359,74.827713}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{82.1315613,74.8021164}, {82.6210403,74.8042297}, {83.1105194,74.8063507}, {83.5999985,74.8000031}}} {{83.5999985,74.8000031}} wnTs[0]=0.916667 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.91666666 segID=299 spanID=616
|
|
debugShowCubicIntersection wtTs[0]=0 {{{83.5999985,74.8000031}, {83.9259109,74.7957764}, {84.2518234,74.7840347}, {84.5777359,74.7722931}}} {{83.5999985,74.8000031}} wnTs[0]=1 {{{82.1315613,74.7978897}, {82.6210403,74.7957764}, {83.1105194,74.7936554}, {83.5999985,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=0 {{{83.5999985,74.8000031}, {83.9259109,74.7957764}, {84.2518234,74.7840347}, {84.5777359,74.7722931}}} {{83.5999985,74.8000031}} wnTs[0]=0 {{{83.5999985,74.8000031}, {83.9259109,74.8042297}, {84.2518234,74.8159714}, {84.5777359,74.827713}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{83.5999985,74.8000031}, {83.9259109,74.7957764}, {84.2518234,74.7840347}, {84.5777359,74.7722931}}} {{83.5999985,74.8000031}} wnTs[0]=0.916667 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{87.0222626,74.7722931}, {87.348175,74.7840347}, {87.6740875,74.7957764}, {88,74.8000031}}} {{88,74.8000031}} wnTs[0]=1 {{{87.0222626,74.827713}, {87.348175,74.8159714}, {87.6740875,74.8042297}, {88,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{87.0222626,74.7722931}, {87.348175,74.7840347}, {87.6740875,74.7957764}, {88,74.8000031}}} {{88,74.8000031}} wnTs[0]=0 {{{88,74.8000031}, {88.1576462,74.7979584}, {88.3152924,74.7951202}, {88.4729385,74.7922745}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{87.0222626,74.7722931}, {87.348175,74.7840347}, {87.6740875,74.7957764}, {88,74.8000031}}} {{88,74.8000031}} wnTs[0]=0.892857 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.892857128 segID=299 spanID=617
|
|
debugShowCubicIntersection wtTs[0]=0 {{{88,74.8000031}, {88.1576462,74.8020477}, {88.3152924,74.8048859}, {88.4729385,74.8077316}}} {{88,74.8000031}} wnTs[0]=1 {{{87.0222626,74.827713}, {87.348175,74.8159714}, {87.6740875,74.8042297}, {88,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=0 {{{88,74.8000031}, {88.1576462,74.8020477}, {88.3152924,74.8048859}, {88.4729385,74.8077316}}} {{88,74.8000031}} wnTs[0]=0 {{{88,74.8000031}, {88.1576462,74.7979584}, {88.3152924,74.7951202}, {88.4729385,74.7922745}}}
|
|
debugShowCubicIntersection no intersect {{{88,74.8000031}, {88.1576462,74.8020477}, {88.3152924,74.8048859}, {88.4729385,74.8077316}}} {{{88.4729385,74.7922745}, {89.0486221,74.7818985}, {89.6243134,74.7715225}, {90.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{88,74.8000031}, {88.1576462,74.8020477}, {88.3152924,74.8048859}, {88.4729385,74.8077316}}} {{88,74.8000031}} wnTs[0]=0.892857 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection no intersect {{{88.4729385,74.8077316}, {89.0486221,74.8181076}, {89.6243134,74.8284836}, {90.1999969,74.8000031}}} {{{88,74.8000031}, {88.1576462,74.7979584}, {88.3152924,74.7951202}, {88.4729385,74.7922745}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{88.4729385,74.8077316}, {89.0486221,74.8181076}, {89.6243134,74.8284836}, {90.1999969,74.8000031}}} {{90.1999969,74.8000031}} wnTs[0]=1 {{{88.4729385,74.7922745}, {89.0486221,74.7818985}, {89.6243134,74.7715225}, {90.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{88.4729385,74.8077316}, {89.0486221,74.8181076}, {89.6243134,74.8284836}, {90.1999969,74.8000031}}} {{90.1999969,74.8000031}} wnTs[0]=0 {{{90.1999969,74.8000031}, {90.5620499,74.8179169}, {90.9241028,74.8630524}, {91.2861557,74.9081879}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{88.4729385,74.8077316}, {89.0486221,74.8181076}, {89.6243134,74.8284836}, {90.1999969,74.8000031}}} {{90.1999969,74.8000031}} wnTs[0]=0.880952 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.880952383 segID=299 spanID=618
|
|
debugShowCubicIntersection wtTs[0]=0 {{{90.1999969,74.8000031}, {90.5620499,74.7820892}, {90.9241028,74.7369537}, {91.2861557,74.6918182}}} {{90.1999969,74.8000031}} wnTs[0]=1 {{{88.4729385,74.7922745}, {89.0486221,74.7818985}, {89.6243134,74.7715225}, {90.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=0 {{{90.1999969,74.8000031}, {90.5620499,74.7820892}, {90.9241028,74.7369537}, {91.2861557,74.6918182}}} {{90.1999969,74.8000031}} wnTs[0]=0 {{{90.1999969,74.8000031}, {90.5620499,74.8179169}, {90.9241028,74.8630524}, {91.2861557,74.9081879}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{90.1999969,74.8000031}, {90.5620499,74.7820892}, {90.9241028,74.7369537}, {91.2861557,74.6918182}}} {{90.1999969,74.8000031}} wnTs[0]=0.880952 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{170.458435,74.6683578}, {170.838959,74.7230225}, {171.219482,74.7776947}, {171.600006,74.8000031}}} {{171.600006,74.8000031}} wnTs[0]=1 {{{170.458435,74.9316483}, {170.838959,74.8769836}, {171.219482,74.8223114}, {171.600006,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{170.458435,74.6683578}, {170.838959,74.7230225}, {171.219482,74.7776947}, {171.600006,74.8000031}}} {{171.600006,74.8000031}} wnTs[0]=0 {{{171.600006,74.8000031}, {172.333328,74.757019}, {173.066666,74.7623062}, {173.800003,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{170.458435,74.6683578}, {170.838959,74.7230225}, {171.219482,74.7776947}, {171.600006,74.8000031}}} {{171.600006,74.8000031}} wnTs[0]=0.440476 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.44047615 segID=299 spanID=619
|
|
debugShowCubicIntersection wtTs[0]=0 {{{171.600006,74.8000031}, {172.333328,74.8429871}, {173.066666,74.8376999}, {173.800003,74.8000031}}} {{171.600006,74.8000031}} wnTs[0]=1 {{{170.458435,74.9316483}, {170.838959,74.8769836}, {171.219482,74.8223114}, {171.600006,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=0 {{{171.600006,74.8000031}, {172.333328,74.8429871}, {173.066666,74.8376999}, {173.800003,74.8000031}}} {{171.600006,74.8000031}} wtTs[1]=1 {{173.800003,74.8000031}} wnTs[0]=0 {{{171.600006,74.8000031}, {172.333328,74.757019}, {173.066666,74.7623062}, {173.800003,74.8000031}}} wnTs[1]=1
|
|
debugShowCubicIntersection wtTs[0]=1 {{{171.600006,74.8000031}, {172.333328,74.8429871}, {173.066666,74.8376999}, {173.800003,74.8000031}}} {{173.800003,74.8000031}} wnTs[0]=0 {{{173.800003,74.8000031}, {174.500809,74.8360367}, {175.201599,74.9249344}, {175.902405,75.0138397}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{171.600006,74.8000031}, {172.333328,74.8429871}, {173.066666,74.8376999}, {173.800003,74.8000031}}} {{171.600006,74.8000031}} wtTs[1]=1 {{173.800003,74.8000031}} wnTs[0]=0.440476 {{{253,74.8000031}, {68.1999969,74.8000031}}} wnTs[1]=0.428571405
|
|
SkOpSegment::addT insert t=0.428571405 segID=299 spanID=620
|
|
debugShowCubicIntersection wtTs[0]=0 {{{173.800003,74.8000031}, {174.500809,74.7639694}, {175.201599,74.6750717}, {175.902405,74.5861664}}} {{173.800003,74.8000031}} wnTs[0]=1 {{{171.600006,74.8000031}, {172.333328,74.757019}, {173.066666,74.7623062}, {173.800003,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=0 {{{173.800003,74.8000031}, {174.500809,74.7639694}, {175.201599,74.6750717}, {175.902405,74.5861664}}} {{173.800003,74.8000031}} wnTs[0]=0 {{{173.800003,74.8000031}, {174.500809,74.8360367}, {175.201599,74.9249344}, {175.902405,75.0138397}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{173.800003,74.8000031}, {174.500809,74.7639694}, {175.201599,74.6750717}, {175.902405,74.5861664}}} {{173.800003,74.8000031}} wnTs[0]=0.428571 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{248.714218,74.7553406}, {249.40947,74.7739029}, {250.104736,74.7924576}, {250.800003,74.8000031}}} {{250.800003,74.8000031}} wnTs[0]=1 {{{248.714218,74.8446655}, {249.40947,74.8261032}, {250.104736,74.8075485}, {250.800003,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{248.714218,74.7553406}, {249.40947,74.7739029}, {250.104736,74.7924576}, {250.800003,74.8000031}}} {{250.800003,74.8000031}} wnTs[0]=0 {{{250.800003,74.8000031}, {251.288895,74.7947006}, {251.777771,74.7964706}, {252.266663,74.798233}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{248.714218,74.7553406}, {249.40947,74.7739029}, {250.104736,74.7924576}, {250.800003,74.8000031}}} {{250.800003,74.8000031}} wnTs[0]=0.0119047 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.0119047452 segID=299 spanID=621
|
|
debugShowCubicIntersection wtTs[0]=0 {{{250.800003,74.8000031}, {251.288895,74.8053055}, {251.777771,74.8035355}, {252.266663,74.8017731}}} {{250.800003,74.8000031}} wnTs[0]=1 {{{248.714218,74.8446655}, {249.40947,74.8261032}, {250.104736,74.8075485}, {250.800003,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=0 {{{250.800003,74.8000031}, {251.288895,74.8053055}, {251.777771,74.8035355}, {252.266663,74.8017731}}} {{250.800003,74.8000031}} wnTs[0]=0 {{{250.800003,74.8000031}, {251.288895,74.7947006}, {251.777771,74.7964706}, {252.266663,74.798233}}}
|
|
debugShowCubicIntersection no intersect {{{250.800003,74.8000031}, {251.288895,74.8053055}, {251.777771,74.8035355}, {252.266663,74.8017731}}} {{{252.266663,74.798233}, {252.511108,74.799118}, {252.755554,74.8000031}, {253,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{250.800003,74.8000031}, {251.288895,74.8053055}, {251.777771,74.8035355}, {252.266663,74.8017731}}} {{250.800003,74.8000031}} wnTs[0]=0.0119047 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection no intersect {{{252.266663,74.8017731}, {252.511108,74.8008881}, {252.755554,74.8000031}, {253,74.8000031}}} {{{250.800003,74.8000031}, {251.288895,74.7947006}, {251.777771,74.7964706}, {252.266663,74.798233}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{252.266663,74.8017731}, {252.511108,74.8008881}, {252.755554,74.8000031}, {253,74.8000031}}} {{253,74.8000031}} wnTs[0]=1 {{{252.266663,74.798233}, {252.511108,74.799118}, {252.755554,74.8000031}, {253,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{252.266663,74.8017731}, {252.511108,74.8008881}, {252.755554,74.8000031}, {253,74.8000031}}} {{253,74.8000031}} wnTs[0]=0 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{68.1999969,74.8000031}, {68.4444427,74.8000031}, {68.6888885,74.7961044}, {68.9333344,74.7922058}}} {{68.1999969,74.8000031}} wnTs[0]=1 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{68.9333344,74.7922058}, {69.422226,74.7844086}, {69.9111099,74.7766113}, {70.4000015,74.8000031}}} {{70.4000015,74.8000031}} wnTs[0]=0.988095 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{70.4000015,74.8000031}, {70.7796326,74.8181686}, {71.1592636,74.8627396}, {71.5388947,74.9073105}}} {{70.4000015,74.8000031}} wnTs[0]=0.988095 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0.0017190524 {{{79.1999969,74.8001556}, {79.689003,74.7705002}, {80.1780014,74.7803421}, {80.6670074,74.790184}}} {{79.2025223,74.8000031}} wnTs[0]=0.940463 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT alias t=0.0017190524 segID=161 spanID=612
|
|
debugShowCubicLineIntersection wtTs[0]=0.99844881 {{{80.6670074,74.790184}, {80.9113388,74.7950974}, {81.1556702,74.8000107}, {81.4000015,74.8000031}}} {{81.3988647,74.8000031}} wtTs[1]=1 {{81.4000015,74.8000031}} wnTs[0]=0.928578 {{{253,74.8000031}, {68.1999969,74.8000031}}} wnTs[1]=0.928571405
|
|
SkOpSegment::addT insert t=0.99844881 segID=162 spanID=622
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{81.4000015,74.8000031}, {81.6438522,74.7999954}, {81.8877106,74.7989426}, {82.1315613,74.7978897}}} {{81.4000015,74.8000031}} wnTs[0]=0.928571 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{82.1315613,74.7978897}, {82.6210403,74.7957764}, {83.1105194,74.7936554}, {83.5999985,74.8000031}}} {{83.5999985,74.8000031}} wnTs[0]=0.916667 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{83.5999985,74.8000031}, {83.9259109,74.8042297}, {84.2518234,74.8159714}, {84.5777359,74.827713}}} {{83.5999985,74.8000031}} wnTs[0]=0.916667 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{87.0222626,74.827713}, {87.348175,74.8159714}, {87.6740875,74.8042297}, {88,74.8000031}}} {{88,74.8000031}} wnTs[0]=0.892857 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{88,74.8000031}, {88.1576462,74.7979584}, {88.3152924,74.7951202}, {88.4729385,74.7922745}}} {{88,74.8000031}} wnTs[0]=0.892857 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{88.4729385,74.7922745}, {89.0486221,74.7818985}, {89.6243134,74.7715225}, {90.1999969,74.8000031}}} {{90.1999969,74.8000031}} wnTs[0]=0.880952 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{90.1999969,74.8000031}, {90.5620499,74.8179169}, {90.9241028,74.8630524}, {91.2861557,74.9081879}}} {{90.1999969,74.8000031}} wnTs[0]=0.880952 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{170.458435,74.9316483}, {170.838959,74.8769836}, {171.219482,74.8223114}, {171.600006,74.8000031}}} {{171.600006,74.8000031}} wnTs[0]=0.440476 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{171.600006,74.8000031}, {172.333328,74.757019}, {173.066666,74.7623062}, {173.800003,74.8000031}}} {{171.600006,74.8000031}} wtTs[1]=1 {{173.800003,74.8000031}} wnTs[0]=0.440476 {{{253,74.8000031}, {68.1999969,74.8000031}}} wnTs[1]=0.428571405
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{173.800003,74.8000031}, {174.500809,74.8360367}, {175.201599,74.9249344}, {175.902405,75.0138397}}} {{173.800003,74.8000031}} wnTs[0]=0.428571 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{248.714218,74.8446655}, {249.40947,74.8261032}, {250.104736,74.8075485}, {250.800003,74.8000031}}} {{250.800003,74.8000031}} wnTs[0]=0.0119047 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{250.800003,74.8000031}, {251.288895,74.7947006}, {251.777771,74.7964706}, {252.266663,74.798233}}} {{250.800003,74.8000031}} wnTs[0]=0.0119047 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{252.266663,74.798233}, {252.511108,74.799118}, {252.755554,74.8000031}, {253,74.8000031}}} {{253,74.8000031}} wnTs[0]=0 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowLineIntersection wtTs[0]=0 {{{253,74.8000031}, {68.1999969,74.8000031}}} {{253,74.8000031}} wtTs[1]=1 {{68.1999969,74.8000031}} wnTs[0]=0 {{{253,74.8000031}, {68.1999969,74.8000031}}} wnTs[1]=1
|
|
debugShowCubicIntersection wtTs[0]=1 {{{68.1999969,74.8000031}, {68.4444427,74.8000031}, {68.6888885,74.7961044}, {68.9333344,74.7922058}}} {{68.9333344,74.7922058}} wnTs[0]=0 {{{68.9333344,74.7922058}, {69.422226,74.7844086}, {69.9111099,74.7766113}, {70.4000015,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{68.1999969,74.8000031}, {68.4444427,74.8000031}, {68.6888885,74.7961044}, {68.9333344,74.7922058}}} {{68.1999969,74.8000031}} wnTs[0]=1 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{68.9333344,74.7922058}, {69.422226,74.7844086}, {69.9111099,74.7766113}, {70.4000015,74.8000031}}} {{70.4000015,74.8000031}} wnTs[0]=0 {{{70.4000015,74.8000031}, {70.7796326,74.8181686}, {71.1592636,74.8627396}, {71.5388947,74.9073105}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{68.9333344,74.7922058}, {69.422226,74.7844086}, {69.9111099,74.7766113}, {70.4000015,74.8000031}}} {{70.4000015,74.8000031}} wnTs[0]=0.988095 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{70.4000015,74.8000031}, {70.7796326,74.8181686}, {71.1592636,74.8627396}, {71.5388947,74.9073105}}} {{71.5388947,74.9073105}} wnTs[0]=0 {{{71.5388947,74.9073105}, {71.8925934,74.9488373}, {72.2462997,74.9903641}, {72.5999985,75.0105362}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{70.4000015,74.8000031}, {70.7796326,74.8181686}, {71.1592636,74.8627396}, {71.5388947,74.9073105}}} {{70.4000015,74.8000031}} wnTs[0]=0.988095 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{71.5388947,74.9073105}, {71.8925934,74.9488373}, {72.2462997,74.9903641}, {72.5999985,75.0105362}}} {{72.5999985,75.0105362}} wnTs[0]=0 {{{72.5999985,75.0105362}, {73.1301117,75.0407715}, {73.6602249,75.0435104}, {74.1903381,75.0462494}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{72.5999985,75.0105362}, {73.1301117,75.0407715}, {73.6602249,75.0435104}, {74.1903381,75.0462494}}} {{74.1903381,75.0462494}} wnTs[0]=0 {{{74.1903381,75.0462494}, {74.3935623,75.0472946}, {74.5967789,75.0483398}, {74.8000031,75.0509415}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{74.1903381,75.0462494}, {74.3935623,75.0472946}, {74.5967789,75.0483398}, {74.8000031,75.0509415}}} {{74.8000031,75.0509415}} wnTs[0]=0 {{{74.8000031,75.0509415}, {75.0211792,75.053772}, {75.242363,75.0601425}, {75.4635391,75.0665054}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{74.8000031,75.0509415}, {75.0211792,75.053772}, {75.242363,75.0601425}, {75.4635391,75.0665054}}} {{75.4635391,75.0665054}} wnTs[0]=0 {{{75.4635391,75.0665054}, {75.9756927,75.0812454}, {76.4878464,75.0959854}, {77,75.0667953}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{75.4635391,75.0665054}, {75.9756927,75.0812454}, {76.4878464,75.0959854}, {77,75.0667953}}} {{77,75.0667953}} wnTs[0]=0 {{{77,75.0667953}, {77.3702316,75.0456924}, {77.7404709,74.9892731}, {78.1107025,74.9328461}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{77,75.0667953}, {77.3702316,75.0456924}, {77.7404709,74.9892731}, {78.1107025,74.9328461}}} {{78.1107025,74.9328461}} wnTs[0]=0 {{{78.1107025,74.9328461}, {78.4738007,74.8775101}, {78.8368988,74.8221741}, {79.1999969,74.8001556}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{78.1107025,74.9328461}, {78.4738007,74.8775101}, {78.8368988,74.8221741}, {79.1999969,74.8001556}}} {{79.1999969,74.8001556}} wnTs[0]=0 {{{79.1999969,74.8001556}, {79.689003,74.7705002}, {80.1780014,74.7803421}, {80.6670074,74.790184}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{79.1999969,74.8001556}, {79.689003,74.7705002}, {80.1780014,74.7803421}, {80.6670074,74.790184}}} {{80.6670074,74.790184}} wnTs[0]=0 {{{80.6670074,74.790184}, {80.9113388,74.7950974}, {81.1556702,74.8000107}, {81.4000015,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0.0017190524 {{{79.1999969,74.8001556}, {79.689003,74.7705002}, {80.1780014,74.7803421}, {80.6670074,74.790184}}} {{79.2025223,74.8000031}} wnTs[0]=0.940463 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{80.6670074,74.790184}, {80.9113388,74.7950974}, {81.1556702,74.8000107}, {81.4000015,74.8000031}}} {{81.4000015,74.8000031}} wnTs[0]=0 {{{81.4000015,74.8000031}, {81.6438522,74.7999954}, {81.8877106,74.7989426}, {82.1315613,74.7978897}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0.99844881 {{{80.6670074,74.790184}, {80.9113388,74.7950974}, {81.1556702,74.8000107}, {81.4000015,74.8000031}}} {{81.3988647,74.8000031}} wtTs[1]=1 {{81.4000015,74.8000031}} wnTs[0]=0.928578 {{{253,74.8000031}, {68.1999969,74.8000031}}} wnTs[1]=0.928571405
|
|
debugShowCubicIntersection wtTs[0]=1 {{{81.4000015,74.8000031}, {81.6438522,74.7999954}, {81.8877106,74.7989426}, {82.1315613,74.7978897}}} {{82.1315613,74.7978897}} wnTs[0]=0 {{{82.1315613,74.7978897}, {82.6210403,74.7957764}, {83.1105194,74.7936554}, {83.5999985,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{81.4000015,74.8000031}, {81.6438522,74.7999954}, {81.8877106,74.7989426}, {82.1315613,74.7978897}}} {{81.4000015,74.8000031}} wnTs[0]=0.928571 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{82.1315613,74.7978897}, {82.6210403,74.7957764}, {83.1105194,74.7936554}, {83.5999985,74.8000031}}} {{83.5999985,74.8000031}} wnTs[0]=0 {{{83.5999985,74.8000031}, {83.9259109,74.8042297}, {84.2518234,74.8159714}, {84.5777359,74.827713}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{82.1315613,74.7978897}, {82.6210403,74.7957764}, {83.1105194,74.7936554}, {83.5999985,74.8000031}}} {{83.5999985,74.8000031}} wnTs[0]=0.916667 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{83.5999985,74.8000031}, {83.9259109,74.8042297}, {84.2518234,74.8159714}, {84.5777359,74.827713}}} {{84.5777359,74.827713}} wnTs[0]=0 {{{84.5777359,74.827713}, {84.9851608,74.842392}, {85.3925781,74.8570709}, {85.8000031,74.8570709}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{83.5999985,74.8000031}, {83.9259109,74.8042297}, {84.2518234,74.8159714}, {84.5777359,74.827713}}} {{83.5999985,74.8000031}} wnTs[0]=0.916667 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{84.5777359,74.827713}, {84.9851608,74.842392}, {85.3925781,74.8570709}, {85.8000031,74.8570709}}} {{85.8000031,74.8570709}} wnTs[0]=0 {{{85.8000031,74.8570709}, {86.2074203,74.8570709}, {86.6148453,74.842392}, {87.0222626,74.827713}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{85.8000031,74.8570709}, {86.2074203,74.8570709}, {86.6148453,74.842392}, {87.0222626,74.827713}}} {{87.0222626,74.827713}} wnTs[0]=0 {{{87.0222626,74.827713}, {87.348175,74.8159714}, {87.6740875,74.8042297}, {88,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{87.0222626,74.827713}, {87.348175,74.8159714}, {87.6740875,74.8042297}, {88,74.8000031}}} {{88,74.8000031}} wnTs[0]=0 {{{88,74.8000031}, {88.1576462,74.7979584}, {88.3152924,74.7951202}, {88.4729385,74.7922745}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{87.0222626,74.827713}, {87.348175,74.8159714}, {87.6740875,74.8042297}, {88,74.8000031}}} {{88,74.8000031}} wnTs[0]=0.892857 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{88,74.8000031}, {88.1576462,74.7979584}, {88.3152924,74.7951202}, {88.4729385,74.7922745}}} {{88.4729385,74.7922745}} wnTs[0]=0 {{{88.4729385,74.7922745}, {89.0486221,74.7818985}, {89.6243134,74.7715225}, {90.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{88,74.8000031}, {88.1576462,74.7979584}, {88.3152924,74.7951202}, {88.4729385,74.7922745}}} {{88,74.8000031}} wnTs[0]=0.892857 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{88.4729385,74.7922745}, {89.0486221,74.7818985}, {89.6243134,74.7715225}, {90.1999969,74.8000031}}} {{90.1999969,74.8000031}} wnTs[0]=0 {{{90.1999969,74.8000031}, {90.5620499,74.8179169}, {90.9241028,74.8630524}, {91.2861557,74.9081879}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{88.4729385,74.7922745}, {89.0486221,74.7818985}, {89.6243134,74.7715225}, {90.1999969,74.8000031}}} {{90.1999969,74.8000031}} wnTs[0]=0.880952 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{90.1999969,74.8000031}, {90.5620499,74.8179169}, {90.9241028,74.8630524}, {91.2861557,74.9081879}}} {{91.2861557,74.9081879}} wnTs[0]=0 {{{91.2861557,74.9081879}, {91.6574402,74.9544754}, {92.028717,75.0007629}, {92.4000015,75.0176926}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{90.1999969,74.8000031}, {90.5620499,74.8179169}, {90.9241028,74.8630524}, {91.2861557,74.9081879}}} {{90.1999969,74.8000031}} wnTs[0]=0.880952 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{91.2861557,74.9081879}, {91.6574402,74.9544754}, {92.028717,75.0007629}, {92.4000015,75.0176926}}} {{92.4000015,75.0176926}} wnTs[0]=0 {{{92.4000015,75.0176926}, {92.9111481,75.0410004}, {93.4223022,75.0278778}, {93.9334488,75.0147552}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{92.4000015,75.0176926}, {92.9111481,75.0410004}, {93.4223022,75.0278778}, {93.9334488,75.0147552}}} {{93.9334488,75.0147552}} wnTs[0]=0 {{{93.9334488,75.0147552}, {94.155632,75.0090561}, {94.3778152,75.0033493}, {94.5999985,75.0006409}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{93.9334488,75.0147552}, {94.155632,75.0090561}, {94.3778152,75.0033493}, {94.5999985,75.0006409}}} {{94.5999985,75.0006409}} wnTs[0]=0 {{{94.5999985,75.0006409}, {94.8669891,74.9973831}, {95.1339798,74.9889908}, {95.4009705,74.9806061}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{94.5999985,75.0006409}, {94.8669891,74.9973831}, {95.1339798,74.9889908}, {95.4009705,74.9806061}}} {{95.4009705,74.9806061}} wnTs[0]=0 {{{95.4009705,74.9806061}, {95.8673172,74.9659576}, {96.3336563,74.9513092}, {96.8000031,74.9639893}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{95.4009705,74.9806061}, {95.8673172,74.9659576}, {96.3336563,74.9513092}, {96.8000031,74.9639893}}} {{96.8000031,74.9639893}} wnTs[0]=0 {{{96.8000031,74.9639893}, {97.2396164,74.9759521}, {97.6792297,75.0139465}, {98.1188431,75.0519409}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{96.8000031,74.9639893}, {97.2396164,74.9759521}, {97.6792297,75.0139465}, {98.1188431,75.0519409}}} {{98.1188431,75.0519409}} wnTs[0]=0 {{{98.1188431,75.0519409}, {98.4125595,75.0773239}, {98.7062836,75.1027069}, {99,75.1203232}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{98.1188431,75.0519409}, {98.4125595,75.0773239}, {98.7062836,75.1027069}, {99,75.1203232}}} {{99,75.1203232}} wnTs[0]=0 {{{99,75.1203232}, {99.7333298,75.1643066}, {100.466667,75.2075195}, {101.199997,75.2278976}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{99,75.1203232}, {99.7333298,75.1643066}, {100.466667,75.2075195}, {101.199997,75.2278976}}} {{101.199997,75.2278976}} wnTs[0]=0 {{{101.199997,75.2278976}, {101.6632,75.2407608}, {102.126396,75.2405472}, {102.5896,75.2403336}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{101.199997,75.2278976}, {101.6632,75.2407608}, {102.126396,75.2405472}, {102.5896,75.2403336}}} {{102.5896,75.2403336}} wnTs[0]=0 {{{102.5896,75.2403336}, {102.859734,75.2402115}, {103.129868,75.2400894}, {103.400002,75.2425613}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{102.5896,75.2403336}, {102.859734,75.2402115}, {103.129868,75.2400894}, {103.400002,75.2425613}}} {{103.400002,75.2425613}} wnTs[0]=0 {{{103.400002,75.2425613}, {103.499123,75.2434692}, {103.598244,75.2443542}, {103.697365,75.2452393}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{103.400002,75.2425613}, {103.499123,75.2434692}, {103.598244,75.2443542}, {103.697365,75.2452393}}} {{103.697365,75.2452393}} wnTs[0]=0 {{{103.697365,75.2452393}, {104.331573,75.250885}, {104.96579,75.2565308}, {105.599998,75.2681274}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{103.697365,75.2452393}, {104.331573,75.250885}, {104.96579,75.2565308}, {105.599998,75.2681274}}} {{105.599998,75.2681274}} wnTs[0]=0 {{{105.599998,75.2681274}, {105.951164,75.2745514}, {106.30233,75.2846603}, {106.653496,75.2947693}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{105.599998,75.2681274}, {105.951164,75.2745514}, {106.30233,75.2846603}, {106.653496,75.2947693}}} {{106.653496,75.2947693}} wnTs[0]=0 {{{106.653496,75.2947693}, {107.035667,75.3057709}, {107.417831,75.3167725}, {107.800003,75.3230209}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{106.653496,75.2947693}, {107.035667,75.3057709}, {107.417831,75.3167725}, {107.800003,75.3230209}}} {{107.800003,75.3230209}} wnTs[0]=0 {{{107.800003,75.3230209}, {107.904305,75.3247223}, {108.008606,75.3265228}, {108.112907,75.3283234}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{107.800003,75.3230209}, {107.904305,75.3247223}, {108.008606,75.3265228}, {108.112907,75.3283234}}} {{108.112907,75.3283234}} wnTs[0]=0 {{{108.112907,75.3283234}, {108.741936,75.33918}, {109.370972,75.350029}, {110,75.340065}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{108.112907,75.3283234}, {108.741936,75.33918}, {109.370972,75.350029}, {110,75.340065}}} {{110,75.340065}} wnTs[0]=0 {{{110,75.340065}, {110.73333,75.3284454}, {111.466667,75.2919846}, {112.199997,75.2532883}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{110,75.340065}, {110.73333,75.3284454}, {111.466667,75.2919846}, {112.199997,75.2532883}}} {{112.199997,75.2532883}} wnTs[0]=0 {{{112.199997,75.2532883}, {112.524193,75.2361755}, {112.848389,75.2113037}, {113.172585,75.1864319}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{112.199997,75.2532883}, {112.524193,75.2361755}, {112.848389,75.2113037}, {113.172585,75.1864319}}} {{113.172585,75.1864319}} wnTs[0]=0 {{{113.172585,75.1864319}, {113.581726,75.1550446}, {113.99086,75.1236496}, {114.400002,75.1078644}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{113.172585,75.1864319}, {113.581726,75.1550446}, {113.99086,75.1236496}, {114.400002,75.1078644}}} {{114.400002,75.1078644}} wnTs[0]=0 {{{114.400002,75.1078644}, {115.133331,75.079567}, {115.866669,75.0734863}, {116.599998,75.0834885}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{114.400002,75.1078644}, {115.133331,75.079567}, {115.866669,75.0734863}, {116.599998,75.0834885}}} {{116.599998,75.0834885}} wnTs[0]=0 {{{116.599998,75.0834885}, {117.013039,75.089119}, {117.426071,75.1088409}, {117.839111,75.1285629}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{116.599998,75.0834885}, {117.013039,75.089119}, {117.426071,75.1088409}, {117.839111,75.1285629}}} {{117.839111,75.1285629}} wnTs[0]=0 {{{117.839111,75.1285629}, {118.159409,75.1438599}, {118.479706,75.1591568}, {118.800003,75.1678772}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{117.839111,75.1285629}, {118.159409,75.1438599}, {118.479706,75.1591568}, {118.800003,75.1678772}}} {{118.800003,75.1678772}} wnTs[0]=0 {{{118.800003,75.1678772}, {118.915619,75.1710281}, {119.031235,75.1743622}, {119.146851,75.1776962}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{118.800003,75.1678772}, {118.915619,75.1710281}, {119.031235,75.1743622}, {119.146851,75.1776962}}} {{119.146851,75.1776962}} wnTs[0]=0 {{{119.146851,75.1776962}, {119.764565,75.1954956}, {120.382286,75.2133026}, {121,75.2033386}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{119.146851,75.1776962}, {119.764565,75.1954956}, {120.382286,75.2133026}, {121,75.2033386}}} {{121,75.2033386}} wnTs[0]=0 {{{121,75.2033386}, {121.552635,75.1944351}, {122.105278,75.1614532}, {122.657913,75.1284714}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{121,75.2033386}, {121.552635,75.1944351}, {122.105278,75.1614532}, {122.657913,75.1284714}}} {{122.657913,75.1284714}} wnTs[0]=0 {{{122.657913,75.1284714}, {122.838608,75.1176834}, {123.019302,75.1068954}, {123.199997,75.0969543}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{122.657913,75.1284714}, {122.838608,75.1176834}, {123.019302,75.1068954}, {123.199997,75.0969543}}} {{123.199997,75.0969543}} wnTs[0]=0 {{{123.199997,75.0969543}, {123.480431,75.0815277}, {123.760864,75.060524}, {124.041298,75.0395203}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{123.199997,75.0969543}, {123.480431,75.0815277}, {123.760864,75.060524}, {124.041298,75.0395203}}} {{124.041298,75.0395203}} wnTs[0]=0 {{{124.041298,75.0395203}, {124.494202,75.0056076}, {124.947098,74.9716949}, {125.400002,74.9612503}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{124.041298,75.0395203}, {124.494202,75.0056076}, {124.947098,74.9716949}, {125.400002,74.9612503}}} {{125.400002,74.9612503}} wnTs[0]=0 {{{125.400002,74.9612503}, {126.133331,74.9443436}, {126.866669,74.9602585}, {127.599998,74.9955215}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{125.400002,74.9612503}, {126.133331,74.9443436}, {126.866669,74.9602585}, {127.599998,74.9955215}}} {{127.599998,74.9955215}} wnTs[0]=0 {{{127.599998,74.9955215}, {128.17691,75.023262}, {128.75383,75.0766068}, {129.33075,75.1299438}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{127.599998,74.9955215}, {128.17691,75.023262}, {128.75383,75.0766068}, {129.33075,75.1299438}}} {{129.33075,75.1299438}} wnTs[0]=0 {{{129.33075,75.1299438}, {129.487167,75.1444092}, {129.643585,75.1588745}, {129.800003,75.1728287}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{129.33075,75.1299438}, {129.487167,75.1444092}, {129.643585,75.1588745}, {129.800003,75.1728287}}} {{129.800003,75.1728287}} wnTs[0]=0 {{{129.800003,75.1728287}, {130.08493,75.1982422}, {130.369843,75.2303619}, {130.65477,75.2624817}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{129.800003,75.1728287}, {130.08493,75.1982422}, {130.369843,75.2303619}, {130.65477,75.2624817}}} {{130.65477,75.2624817}} wnTs[0]=0 {{{130.65477,75.2624817}, {131.10318,75.3130264}, {131.55159,75.3635712}, {132,75.3879776}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{130.65477,75.2624817}, {131.10318,75.3130264}, {131.55159,75.3635712}, {132,75.3879776}}} {{132,75.3879776}} wnTs[0]=0 {{{132,75.3879776}, {132.682098,75.4251099}, {133.364182,75.4193726}, {134.04628,75.4136353}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{132,75.3879776}, {132.682098,75.4251099}, {133.364182,75.4193726}, {134.04628,75.4136353}}} {{134.04628,75.4136353}} wnTs[0]=0 {{{134.04628,75.4136353}, {134.199997,75.4123535}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{134.199997,75.4123535}, {134.740479,75.4080048}, {135.28096,75.3897247}, {135.821426,75.3714523}}} {{134.199997,75.4123535}} wnTs[0]=1 {{{134.04628,75.4136353}, {134.199997,75.4123535}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{134.199997,75.4123535}, {134.740479,75.4080048}, {135.28096,75.3897247}, {135.821426,75.3714523}}} {{135.821426,75.3714523}} wnTs[0]=0 {{{135.821426,75.3714523}, {136.014282,75.3649292}, {136.207138,75.3584061}, {136.399994,75.3525162}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{135.821426,75.3714523}, {136.014282,75.3649292}, {136.207138,75.3584061}, {136.399994,75.3525162}}} {{136.399994,75.3525162}} wnTs[0]=0 {{{136.399994,75.3525162}, {136.723831,75.3426285}, {137.047668,75.3308029}, {137.371506,75.3189697}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{136.399994,75.3525162}, {136.723831,75.3426285}, {137.047668,75.3308029}, {137.371506,75.3189697}}} {{137.371506,75.3189697}} wnTs[0]=0 {{{137.371506,75.3189697}, {137.781006,75.3040085}, {138.190506,75.2890472}, {138.600006,75.2780228}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{137.371506,75.3189697}, {137.781006,75.3040085}, {138.190506,75.2890472}, {138.600006,75.2780228}}} {{138.600006,75.2780228}} wnTs[0]=0 {{{138.600006,75.2780228}, {138.775055,75.2733078}, {138.950119,75.2678604}, {139.125183,75.262413}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{138.600006,75.2780228}, {138.775055,75.2733078}, {138.950119,75.2678604}, {139.125183,75.262413}}} {{139.125183,75.262413}} wnTs[0]=0 {{{139.125183,75.262413}, {139.683456,75.2450409}, {140.24173,75.2276688}, {140.800003,75.2340317}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{139.125183,75.262413}, {139.683456,75.2450409}, {140.24173,75.2276688}, {140.800003,75.2340317}}} {{140.800003,75.2340317}} wnTs[0]=0 {{{140.800003,75.2340317}, {141.173523,75.2382889}, {141.547028,75.259819}, {141.920547,75.2813568}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{140.800003,75.2340317}, {141.173523,75.2382889}, {141.547028,75.259819}, {141.920547,75.2813568}}} {{141.920547,75.2813568}} wnTs[0]=0 {{{141.920547,75.2813568}, {142.280365,75.3021011}, {142.640182,75.3228455}, {143,75.3281403}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{141.920547,75.2813568}, {142.280365,75.3021011}, {142.640182,75.3228455}, {143,75.3281403}}} {{143,75.3281403}} wnTs[0]=0 {{{143,75.3281403}, {143.733337,75.3389359}, {144.46666,75.3424072}, {145.199997,75.2988205}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{143,75.3281403}, {143.733337,75.3389359}, {144.46666,75.3424072}, {145.199997,75.2988205}}} {{145.199997,75.2988205}} wnTs[0]=0 {{{145.199997,75.2988205}, {145.574966,75.276535}, {145.949936,75.2288513}, {146.32489,75.1811676}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{145.199997,75.2988205}, {145.574966,75.276535}, {145.949936,75.2288513}, {146.32489,75.1811676}}} {{146.32489,75.1811676}} wnTs[0]=0 {{{146.32489,75.1811676}, {146.683258,75.1355896}, {147.041626,75.0900192}, {147.399994,75.0666199}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{146.32489,75.1811676}, {146.683258,75.1355896}, {147.041626,75.0900192}, {147.399994,75.0666199}}} {{147.399994,75.0666199}} wnTs[0]=0 {{{147.399994,75.0666199}, {148.133331,75.0187454}, {148.866669,74.9981079}, {149.600006,75.0115509}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{147.399994,75.0666199}, {148.133331,75.0187454}, {148.866669,74.9981079}, {149.600006,75.0115509}}} {{149.600006,75.0115509}} wnTs[0]=0 {{{149.600006,75.0115509}, {149.982086,75.0185547}, {150.364182,75.0495148}, {150.746277,75.0804749}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{149.600006,75.0115509}, {149.982086,75.0185547}, {150.364182,75.0495148}, {150.746277,75.0804749}}} {{150.746277,75.0804749}} wnTs[0]=0 {{{150.746277,75.0804749}, {151.097519,75.1089401}, {151.448761,75.1374054}, {151.800003,75.1472549}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{150.746277,75.0804749}, {151.097519,75.1089401}, {151.448761,75.1374054}, {151.800003,75.1472549}}} {{151.800003,75.1472549}} wnTs[0]=0 {{{151.800003,75.1472549}, {152.343307,75.1624985}, {152.886597,75.1531296}, {153.429901,75.1437607}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{151.800003,75.1472549}, {152.343307,75.1624985}, {152.886597,75.1531296}, {153.429901,75.1437607}}} {{153.429901,75.1437607}} wnTs[0]=0 {{{153.429901,75.1437607}, {153.619934,75.14048}, {153.809967,75.137207}, {154,75.1349792}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{153.429901,75.1437607}, {153.619934,75.14048}, {153.809967,75.137207}, {154,75.1349792}}} {{154,75.1349792}} wnTs[0]=0 {{{154,75.1349792}, {154.295746,75.1315155}, {154.591476,75.123848}, {154.887222,75.1161804}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{154,75.1349792}, {154.295746,75.1315155}, {154.591476,75.123848}, {154.887222,75.1161804}}} {{154.887222,75.1161804}} wnTs[0]=0 {{{154.887222,75.1161804}, {155.324814,75.1048279}, {155.762405,75.0934753}, {156.199997,75.0957642}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{154.887222,75.1161804}, {155.324814,75.1048279}, {155.762405,75.0934753}, {156.199997,75.0957642}}} {{156.199997,75.0957642}} wnTs[0]=0 {{{156.199997,75.0957642}, {156.559143,75.097641}, {156.918289,75.1122131}, {157.27742,75.1267853}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{156.199997,75.0957642}, {156.559143,75.097641}, {156.918289,75.1122131}, {157.27742,75.1267853}}} {{157.27742,75.1267853}} wnTs[0]=0 {{{157.27742,75.1267853}, {157.651611,75.1419754}, {158.025803,75.1571655}, {158.399994,75.1579895}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{157.27742,75.1267853}, {157.651611,75.1419754}, {158.025803,75.1571655}, {158.399994,75.1579895}}} {{158.399994,75.1579895}} wnTs[0]=0 {{{158.399994,75.1579895}, {159.133331,75.1596069}, {159.866669,75.1515121}, {160.600006,75.105484}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{158.399994,75.1579895}, {159.133331,75.1596069}, {159.866669,75.1515121}, {160.600006,75.105484}}} {{160.600006,75.105484}} wnTs[0]=0 {{{160.600006,75.105484}, {160.952393,75.0833588}, {161.304794,75.0397339}, {161.657196,74.996109}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{160.600006,75.105484}, {160.952393,75.0833588}, {161.304794,75.0397339}, {161.657196,74.996109}}} {{161.657196,74.996109}} wnTs[0]=0 {{{161.657196,74.996109}, {162.038132,74.9489594}, {162.419067,74.9018021}, {162.800003,74.8818054}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{161.657196,74.996109}, {162.038132,74.9489594}, {162.419067,74.9018021}, {162.800003,74.8818054}}} {{162.800003,74.8818054}} wnTs[0]=0 {{{162.800003,74.8818054}, {163.53334,74.8433075}, {164.266663,74.8363724}, {165,74.8744736}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{162.800003,74.8818054}, {163.53334,74.8433075}, {164.266663,74.8363724}, {165,74.8744736}}} {{165,74.8744736}} wnTs[0]=0 {{{165,74.8744736}, {165.356293,74.8929825}, {165.712585,74.9419861}, {166.068878,74.9909897}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{165,74.8744736}, {165.356293,74.8929825}, {165.712585,74.9419861}, {166.068878,74.9909897}}} {{166.068878,74.9909897}} wnTs[0]=0 {{{166.068878,74.9909897}, {166.445923,75.0428467}, {166.822952,75.0947037}, {167.199997,75.1104279}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{166.068878,74.9909897}, {166.445923,75.0428467}, {166.822952,75.0947037}, {167.199997,75.1104279}}} {{167.199997,75.1104279}} wnTs[0]=0 {{{167.199997,75.1104279}, {167.933334,75.1409988}, {168.666672,75.1096573}, {169.399994,75.0579224}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{167.199997,75.1104279}, {167.933334,75.1409988}, {168.666672,75.1096573}, {169.399994,75.0579224}}} {{169.399994,75.0579224}} wnTs[0]=0 {{{169.399994,75.0579224}, {169.752808,75.0330276}, {170.105621,74.982338}, {170.458435,74.9316483}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{169.399994,75.0579224}, {169.752808,75.0330276}, {170.105621,74.982338}, {170.458435,74.9316483}}} {{170.458435,74.9316483}} wnTs[0]=0 {{{170.458435,74.9316483}, {170.838959,74.8769836}, {171.219482,74.8223114}, {171.600006,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{170.458435,74.9316483}, {170.838959,74.8769836}, {171.219482,74.8223114}, {171.600006,74.8000031}}} {{171.600006,74.8000031}} wnTs[0]=0 {{{171.600006,74.8000031}, {172.333328,74.757019}, {173.066666,74.7623062}, {173.800003,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{170.458435,74.9316483}, {170.838959,74.8769836}, {171.219482,74.8223114}, {171.600006,74.8000031}}} {{171.600006,74.8000031}} wnTs[0]=0.440476 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{171.600006,74.8000031}, {172.333328,74.757019}, {173.066666,74.7623062}, {173.800003,74.8000031}}} {{173.800003,74.8000031}} wnTs[0]=0 {{{173.800003,74.8000031}, {174.500809,74.8360367}, {175.201599,74.9249344}, {175.902405,75.0138397}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{171.600006,74.8000031}, {172.333328,74.757019}, {173.066666,74.7623062}, {173.800003,74.8000031}}} {{171.600006,74.8000031}} wtTs[1]=1 {{173.800003,74.8000031}} wnTs[0]=0.440476 {{{253,74.8000031}, {68.1999969,74.8000031}}} wnTs[1]=0.428571405
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{173.800003,74.8000031}, {174.500809,74.8360367}, {175.201599,74.9249344}, {175.902405,75.0138397}}} {{175.902405,75.0138397}} wnTs[0]=0 {{{175.902405,75.0138397}, {176,75.0262146}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{173.800003,74.8000031}, {174.500809,74.8360367}, {175.201599,74.9249344}, {175.902405,75.0138397}}} {{173.800003,74.8000031}} wnTs[0]=0.428571 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{176,75.0262146}, {176.306427,75.0650406}, {176.612839,75.1189728}, {176.919266,75.1729126}}} {{176,75.0262146}} wnTs[0]=1 {{{175.902405,75.0138397}, {176,75.0262146}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{176,75.0262146}, {176.306427,75.0650406}, {176.612839,75.1189728}, {176.919266,75.1729126}}} {{176.919266,75.1729126}} wnTs[0]=0 {{{176.919266,75.1729126}, {177.346176,75.2480545}, {177.773087,75.3231964}, {178.199997,75.3574677}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{176.919266,75.1729126}, {177.346176,75.2480545}, {177.773087,75.3231964}, {178.199997,75.3574677}}} {{178.199997,75.3574677}} wnTs[0]=0 {{{178.199997,75.3574677}, {178.933334,75.4163361}, {179.666672,75.4057388}, {180.399994,75.3794556}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{178.199997,75.3574677}, {178.933334,75.4163361}, {179.666672,75.4057388}, {180.399994,75.3794556}}} {{180.399994,75.3794556}} wnTs[0]=0 {{{180.399994,75.3794556}, {180.822174,75.3643265}, {181.244354,75.322731}, {181.666534,75.2811356}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{180.399994,75.3794556}, {180.822174,75.3643265}, {181.244354,75.322731}, {181.666534,75.2811356}}} {{181.666534,75.2811356}} wnTs[0]=0 {{{181.666534,75.2811356}, {181.977692,75.2504807}, {182.288849,75.2198257}, {182.600006,75.1997681}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{181.666534,75.2811356}, {181.977692,75.2504807}, {182.288849,75.2198257}, {182.600006,75.1997681}}} {{182.600006,75.1997681}} wnTs[0]=0 {{{182.600006,75.1997681}, {183.153549,75.1640701}, {183.707108,75.1412506}, {184.260666,75.1184311}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{182.600006,75.1997681}, {183.153549,75.1640701}, {183.707108,75.1412506}, {184.260666,75.1184311}}} {{184.260666,75.1184311}} wnTs[0]=0 {{{184.260666,75.1184311}, {184.440445,75.1110229}, {184.620224,75.1036148}, {184.800003,75.0957642}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{184.260666,75.1184311}, {184.440445,75.1110229}, {184.620224,75.1036148}, {184.800003,75.0957642}}} {{184.800003,75.0957642}} wnTs[0]=0 {{{184.800003,75.0957642}, {185.53334,75.0637436}, {186.266663,75.0331039}, {187,75.0076218}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{184.800003,75.0957642}, {185.53334,75.0637436}, {186.266663,75.0331039}, {187,75.0076218}}} {{187,75.0076218}} wnTs[0]=0 {{{187,75.0076218}, {187.218643,75.0000229}, {187.437286,74.9894943}, {187.65593,74.9789658}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{187,75.0076218}, {187.218643,75.0000229}, {187.437286,74.9894943}, {187.65593,74.9789658}}} {{187.65593,74.9789658}} wnTs[0]=0 {{{187.65593,74.9789658}, {188.170624,74.9541702}, {188.685303,74.9293747}, {189.199997,74.9428329}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{187.65593,74.9789658}, {188.170624,74.9541702}, {188.685303,74.9293747}, {189.199997,74.9428329}}} {{189.199997,74.9428329}} wnTs[0]=0 {{{189.199997,74.9428329}, {189.560562,74.9522629}, {189.921127,74.9923019}, {190.281693,75.032341}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{189.199997,74.9428329}, {189.560562,74.9522629}, {189.921127,74.9923019}, {190.281693,75.032341}}} {{190.281693,75.032341}} wnTs[0]=0 {{{190.281693,75.032341}, {190.654465,75.0737381}, {191.027237,75.1151352}, {191.399994,75.1227036}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{190.281693,75.032341}, {190.654465,75.0737381}, {191.027237,75.1151352}, {191.399994,75.1227036}}} {{191.399994,75.1227036}} wnTs[0]=0 {{{191.399994,75.1227036}, {191.942627,75.1337204}, {192.48526,75.0998383}, {193.027893,75.0659485}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{191.399994,75.1227036}, {191.942627,75.1337204}, {192.48526,75.0998383}, {193.027893,75.0659485}}} {{193.027893,75.0659485}} wnTs[0]=0 {{{193.027893,75.0659485}, {193.218597,75.054039}, {193.409302,75.0421295}, {193.600006,75.0321732}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{193.027893,75.0659485}, {193.218597,75.054039}, {193.409302,75.0421295}, {193.600006,75.0321732}}} {{193.600006,75.0321732}} wnTs[0]=0 {{{193.600006,75.0321732}, {193.897125,75.016655}, {194.19426,74.9936142}, {194.491394,74.9705658}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{193.600006,75.0321732}, {193.897125,75.016655}, {194.19426,74.9936142}, {194.491394,74.9705658}}} {{194.491394,74.9705658}} wnTs[0]=0 {{{194.491394,74.9705658}, {194.927597,74.9367371}, {195.3638,74.9029083}, {195.800003,74.8928909}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{194.491394,74.9705658}, {194.927597,74.9367371}, {195.3638,74.9029083}, {195.800003,74.8928909}}} {{195.800003,74.8928909}} wnTs[0]=0 {{{195.800003,74.8928909}, {196.363327,74.8799515}, {196.926636,74.8978424}, {197.48996,74.9157333}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{195.800003,74.8928909}, {196.363327,74.8799515}, {196.926636,74.8978424}, {197.48996,74.9157333}}} {{197.48996,74.9157333}} wnTs[0]=0 {{{197.48996,74.9157333}, {197.659973,74.9211349}, {197.829987,74.9265366}, {198,74.9310913}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{197.48996,74.9157333}, {197.659973,74.9211349}, {197.829987,74.9265366}, {198,74.9310913}}} {{198,74.9310913}} wnTs[0]=0 {{{198,74.9310913}, {198.539948,74.945549}, {199.07988,74.9668427}, {199.619827,74.9881363}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{198,74.9310913}, {198.539948,74.945549}, {199.07988,74.9668427}, {199.619827,74.9881363}}} {{199.619827,74.9881363}} wnTs[0]=0 {{{199.619827,74.9881363}, {199.813217,74.9957657}, {200.006607,75.0033951}, {200.199997,75.0107117}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{199.619827,74.9881363}, {199.813217,74.9957657}, {200.006607,75.0033951}, {200.199997,75.0107117}}} {{200.199997,75.0107117}} wnTs[0]=0 {{{200.199997,75.0107117}, {200.468765,75.020874}, {200.737534,75.032814}, {201.006287,75.0447464}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{200.199997,75.0107117}, {200.468765,75.020874}, {200.737534,75.032814}, {201.006287,75.0447464}}} {{201.006287,75.0447464}} wnTs[0]=0 {{{201.006287,75.0447464}, {201.470856,75.0653763}, {201.935425,75.0860062}, {202.399994,75.0974884}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{201.006287,75.0447464}, {201.470856,75.0653763}, {201.935425,75.0860062}, {202.399994,75.0974884}}} {{202.399994,75.0974884}} wnTs[0]=0 {{{202.399994,75.0974884}, {202.888885,75.1095734}, {203.377777,75.1120605}, {203.866669,75.1145554}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{202.399994,75.0974884}, {202.888885,75.1095734}, {203.377777,75.1120605}, {203.866669,75.1145554}}} {{203.866669,75.1145554}} wnTs[0]=0 {{{203.866669,75.1145554}, {204.111115,75.115799}, {204.35556,75.1170425}, {204.600006,75.1194839}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{203.866669,75.1145554}, {204.111115,75.115799}, {204.35556,75.1170425}, {204.600006,75.1194839}}} {{204.600006,75.1194839}} wnTs[0]=0 {{{204.600006,75.1194839}, {204.84462,75.121933}, {205.089233,75.1239471}, {205.333847,75.1259613}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{204.600006,75.1194839}, {204.84462,75.121933}, {205.089233,75.1239471}, {205.333847,75.1259613}}} {{205.333847,75.1259613}} wnTs[0]=0 {{{205.333847,75.1259613}, {205.822556,75.129982}, {206.311279,75.1340103}, {206.800003,75.1414719}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{205.333847,75.1259613}, {205.822556,75.129982}, {206.311279,75.1340103}, {206.800003,75.1414719}}} {{206.800003,75.1414719}} wnTs[0]=0 {{{206.800003,75.1414719}, {207.53334,75.1526718}, {208.266663,75.1675339}, {209,75.1866531}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{206.800003,75.1414719}, {207.53334,75.1526718}, {208.266663,75.1675339}, {209,75.1866531}}} {{209,75.1866531}} wnTs[0]=0 {{{209,75.1866531}, {209.350708,75.1957932}, {209.701416,75.2080078}, {210.052124,75.2202225}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{209,75.1866531}, {209.350708,75.1957932}, {209.701416,75.2080078}, {210.052124,75.2202225}}} {{210.052124,75.2202225}} wnTs[0]=0 {{{210.052124,75.2202225}, {210.434753,75.2335434}, {210.817368,75.2468643}, {211.199997,75.2562027}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{210.052124,75.2202225}, {210.434753,75.2335434}, {210.817368,75.2468643}, {211.199997,75.2562027}}} {{211.199997,75.2562027}} wnTs[0]=0 {{{211.199997,75.2562027}, {211.933334,75.2741013}, {212.666672,75.2871475}, {213.399994,75.2940521}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{211.199997,75.2562027}, {211.933334,75.2741013}, {212.666672,75.2871475}, {213.399994,75.2940521}}} {{213.399994,75.2940521}} wnTs[0]=0 {{{213.399994,75.2940521}, {214.133331,75.3009567}, {214.866669,75.3041916}, {215.600006,75.2976303}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{213.399994,75.2940521}, {214.133331,75.3009567}, {214.866669,75.3041916}, {215.600006,75.2976303}}} {{215.600006,75.2976303}} wnTs[0]=0 {{{215.600006,75.2976303}, {216.076187,75.2933655}, {216.552383,75.2823792}, {217.02858,75.2713928}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{215.600006,75.2976303}, {216.076187,75.2933655}, {216.552383,75.2823792}, {217.02858,75.2713928}}} {{217.02858,75.2713928}} wnTs[0]=0 {{{217.02858,75.2713928}, {217.285721,75.2654572}, {217.542862,75.2595291}, {217.800003,75.2546539}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{217.02858,75.2713928}, {217.285721,75.2654572}, {217.542862,75.2595291}, {217.800003,75.2546539}}} {{217.800003,75.2546539}} wnTs[0]=0 {{{217.800003,75.2546539}, {218.041779,75.2500763}, {218.283554,75.2413101}, {218.52533,75.2325439}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{217.800003,75.2546539}, {218.041779,75.2500763}, {218.283554,75.2413101}, {218.52533,75.2325439}}} {{218.52533,75.2325439}} wnTs[0]=0 {{{218.52533,75.2325439}, {219.016891,75.2147217}, {219.508438,75.1968994}, {220,75.2142487}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{218.52533,75.2325439}, {219.016891,75.2147217}, {219.508438,75.1968994}, {220,75.2142487}}} {{220,75.2142487}} wnTs[0]=0 {{{220,75.2142487}, {220.409988,75.2287216}, {220.819977,75.2736588}, {221.229965,75.3185959}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{220,75.2142487}, {220.409988,75.2287216}, {220.819977,75.2736588}, {221.229965,75.3185959}}} {{221.229965,75.3185959}} wnTs[0]=0 {{{221.229965,75.3185959}, {221.553314,75.3540344}, {221.876648,75.389473}, {222.199997,75.4099731}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{221.229965,75.3185959}, {221.553314,75.3540344}, {221.876648,75.389473}, {222.199997,75.4099731}}} {{222.199997,75.4099731}} wnTs[0]=0 {{{222.199997,75.4099731}, {222.933334,75.456459}, {223.666672,75.4962387}, {224.399994,75.4931717}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{222.199997,75.4099731}, {222.933334,75.456459}, {223.666672,75.4962387}, {224.399994,75.4931717}}} {{224.399994,75.4931717}} wnTs[0]=0 {{{224.399994,75.4931717}, {224.885803,75.4911423}, {225.371613,75.4618988}, {225.857422,75.4326553}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{224.399994,75.4931717}, {224.885803,75.4911423}, {225.371613,75.4618988}, {225.857422,75.4326553}}} {{225.857422,75.4326553}} wnTs[0]=0 {{{225.857422,75.4326553}, {226.10495,75.4177551}, {226.352478,75.4028549}, {226.600006,75.3915558}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{225.857422,75.4326553}, {226.10495,75.4177551}, {226.352478,75.4028549}, {226.600006,75.3915558}}} {{226.600006,75.3915558}} wnTs[0]=0 {{{226.600006,75.3915558}, {226.839722,75.3806152}, {227.079437,75.3675385}, {227.319153,75.354454}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{226.600006,75.3915558}, {226.839722,75.3806152}, {227.079437,75.3675385}, {227.319153,75.354454}}} {{227.319153,75.354454}} wnTs[0]=0 {{{227.319153,75.354454}, {227.812759,75.3275223}, {228.306381,75.3005905}, {228.800003,75.2923279}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{227.319153,75.354454}, {227.812759,75.3275223}, {228.306381,75.3005905}, {228.800003,75.2923279}}} {{228.800003,75.2923279}} wnTs[0]=0 {{{228.800003,75.2923279}, {229.309921,75.2837906}, {229.819824,75.2945709}, {230.329742,75.3053513}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{228.800003,75.2923279}, {229.309921,75.2837906}, {229.819824,75.2945709}, {230.329742,75.3053513}}} {{230.329742,75.3053513}} wnTs[0]=0 {{{230.329742,75.3053513}, {230.553162,75.3100739}, {230.776581,75.3147964}, {231,75.317894}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{230.329742,75.3053513}, {230.553162,75.3100739}, {230.776581,75.3147964}, {231,75.317894}}} {{231,75.317894}} wnTs[0]=0 {{{231,75.317894}, {231.290405,75.3219223}, {231.580811,75.3275833}, {231.871216,75.333252}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{231,75.317894}, {231.290405,75.3219223}, {231.580811,75.3275833}, {231.871216,75.333252}}} {{231.871216,75.333252}} wnTs[0]=0 {{{231.871216,75.333252}, {232.314148,75.3418884}, {232.757065,75.3505249}, {233.199997,75.3533554}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{231.871216,75.333252}, {232.314148,75.3418884}, {232.757065,75.3505249}, {233.199997,75.3533554}}} {{233.199997,75.3533554}} wnTs[0]=0 {{{233.199997,75.3533554}, {233.933334,75.3580399}, {234.666672,75.3606873}, {235.399994,75.3460236}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{233.199997,75.3533554}, {233.933334,75.3580399}, {234.666672,75.3606873}, {235.399994,75.3460236}}} {{235.399994,75.3460236}} wnTs[0]=0 {{{235.399994,75.3460236}, {235.845032,75.3371277}, {236.29007,75.3182449}, {236.735107,75.2993622}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{235.399994,75.3460236}, {235.845032,75.3371277}, {236.29007,75.3182449}, {236.735107,75.2993622}}} {{236.735107,75.2993622}} wnTs[0]=0 {{{236.735107,75.2993622}, {237.023407,75.2871323}, {237.311707,75.2749023}, {237.600006,75.2653885}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{236.735107,75.2993622}, {237.023407,75.2871323}, {237.311707,75.2749023}, {237.600006,75.2653885}}} {{237.600006,75.2653885}} wnTs[0]=0 {{{237.600006,75.2653885}, {238.333328,75.2411804}, {239.066666,75.2196732}, {239.800003,75.2007828}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{237.600006,75.2653885}, {238.333328,75.2411804}, {239.066666,75.2196732}, {239.800003,75.2007828}}} {{239.800003,75.2007828}} wnTs[0]=0 {{{239.800003,75.2007828}, {240.082169,75.193512}, {240.364334,75.1891708}, {240.6465,75.1848297}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{239.800003,75.2007828}, {240.082169,75.193512}, {240.364334,75.1891708}, {240.6465,75.1848297}}} {{240.6465,75.1848297}} wnTs[0]=0 {{{240.6465,75.1848297}, {241.097672,75.177887}, {241.548828,75.1709366}, {242,75.1520233}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{240.6465,75.1848297}, {241.097672,75.177887}, {241.548828,75.1709366}, {242,75.1520233}}} {{242,75.1520233}} wnTs[0]=0 {{{242,75.1520233}, {242.416458,75.1345673}, {242.832916,75.1057968}, {243.249374,75.0770187}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{242,75.1520233}, {242.416458,75.1345673}, {242.832916,75.1057968}, {243.249374,75.0770187}}} {{243.249374,75.0770187}} wnTs[0]=0 {{{243.249374,75.0770187}, {243.566254,75.0551224}, {243.883118,75.033226}, {244.199997,75.0163193}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{243.249374,75.0770187}, {243.566254,75.0551224}, {243.883118,75.033226}, {244.199997,75.0163193}}} {{244.199997,75.0163193}} wnTs[0]=0 {{{244.199997,75.0163193}, {244.933334,74.9771957}, {245.666672,74.9453659}, {246.399994,74.9172668}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{244.199997,75.0163193}, {244.933334,74.9771957}, {245.666672,74.9453659}, {246.399994,74.9172668}}} {{246.399994,74.9172668}} wnTs[0]=0 {{{246.399994,74.9172668}, {247.133331,74.8891678}, {247.866669,74.8672562}, {248.600006,74.8477097}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{246.399994,74.9172668}, {247.133331,74.8891678}, {247.866669,74.8672562}, {248.600006,74.8477097}}} {{248.600006,74.8477097}} wnTs[0]=0 {{{248.600006,74.8477097}, {248.714218,74.8446655}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{248.714218,74.8446655}, {249.40947,74.8261032}, {250.104736,74.8075485}, {250.800003,74.8000031}}} {{248.714218,74.8446655}} wnTs[0]=1 {{{248.600006,74.8477097}, {248.714218,74.8446655}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{248.714218,74.8446655}, {249.40947,74.8261032}, {250.104736,74.8075485}, {250.800003,74.8000031}}} {{250.800003,74.8000031}} wnTs[0]=0 {{{250.800003,74.8000031}, {251.288895,74.7947006}, {251.777771,74.7964706}, {252.266663,74.798233}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{248.714218,74.8446655}, {249.40947,74.8261032}, {250.104736,74.8075485}, {250.800003,74.8000031}}} {{250.800003,74.8000031}} wnTs[0]=0.0119047 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicIntersection wtTs[0]=1 {{{250.800003,74.8000031}, {251.288895,74.7947006}, {251.777771,74.7964706}, {252.266663,74.798233}}} {{252.266663,74.798233}} wnTs[0]=0 {{{252.266663,74.798233}, {252.511108,74.799118}, {252.755554,74.8000031}, {253,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=0 {{{250.800003,74.8000031}, {251.288895,74.7947006}, {251.777771,74.7964706}, {252.266663,74.798233}}} {{250.800003,74.8000031}} wnTs[0]=0.0119047 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
debugShowCubicLineIntersection wtTs[0]=1 {{{252.266663,74.798233}, {252.511108,74.799118}, {252.755554,74.8000031}, {253,74.8000031}}} {{253,74.8000031}} wnTs[0]=0 {{{253,74.8000031}, {68.1999969,74.8000031}}}
|
|
SkOpSegment::addT insert t=0.928577558 segID=299 spanID=623
|
|
SkOpSegment::addT insert t=0.99844881 segID=12 spanID=624
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var testDivs = [
|
|
issue3651_7,
|
|
|
|
];
|
|
|
|
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;
|
|
var drawnPts, drawnLines, drawnQuads, drawnConics, drawnCubics;
|
|
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;
|
|
var draw_coincidence = false;
|
|
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;
|
|
var draw_top = false;
|
|
var draw_path = 3;
|
|
var draw_computed = 0;
|
|
var retina_scale = !!window.devicePixelRatio;
|
|
|
|
var activeCount = 0;
|
|
var addCount = 0;
|
|
var angleCount = 0;
|
|
var coinCount = 0;
|
|
var opCount = 0;
|
|
var sectCount = 0;
|
|
var sortCount = 0;
|
|
var topCount = 0;
|
|
var markCount = 0;
|
|
var activeMax = 0;
|
|
var addMax = 0;
|
|
var angleMax = 0;
|
|
var coinMax = 0;
|
|
var sectMax = 0;
|
|
var sectMax2 = 0;
|
|
var sortMax = 0;
|
|
var topMax = 0;
|
|
var markMax = 0;
|
|
var opMax = 0;
|
|
var stepMax = 0;
|
|
var lastIndex = 0;
|
|
var hasPath = false;
|
|
var hasComputedPath = false;
|
|
var angleBetween = false;
|
|
var afterIndex = 0;
|
|
|
|
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;
|
|
|
|
var SPAN_L_T = SPAN_Y2 + 1;
|
|
var SPAN_L_TX = SPAN_L_T + 1;
|
|
var SPAN_L_TY = SPAN_L_TX + 1;
|
|
var SPAN_L_TEND = SPAN_L_TY + 1;
|
|
var SPAN_L_OTHER = SPAN_L_TEND + 1;
|
|
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;
|
|
|
|
var SPAN_Q_T = SPAN_Y3 + 1;
|
|
var SPAN_Q_TX = SPAN_Q_T + 1;
|
|
var SPAN_Q_TY = SPAN_Q_TX + 1;
|
|
var SPAN_Q_TEND = SPAN_Q_TY + 1;
|
|
var SPAN_Q_OTHER = SPAN_Q_TEND + 1;
|
|
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;
|
|
|
|
var SPAN_K_W = SPAN_Y3 + 1;
|
|
var SPAN_K_T = SPAN_K_W + 1;
|
|
var SPAN_K_TX = SPAN_K_T + 1;
|
|
var SPAN_K_TY = SPAN_K_TX + 1;
|
|
var SPAN_K_TEND = SPAN_K_TY + 1;
|
|
var SPAN_K_OTHER = SPAN_K_TEND + 1;
|
|
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;
|
|
|
|
var SPAN_X4 = SPAN_Y3 + 1;
|
|
var SPAN_Y4 = SPAN_X4 + 1;
|
|
|
|
var SPAN_C_T = SPAN_Y4 + 1;
|
|
var SPAN_C_TX = SPAN_C_T + 1;
|
|
var SPAN_C_TY = SPAN_C_TX + 1;
|
|
var SPAN_C_TEND = SPAN_C_TY + 1;
|
|
var SPAN_C_OTHER = SPAN_C_TEND + 1;
|
|
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;
|
|
var ACTIVE_CONIC_SPAN = ACTIVE_QUAD_SPAN + 1;
|
|
var ACTIVE_CUBIC_SPAN = ACTIVE_CONIC_SPAN + 1;
|
|
|
|
var ADD_MOVETO = ACTIVE_CUBIC_SPAN + 1;
|
|
var ADD_LINETO = ADD_MOVETO + 1;
|
|
var ADD_QUADTO = ADD_LINETO + 1;
|
|
var ADD_CONICTO = ADD_QUADTO + 1;
|
|
var ADD_CUBICTO = ADD_CONICTO + 1;
|
|
var ADD_CLOSE = ADD_CUBICTO + 1;
|
|
var ADD_FILL = ADD_CLOSE + 1;
|
|
|
|
var PATH_LINE = ADD_FILL + 1;
|
|
var PATH_QUAD = PATH_LINE + 1;
|
|
var PATH_CONIC = PATH_QUAD + 1;
|
|
var PATH_CUBIC = PATH_CONIC + 1;
|
|
|
|
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;
|
|
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;
|
|
var INTERSECT_CONIC = INTERSECT_CONIC_LINE_NO + 1;
|
|
var INTERSECT_CONIC_2 = INTERSECT_CONIC + 1;
|
|
var INTERSECT_CONIC_NO = INTERSECT_CONIC_2 + 1;
|
|
var INTERSECT_SELF_CUBIC = INTERSECT_CONIC_NO + 1;
|
|
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;
|
|
var MARK_CONIC = MARK_QUAD + 1;
|
|
var MARK_CUBIC = MARK_CONIC + 1;
|
|
var MARK_DONE_LINE = MARK_CUBIC + 1;
|
|
var MARK_DONE_QUAD = MARK_DONE_LINE + 1;
|
|
var MARK_DONE_CONIC = MARK_DONE_QUAD + 1;
|
|
var MARK_DONE_CUBIC = MARK_DONE_CONIC + 1;
|
|
var MARK_UNSORTABLE_LINE = MARK_DONE_CUBIC + 1;
|
|
var MARK_UNSORTABLE_QUAD = MARK_UNSORTABLE_LINE + 1;
|
|
var MARK_UNSORTABLE_CONIC = MARK_UNSORTABLE_QUAD + 1;
|
|
var MARK_UNSORTABLE_CUBIC = MARK_UNSORTABLE_CONIC + 1;
|
|
var MARK_SIMPLE_LINE = MARK_UNSORTABLE_CUBIC + 1;
|
|
var MARK_SIMPLE_QUAD = MARK_SIMPLE_LINE + 1;
|
|
var MARK_SIMPLE_CONIC = MARK_SIMPLE_QUAD + 1;
|
|
var MARK_SIMPLE_CUBIC = MARK_SIMPLE_CONIC + 1;
|
|
var MARK_SIMPLE_DONE_LINE = MARK_SIMPLE_CUBIC + 1;
|
|
var MARK_SIMPLE_DONE_QUAD = MARK_SIMPLE_DONE_LINE + 1;
|
|
var MARK_SIMPLE_DONE_CONIC = MARK_SIMPLE_DONE_QUAD + 1;
|
|
var MARK_SIMPLE_DONE_CUBIC = MARK_SIMPLE_DONE_CONIC + 1;
|
|
var MARK_DONE_UNARY_LINE = MARK_SIMPLE_DONE_CUBIC + 1;
|
|
var MARK_DONE_UNARY_QUAD = MARK_DONE_UNARY_LINE + 1;
|
|
var MARK_DONE_UNARY_CONIC = MARK_DONE_UNARY_QUAD + 1;
|
|
var MARK_DONE_UNARY_CUBIC = MARK_DONE_UNARY_CONIC + 1;
|
|
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;
|
|
|
|
var ANGLE_AFTER = COMPUTED_SET_2 + 1;
|
|
var ANGLE_AFTERPART = ANGLE_AFTER + 1;
|
|
|
|
var ACTIVE_OP = ANGLE_AFTERPART + 1;
|
|
|
|
var COIN_MAIN_SPAN = ACTIVE_OP + 1;
|
|
var COIN_OPP_SPAN = COIN_MAIN_SPAN + 1;
|
|
|
|
var FRAG_TYPE_LAST = COIN_OPP_SPAN;
|
|
|
|
var REC_TYPE_UNKNOWN = -1;
|
|
var REC_TYPE_PATH = 0;
|
|
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;
|
|
var REC_TYPE_TOP = 13;
|
|
var REC_TYPE_COINCIDENCE = 14;
|
|
var REC_TYPE_LAST = REC_TYPE_COINCIDENCE;
|
|
|
|
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\\)");
|
|
escape = escape.replace(/CONIC_VAL/g, "\\(P_VAL P_VAL P_VAL W_VAL\\)");
|
|
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");
|
|
escape = escape.replace(/PTR_VAL/g, "0x[0-9A-F]+");
|
|
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+)?)");
|
|
escape = escape.replace(/W_VAL/g, "(-?\\d+\\.?\\d*(?:e-?\\d+)?)[Ff]?");
|
|
escape = escape.replace(/PATH/g, "pathB?");
|
|
escape = escape.replace(/IDX/g, "(-?\\d+)");
|
|
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 \\*\\*\\*");
|
|
escape = escape.replace(/CUBIC_VAL/g, "(?:\\$\\d = )?\\{\\{\\{P_VAL\\}, \\{P_VAL\\}, \\{P_VAL\\}, \\{P_VAL\\}\\}\\}");
|
|
escape = escape.replace(/CONIC_VAL/g, "(?:\\$\\d = )?\\{\\{\\{\\{P_VAL\\}, \\{P_VAL\\}, \\{P_VAL\\}\\}\\}, W_VAL\\}");
|
|
escape = escape.replace(/QUAD_VAL/g, "(?:\\$\\d = )?\\{\\{\\{P_VAL\\}, \\{P_VAL\\}, \\{P_VAL\\}\\}\\}");
|
|
escape = escape.replace(/LINE_VAL/g, "(?:\\$\\d = )?\\{\\{\\{P_VAL\\}, \\{P_VAL\\}\\}\\}");
|
|
escape = escape.replace(/FILL_TYPE/g, "SkPath::k[a-zA-Z]+_FillType");
|
|
escape = escape.replace(/PTR_VAL/g, "0x[0-9A-F]+");
|
|
escape = escape.replace(/PT_VAL/g, "\\{\\{P_VAL\\}\\}");
|
|
escape = escape.replace(/P_VAL/g, "(?:f?[xX] = )?(-?\\d+\\.?\\d*(?:e-?\\d+)?)[Ff]?, *(?: f?[yY] = )?(-?\\d+\\.?\\d*(?:e-?\\d+)?)[Ff]?");
|
|
escape = escape.replace(/T_VAL/g, "(-?\\d+\\.?\\d*(?:e-?\\d+)?)");
|
|
escape = escape.replace(/W_VAL/g, "(-?\\d+\\.?\\d*(?:e-?\\d+)?)[Ff]?");
|
|
escape = escape.replace(/OPER/g, "[a-z]+");
|
|
escape = escape.replace(/PATH/g, "pathB?");
|
|
escape = escape.replace(/T_F/g, "([TF])");
|
|
escape = escape.replace(/IDX/g, "(-?\\d+)");
|
|
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);
|
|
}
|
|
var coinStart = "SkOpCoincidence::";
|
|
if (line.lastIndexOf(coinStart, 0) === 0) {
|
|
line = line.substr(coinStart.length);
|
|
}
|
|
var type = line.lastIndexOf("debugShowActiveSpans", 0) === 0 ? REC_TYPE_ACTIVE
|
|
: line.lastIndexOf("debugShowCoincidence", 0) === 0 ? REC_TYPE_COINCIDENCE
|
|
: line.lastIndexOf("((SkOpSegment*)", 0) === 0 ? REC_TYPE_PATH2
|
|
: line.lastIndexOf("debugShowTs", 0) === 0 ? REC_TYPE_COIN
|
|
: line.lastIndexOf("afterPart", 0) === 0 ? REC_TYPE_AFTERPART
|
|
: 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
|
|
: line.lastIndexOf("dumpOne", 0) === 0 ? REC_TYPE_SORT
|
|
: line.lastIndexOf("findTop", 0) === 0 ? REC_TYPE_TOP
|
|
: 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
|
|
: line.lastIndexOf("seg=", 0) === 0 ? REC_TYPE_PATH
|
|
: 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" +
|
|
" id=IDX LINE_VAL t=T_VAL PT_VAL tEnd=T_VAL windSum=OPT windValue=IDX"
|
|
) || match_regexp(line, lineNo, record, ACTIVE_QUAD_SPAN, "debugShowActiveSpans" +
|
|
" id=IDX QUAD_VAL t=T_VAL PT_VAL tEnd=T_VAL windSum=OPT windValue=IDX"
|
|
) || match_regexp(line, lineNo, record, ACTIVE_CONIC_SPAN, "debugShowActiveSpans" +
|
|
" id=IDX CONIC_VAL t=T_VAL PT_VAL tEnd=T_VAL windSum=OPT windValue=IDX"
|
|
) || match_regexp(line, lineNo, record, ACTIVE_CUBIC_SPAN, "debugShowActiveSpans" +
|
|
" id=IDX CUBIC_VAL t=T_VAL PT_VAL tEnd=T_VAL windSum=OPT windValue=IDX"
|
|
) || match_regexp(line, lineNo, record, ACTIVE_LINE_SPAN, "debugShowActiveSpans" +
|
|
" id=IDX LINE_VAL t=T_VAL PT_VAL tEnd=T_VAL windSum=OPT oppSum=OPT windValue=IDX oppValue=NUM"
|
|
) || match_regexp(line, lineNo, record, ACTIVE_QUAD_SPAN, "debugShowActiveSpans" +
|
|
" id=IDX QUAD_VAL t=T_VAL PT_VAL tEnd=T_VAL windSum=OPT oppSum=OPT windValue=IDX oppValue=NUM"
|
|
) || match_regexp(line, lineNo, record, ACTIVE_CONIC_SPAN, "debugShowActiveSpans" +
|
|
" id=IDX CONIC_VAL t=T_VAL PT_VAL tEnd=T_VAL windSum=OPT oppSum=OPT windValue=IDX oppValue=NUM"
|
|
) || match_regexp(line, lineNo, record, ACTIVE_CUBIC_SPAN, "debugShowActiveSpans" +
|
|
" id=IDX CUBIC_VAL t=T_VAL PT_VAL tEnd=T_VAL windSum=OPT oppSum=OPT windValue=IDX oppValue=NUM"
|
|
);
|
|
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;
|
|
} 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;
|
|
} 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;
|
|
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")
|
|
|| match_regexp(line, lineNo, record, PATH_CONIC, "afterPart CONIC_VAL")
|
|
|| match_regexp(line, lineNo, record, PATH_CUBIC, "afterPart CUBIC_VAL")
|
|
break;
|
|
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;
|
|
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;
|
|
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,"
|
|
) || match_regexp(line, lineNo, record, PATH_CONIC, " CONIC_VAL,"
|
|
) || match_regexp(line, lineNo, record, PATH_CUBIC, " CUBIC_VAL,"
|
|
);
|
|
break;
|
|
case REC_TYPE_PATH:
|
|
found = match_regexp(line, lineNo, record, PATH_LINE, "seg=IDX LINE_VAL"
|
|
) || match_regexp(line, lineNo, record, PATH_QUAD, "seg=IDX QUAD_VAL"
|
|
) || match_regexp(line, lineNo, record, PATH_CONIC, "seg=IDX CONIC_VAL"
|
|
) || 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}"
|
|
) || match_regexp(line, lineNo, record, PATH_CONIC, "((SkOpSegment*) PTR_VAL) [IDX] {CONIC_VAL}"
|
|
) || match_regexp(line, lineNo, record, PATH_CUBIC, "((SkOpSegment*) PTR_VAL) [IDX] {CUBIC_VAL}"
|
|
);
|
|
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"
|
|
) || 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"
|
|
) || 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"
|
|
) || 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;
|
|
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;
|
|
case REC_TYPE_MARK:
|
|
found = match_regexp(line, lineNo, record, MARK_LINE, "markWinding" +
|
|
" id=IDX LINE_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_QUAD, "markWinding" +
|
|
" id=IDX QUAD_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_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"
|
|
) || match_regexp(line, lineNo, record, MARK_CUBIC, "markWinding" +
|
|
" 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"
|
|
) || 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"
|
|
) || 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"
|
|
) || 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"
|
|
) || 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"
|
|
) || 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" +
|
|
" last segment=IDX span=IDX"
|
|
) || match_regexp(line, lineNo, record, MARK_ANGLE_LAST, "markAngle" +
|
|
" last segment=IDX span=IDX windSum=OPT");
|
|
break;
|
|
case REC_TYPE_OP:
|
|
if (line.lastIndexOf("oppSign oppSign=", 0) === 0
|
|
|| line.lastIndexOf("operator<", 0) === 0) {
|
|
found = true;
|
|
break;
|
|
}
|
|
found = match_regexp(line, lineNo, record, OP_DIFFERENCE, "op diff"
|
|
) || match_regexp(line, lineNo, record, OP_INTERSECT, "op intersect"
|
|
) || match_regexp(line, lineNo, record, OP_INTERSECT, "op sect"
|
|
) || 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;
|
|
hasPath = hasComputedPath = false;
|
|
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) {
|
|
case REC_TYPE_COMPUTED:
|
|
if (fragType == COMPUTED_SET_1 || fragType == COMPUTED_SET_2) {
|
|
break;
|
|
}
|
|
hasComputedPath = true;
|
|
case REC_TYPE_PATH:
|
|
first = 1;
|
|
switch (fragType) {
|
|
case PATH_LINE:
|
|
last = 5;
|
|
break;
|
|
case PATH_CONIC:
|
|
case PATH_QUAD:
|
|
last = 7;
|
|
break;
|
|
case PATH_CUBIC:
|
|
last = 9;
|
|
break;
|
|
default:
|
|
console.log("unknown " + (recType == REC_TYPE_PATH ? "REC_TYPE_PATH"
|
|
: "REC_TYPE_COMPUTED") + " frag type:" + fragType);
|
|
throw "stop execution";
|
|
}
|
|
if (recType == REC_TYPE_PATH) {
|
|
hasPath = true;
|
|
}
|
|
break;
|
|
case REC_TYPE_PATH2:
|
|
first = 1;
|
|
switch (fragType) {
|
|
case PATH_LINE:
|
|
last = 5;
|
|
break;
|
|
case PATH_CONIC:
|
|
case PATH_QUAD:
|
|
last = 7;
|
|
break;
|
|
case PATH_CUBIC:
|
|
last = 9;
|
|
break;
|
|
default:
|
|
console.log("unknown " + (recType == REC_TYPE_PATH2 ? "REC_TYPE_PATH2"
|
|
: "REC_TYPE_COMPUTED") + " frag type:" + fragType);
|
|
throw "stop execution";
|
|
}
|
|
if (recType == REC_TYPE_PATH2) {
|
|
hasPath = true;
|
|
}
|
|
break;
|
|
case REC_TYPE_ACTIVE:
|
|
if (firstActiveSpan < 0) {
|
|
firstActiveSpan = tIndex;
|
|
}
|
|
first = 1;
|
|
switch (fragType) {
|
|
case ACTIVE_LINE_SPAN:
|
|
last = 5;
|
|
break;
|
|
case ACTIVE_CONIC_SPAN:
|
|
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;
|
|
case ADD_CONICTO:
|
|
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;
|
|
case REC_TYPE_AFTERPART:
|
|
switch (fragType) {
|
|
case PATH_LINE:
|
|
last = 4;
|
|
break;
|
|
case PATH_CONIC:
|
|
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;
|
|
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;
|
|
case INTERSECT_CONIC_LINE:
|
|
first = 1; last = 7; first2 = 11; last2 = 15;
|
|
break;
|
|
case INTERSECT_QUAD_LINE:
|
|
first = 1; last = 7; first2 = 10; last2 = 14;
|
|
break;
|
|
case INTERSECT_CONIC_LINE_2:
|
|
first = 1; last = 7; first2 = 14; last2 = 18;
|
|
break;
|
|
case INTERSECT_QUAD_LINE_2:
|
|
first = 1; last = 7; first2 = 13; last2 = 17;
|
|
break;
|
|
case INTERSECT_CONIC_LINE_NO:
|
|
first = 0; last = 6; first2 = 7; last2 = 11;
|
|
break;
|
|
case INTERSECT_QUAD_LINE_NO:
|
|
first = 0; last = 6; first2 = 6; last2 = 10;
|
|
break;
|
|
case INTERSECT_CONIC:
|
|
first = 1; last = 7; first2 = 11; last2 = 17;
|
|
break;
|
|
case INTERSECT_QUAD:
|
|
first = 1; last = 7; first2 = 10; last2 = 16;
|
|
break;
|
|
case INTERSECT_CONIC_2:
|
|
first = 1; last = 7; first2 = 14; last2 = 20;
|
|
break;
|
|
case INTERSECT_QUAD_2:
|
|
first = 1; last = 7; first2 = 13; last2 = 19;
|
|
break;
|
|
case INTERSECT_CONIC_NO:
|
|
first = 0; last = 6; first2 = 7; last2 = 13;
|
|
break;
|
|
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;
|
|
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;
|
|
}
|
|
{
|
|
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;
|
|
case REC_TYPE_COINCIDENCE:
|
|
if (!draw_coincidence) {
|
|
break;
|
|
}
|
|
{
|
|
var curve = curvePartialByID(test, frags[0], frags[1], frags[2]);
|
|
curve_extremes(curve, angleBounds);
|
|
}
|
|
break;
|
|
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;
|
|
case REC_TYPE_TOP:
|
|
if (!draw_top) {
|
|
break;
|
|
}
|
|
{
|
|
var curve = curvePartialByID(test, frags[0], frags[1], frags[2]);
|
|
curve_extremes(curve, angleBounds);
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
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) {
|
|
draw_computed = 7; // show quadratics, conics, and cubics
|
|
}
|
|
if (hasPath == true && hasComputedPath == false && draw_computed) {
|
|
draw_computed = 0;
|
|
}
|
|
}
|
|
|
|
function curveByID(test, id) {
|
|
var tIndex = -3;
|
|
while ((tIndex += 3) < test.length) {
|
|
var recType = test[tIndex];
|
|
if (recType == REC_TYPE_OP) {
|
|
continue;
|
|
}
|
|
if (recType != REC_TYPE_PATH) {
|
|
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) {
|
|
case PATH_LINE:
|
|
return [frags[1], frags[2], frags[3], frags[4]];
|
|
case PATH_QUAD:
|
|
return [frags[1], frags[2], frags[3], frags[4],
|
|
frags[5], frags[6]];
|
|
case PATH_CONIC:
|
|
return [frags[1], frags[2], frags[3], frags[4],
|
|
frags[5], frags[6], frags[7]];
|
|
case PATH_CUBIC:
|
|
return [frags[1], frags[2], frags[3], frags[4],
|
|
frags[5], frags[6], frags[7], frags[8]];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return [];
|
|
}
|
|
|
|
function curvePartialByID(test, id, t0, t1) {
|
|
var tIndex = -3;
|
|
while ((tIndex += 3) < test.length) {
|
|
var recType = test[tIndex];
|
|
if (recType == REC_TYPE_OP) {
|
|
continue;
|
|
}
|
|
if (recType != REC_TYPE_PATH) {
|
|
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) {
|
|
case PATH_LINE:
|
|
return linePartial(frags[1], frags[2], frags[3], frags[4], t0, t1);
|
|
case PATH_QUAD:
|
|
return quadPartial(frags[1], frags[2], frags[3], frags[4],
|
|
frags[5], frags[6], t0, t1);
|
|
case PATH_CONIC:
|
|
return conicPartial(frags[1], frags[2], frags[3], frags[4],
|
|
frags[5], frags[6], frags[7], t0, t1);
|
|
case PATH_CUBIC:
|
|
return cubicPartial(frags[1], frags[2], frags[3], frags[4],
|
|
frags[5], frags[6], frags[7], frags[8], t0, t1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return [];
|
|
}
|
|
|
|
function idByCurve(test, frag, type) {
|
|
var tIndex = 0;
|
|
while (tIndex < test.length) {
|
|
var recType = test[tIndex];
|
|
if (recType != REC_TYPE_PATH) {
|
|
++tIndex;
|
|
continue;
|
|
}
|
|
var records = test[tIndex + 2];
|
|
for (var recordIndex = 0; recordIndex < records.length; recordIndex += 2) {
|
|
var fragType = records[recordIndex];
|
|
var frags = records[recordIndex + 1];
|
|
if (frag.length != frags.length - 1) {
|
|
continue;
|
|
}
|
|
switch (fragType) {
|
|
case PATH_LINE:
|
|
if (frag[0] != frags[1] || frag[1] != frags[2]
|
|
|| frag[2] != frags[3] || frag[3] != frags[4]) {
|
|
continue;
|
|
}
|
|
return frags[0];
|
|
case PATH_QUAD:
|
|
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];
|
|
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];
|
|
case PATH_CUBIC:
|
|
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;
|
|
}
|
|
|
|
function curve_extremes(curve, bounds) {
|
|
var length = curve.length == 7 ? 6 : curve.length;
|
|
for (var index = 0; index < curve.length; index += 2) {
|
|
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) {
|
|
var length = drawnPts.length == 7 ? 6 : drawnPts.length;
|
|
for (var pts = 0; pts < length; pts += 2) {
|
|
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);
|
|
}
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
function drawPoints(ptArray, curveType, drawControls) {
|
|
var count = coordCount(curveType);
|
|
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;
|
|
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;
|
|
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;
|
|
}
|
|
|
|
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();
|
|
}
|
|
|
|
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]
|
|
&& x2 == drawnCubics[pts + 2] && y2 == drawnCubics[pts + 3]
|
|
&& x3 == drawnCubics[pts + 4] && y3 == drawnCubics[pts + 5]
|
|
&& 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 partW = (1 + dt * (w - 1)) / Math.sqrt(dt * dt + 2 * dt * dt_1 * w + dt_1 * dt_1);
|
|
var array = [
|
|
ax / az, ay / az, bx / bz, by / bz, cx / cz, cy / cz, partW
|
|
];
|
|
return array;
|
|
}
|
|
|
|
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_);
|
|
}
|
|
|
|
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]
|
|
&& x2 == drawnCubics[pts + 2] && y2 == drawnCubics[pts + 3]
|
|
&& x3 == drawnCubics[pts + 4] && y3 == drawnCubics[pts + 5]
|
|
&& 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;
|
|
}
|
|
|
|
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;
|
|
case 7:
|
|
drawConicWithQuads(c[0], c[1], c[2], c[3], c[4], c[5], c[6]);
|
|
break;
|
|
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];
|
|
var length = pts.length == 7 ? 6 : pts.length;
|
|
for (var idx = 2; idx < length; idx += 2) {
|
|
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];
|
|
var length = pts.length == 7 ? 6 : pts.length;
|
|
for (var idx = 3; idx < length; idx += 2) {
|
|
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];
|
|
if (dx == 0 && dy == 0 && pts.length == 8) {
|
|
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];
|
|
} 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;
|
|
} 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;
|
|
}
|
|
|
|
function drawArrow(x, y, dx, dy, s) {
|
|
var dscale = scalexy(dx, dy, 1 / scale * 100 * s);
|
|
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];
|
|
}
|
|
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);
|
|
}
|
|
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];
|
|
}
|
|
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);
|
|
}
|
|
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);
|
|
}
|
|
|
|
function drawQuadPartialID(id, x1, y1, x2, y2, x3, y3, t1, t2) {
|
|
var curve = [x1, y1, x2, y2, x3, y3];
|
|
drawCurvePartialID(id, curve, t1, t2);
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
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);
|
|
drawArrow(curve[0], curve[1], d.x, d.y, 1);
|
|
if (draw_deriviatives == 2) {
|
|
d = dxy_at_t(curve, type, 1);
|
|
if (type == PATH_CUBIC) {
|
|
drawArrow(curve[6], curve[7], d.x, d.y, 1);
|
|
} else {
|
|
drawArrow(curve[4], curve[5], d.x, d.y, 1);
|
|
}
|
|
}
|
|
if (draw_midpoint) {
|
|
var mid = pointAtT(curve, type, 0.5);
|
|
d = dxy_at_t(curve, type, 0.5);
|
|
drawArrow(mid.x, mid.y, d.x, d.y, 1);
|
|
}
|
|
}
|
|
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 = "{{";
|
|
var length = curve.length == 7 ? 6 : curve.length;
|
|
if (curve.length == 7) {
|
|
str += "{";
|
|
}
|
|
for (i = 0; i < length; i += 2) {
|
|
str += curve[i].toFixed(decimal_places) + "," + curve[i + 1].toFixed(decimal_places);
|
|
if (i < curve.length - 2) {
|
|
str += "}, {";
|
|
}
|
|
}
|
|
str += "}";
|
|
if (curve.length == 7) {
|
|
str += "}, " + curve[6].toFixed(decimal_places);
|
|
}
|
|
str += "}";
|
|
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;
|
|
var lastCoin = 0;
|
|
var lastSect = 0;
|
|
var lastSort = 0;
|
|
var lastMark = 0;
|
|
var lastTop = 0;
|
|
activeCount = 0;
|
|
addCount = 0;
|
|
angleCount = 0;
|
|
opCount = 0;
|
|
sectCount = 0;
|
|
sortCount = 0;
|
|
topCount = 0;
|
|
markCount = 0;
|
|
activeMax = 0;
|
|
addMax = 0;
|
|
angleMax = 0;
|
|
coinMax = 0;
|
|
opMax = 0;
|
|
sectMax = 0;
|
|
sectMax2 = 0;
|
|
sortMax = 0;
|
|
topMax = 0;
|
|
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;
|
|
}
|
|
if (recType == REC_TYPE_PATH2 && hasOp) {
|
|
secondPath = tIndex;
|
|
}
|
|
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;
|
|
}
|
|
if (recType == REC_TYPE_AFTERPART) {
|
|
if (draw_angle != 3 || !inStepRange) {
|
|
continue;
|
|
}
|
|
lastAngle = tIndex;
|
|
++angleCount;
|
|
bumpStep = true;
|
|
}
|
|
if (recType == REC_TYPE_ANGLE) {
|
|
++angleMax;
|
|
if (draw_angle == 0 || draw_angle == 3 || !inStepRange) {
|
|
continue;
|
|
}
|
|
lastAngle = tIndex;
|
|
++angleCount;
|
|
bumpStep = true;
|
|
}
|
|
if (recType == REC_TYPE_COINCIDENCE) {
|
|
++coinMax;
|
|
if (!draw_coincidence || !inStepRange) {
|
|
continue;
|
|
}
|
|
lastCoin = tIndex;
|
|
++coinCount;
|
|
bumpStep = true;
|
|
}
|
|
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:
|
|
case INTERSECT_CONIC_LINE:
|
|
case INTERSECT_CONIC:
|
|
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:
|
|
case INTERSECT_CONIC_LINE_2:
|
|
case INTERSECT_CONIC_2:
|
|
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:
|
|
case INTERSECT_CONIC_LINE_NO:
|
|
case INTERSECT_CONIC_NO:
|
|
case INTERSECT_SELF_CUBIC_NO:
|
|
case INTERSECT_CUBIC_LINE_NO:
|
|
case INTERSECT_CUBIC_QUAD_NO:
|
|
case INTERSECT_CUBIC_NO:
|
|
sectBump = 0;
|
|
break;
|
|
case INTERSECT_CUBIC_LINE_3:
|
|
case INTERSECT_CUBIC_QUAD_3:
|
|
case INTERSECT_CUBIC_3:
|
|
sectBump = 3;
|
|
break;
|
|
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;
|
|
}
|
|
if (recType == REC_TYPE_TOP) {
|
|
++topMax;
|
|
if (!draw_top || !inStepRange) {
|
|
continue;
|
|
}
|
|
lastTop = tIndex;
|
|
++topCount;
|
|
bumpStep = true;
|
|
}
|
|
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)
|
|
+ (draw_angle ? angleMax : 0)
|
|
+ (draw_coincidence ? coinMax : 0)
|
|
+ (draw_op ? opMax : 0)
|
|
+ (draw_sort ? sortMax : 0)
|
|
+ (draw_top ? topMax : 0)
|
|
+ (draw_mark ? markMax : 0)
|
|
+ (draw_intersection == 2 ? sectMax : draw_intersection == 3 ? sectMax2 : 0);
|
|
if (stepMax == 0) {
|
|
stepMax = addMax + activeMax + angleMax + coinMax + opMax + sortMax + topMax + markMax;
|
|
}
|
|
drawnPts = [];
|
|
drawnLines = [];
|
|
drawnQuads = [];
|
|
drawnConics = [];
|
|
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:
|
|
if ((draw_computed & 0x9) == 1 || ((draw_computed & 8) != 0
|
|
&& (draw_computed & 7) == pathIndex)) {
|
|
drawQuad(frags[0], frags[1], frags[2], frags[3],
|
|
frags[4], frags[5]);
|
|
drawThis = true;
|
|
}
|
|
break;
|
|
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;
|
|
case PATH_CUBIC:
|
|
if ((draw_computed & 0xC) == 4 || ((draw_computed & 8) != 0
|
|
&& (draw_computed & 7) == pathIndex)) {
|
|
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;
|
|
case REC_TYPE_PATH:
|
|
case REC_TYPE_PATH2:
|
|
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";
|
|
var frags2 = [];
|
|
switch (fragType) {
|
|
case PATH_LINE:
|
|
for (var i = 0; i < 4; ++ i) { frags2[i] = frags[i + 1]; }
|
|
drawLine(frags2[0], frags2[1], frags2[2], frags2[3]);
|
|
break;
|
|
case PATH_QUAD:
|
|
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]);
|
|
break;
|
|
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;
|
|
case PATH_CUBIC:
|
|
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]);
|
|
break;
|
|
default:
|
|
console.log("unknown REC_TYPE_PATH2 frag type: " + fragType);
|
|
throw "stop execution";
|
|
}
|
|
if (collect_bounds) {
|
|
break;
|
|
}
|
|
drawCurveSpecials(test, frags2, fragType);
|
|
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];
|
|
var x3, y3, x3, y4, t1, t2, w;
|
|
ctx.lineWidth = 3;
|
|
ctx.strokeStyle = "rgba(0,0,255, 0.3)";
|
|
focus_enabled = true;
|
|
switch (fragType) {
|
|
case ACTIVE_LINE_SPAN:
|
|
t1 = frags[SPAN_L_T];
|
|
t2 = frags[SPAN_L_TEND];
|
|
drawLinePartial(x1, y1, x2, y2, t1, t2);
|
|
if (draw_id) {
|
|
drawLinePartialID(frags[0], x1, y1, x2, y2, t1, t2);
|
|
}
|
|
break;
|
|
case ACTIVE_QUAD_SPAN:
|
|
x3 = frags[SPAN_X3];
|
|
y3 = frags[SPAN_Y3];
|
|
t1 = frags[SPAN_Q_T];
|
|
t2 = frags[SPAN_Q_TEND];
|
|
drawQuadPartial(x1, y1, x2, y2, x3, y3, t1, t2);
|
|
if (draw_id) {
|
|
drawQuadPartialID(frags[0], x1, y1, x2, y2, x3, y3, t1, t2);
|
|
}
|
|
break;
|
|
case ACTIVE_CONIC_SPAN:
|
|
x3 = frags[SPAN_X3];
|
|
y3 = frags[SPAN_Y3];
|
|
t1 = frags[SPAN_K_T];
|
|
t2 = frags[SPAN_K_TEND];
|
|
w = frags[SPAN_K_W];
|
|
drawConicPartial(x1, y1, x2, y2, x3, y3, w, t1, t2);
|
|
if (draw_id) {
|
|
drawConicPartialID(frags[0], x1, y1, x2, y2, x3, y3, w, t1, t2);
|
|
}
|
|
break;
|
|
case ACTIVE_CUBIC_SPAN:
|
|
x3 = frags[SPAN_X3];
|
|
y3 = frags[SPAN_Y3];
|
|
x4 = frags[SPAN_X4];
|
|
y4 = frags[SPAN_Y4];
|
|
t1 = frags[SPAN_C_T];
|
|
t2 = frags[SPAN_C_TEND];
|
|
drawCubicPartial(x1, y1, x2, y2, x3, y3, x4, y4, t1, t2);
|
|
if (draw_id) {
|
|
drawCubicPartialID(frags[0], x1, y1, x2, y2, x3, y3, x4, y4, t1, t2);
|
|
}
|
|
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;
|
|
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;
|
|
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:
|
|
angleBetween = frags[18] == "T";
|
|
afterIndex = 0;
|
|
if (draw_angle == 0 || draw_angle == 3 || (step_limit > 0 && tIndex < lastAngle)) {
|
|
continue;
|
|
}
|
|
focus_enabled = true;
|
|
ctx.lineWidth = 3;
|
|
ctx.strokeStyle = "rgba(127,45,127, 0.3)";
|
|
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]);
|
|
drawCurve(leftCurve);
|
|
drawCurve(rightCurve);
|
|
ctx.strokeStyle = angleBetween ? "rgba(0,160,45, 0.3)" : "rgba(255,0,45, 0.5)";
|
|
drawCurve(midCurve);
|
|
if (draw_angle > 1) {
|
|
drawOrder(leftCurve, 'L');
|
|
drawOrder(rightCurve, 'R');
|
|
}
|
|
break;
|
|
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;
|
|
case PATH_CONIC:
|
|
drawConicWithQuads(frags[0], frags[1], frags[2], frags[3],
|
|
frags[4], frags[5], frags[6]);
|
|
break;
|
|
case PATH_CUBIC:
|
|
drawCubic(frags[0], frags[1], frags[2], frags[3],
|
|
frags[4], frags[5], frags[6], frags[7]);
|
|
break;
|
|
default:
|
|
console.log("unknown REC_TYPE_AFTERPART frag type: " + fragType);
|
|
throw "stop execution";
|
|
}
|
|
++afterIndex;
|
|
break;
|
|
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;
|
|
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;
|
|
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;
|
|
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;
|
|
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) {
|
|
case 4:
|
|
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;
|
|
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;
|
|
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;
|
|
case 4:
|
|
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;
|
|
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;
|
|
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;
|
|
}
|
|
if (draw_intersection != 3 || step_limit == 0 || tIndex >= lastSect) {
|
|
for (var idx = 0; idx < f.length; idx += 4) {
|
|
drawPoint(frags[f[idx]], frags[f[idx + 1]], true);
|
|
}
|
|
}
|
|
if (!draw_intersectT) {
|
|
break;
|
|
}
|
|
ctx.fillStyle = "red";
|
|
if (draw_intersection != 3 || step_limit == 0 || tIndex >= lastSect) {
|
|
for (var idx = 0; idx < f.length; idx += 4) {
|
|
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;
|
|
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;
|
|
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;
|
|
var drawSomething = draw_add | draw_active | draw_angle | draw_coincidence | draw_sort | draw_mark;
|
|
// 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);
|
|
drawBox(pos++, "rgba(127,127,0, 0.3)", "black", draw_coincidence ? coinCount : coinMax, draw_coincidence, coincidenceKey);
|
|
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);
|
|
drawBox(pos++, "rgba(127,127,0, 0.3)", "black", draw_top ? topCount : topMax, draw_top, topKey);
|
|
drawBox(pos++, "rgba(127,0,127, 0.3)", "black", draw_mark ? markCount : markMax, draw_mark, markKey);
|
|
drawBox(pos++, "black", "white",
|
|
(new Array('P', 'P1', 'P2', 'P'))[draw_path], draw_path != 0, pathKey);
|
|
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;
|
|
var tgt = e.target || e.srcElement;
|
|
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);
|
|
console.log(" { {" + curveToString(curve) + "}, "
|
|
+ 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';
|
|
var coincidenceKey = 'C';
|
|
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';
|
|
var topKey = 'T';
|
|
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;
|
|
redraw();
|
|
break;
|
|
case addKey:
|
|
draw_add ^= true;
|
|
redraw();
|
|
break;
|
|
case angleKey:
|
|
draw_angle = (draw_angle + 1) % 4;
|
|
redraw();
|
|
break;
|
|
case angleBackKey:
|
|
draw_angle = (draw_angle + 2) % 3;
|
|
redraw();
|
|
break;
|
|
case centerKey:
|
|
setScale(xmin, xmax, ymin, ymax);
|
|
redraw();
|
|
break;
|
|
case coincidenceKey:
|
|
draw_coincidence ^= true;
|
|
redraw();
|
|
break;
|
|
case controlLinesBackKey:
|
|
control_lines = (control_lines + 3) % 4;
|
|
redraw();
|
|
break;
|
|
case controlLinesKey:
|
|
control_lines = (control_lines + 1) % 4;
|
|
redraw();
|
|
break;
|
|
case computedBackKey:
|
|
draw_computed = (draw_computed + 5) % 6;
|
|
redraw();
|
|
break;
|
|
case computedKey:
|
|
draw_computed = (draw_computed + 1) % 6;
|
|
redraw();
|
|
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;
|
|
redraw();
|
|
break;
|
|
case intersectionKey:
|
|
draw_intersection = (draw_intersection + 1) % 4;
|
|
redraw();
|
|
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:
|
|
draw_path = (draw_path + 1) % 4;
|
|
redraw();
|
|
break;
|
|
case pathBackKey:
|
|
draw_path = (draw_path + 3) % 4;
|
|
redraw();
|
|
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;
|
|
case topKey:
|
|
draw_top ^= true;
|
|
redraw();
|
|
break;
|
|
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
|
|
window.onpageshow = window.onpagehide
|
|
= window.onfocus = window.onblur = onchange;
|
|
|
|
function onchange (evt) {
|
|
var v = 'visible', h = 'hidden',
|
|
evtMap = {
|
|
focus:v, focusin:v, pageshow:v, blur:h, focusout:h, pagehide:h
|
|
};
|
|
|
|
evt = evt || window.event;
|
|
if (evt.type in evtMap)
|
|
document.body.className = evtMap[evt.type];
|
|
else
|
|
document.body.className = this[hidden] ? "hidden" : "visible";
|
|
}
|
|
})();
|
|
|
|
function calcXY() {
|
|
var e = window.event;
|
|
var tgt = e.target || e.srcElement;
|
|
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>
|