diff --git a/ChangeLog.txt b/ChangeLog.txt index 36bebc0e0..3997bb2f2 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -22,6 +22,7 @@ - Improve visualization for tools. - Fix calculating an elliptical arc. - Enable Approximation scale option for Elliptical arc. +- Fix bug in seam allowance. # Valentina 0.7.51 April 18, 2022 - Z value change for a layout piece. diff --git a/src/libs/vlayout/vabstractpiece.cpp b/src/libs/vlayout/vabstractpiece.cpp index 199bbbe82..456f0401b 100644 --- a/src/libs/vlayout/vabstractpiece.cpp +++ b/src/libs/vlayout/vabstractpiece.cpp @@ -1350,6 +1350,31 @@ auto VAbstractPiece::EkvPoint(QVector points, const VSAPoint &p1Lin return points; } + QLineF edge1(p2Line2, p1Line2); + QLineF edge2(p2Line1, p1Line1); + qreal a = edge2.angleTo(edge1); + + if (a >= 175 && a <= 185 && not VFuzzyComparePossibleNulls(p2Line1.GetSABefore(width), p2Line1.GetSAAfter(width))) + { + QLineF ray = edge2; + ray.setAngle(ray.angle() - a/2); + ray.setLength(width*2); + + QPointF crosPoint; + QLineF::IntersectType type = Intersects(ray, bigLine1, &crosPoint ); + if (type != QLineF::NoIntersection) + { + points.append(crosPoint); + } + + type = Intersects(ray, bigLine2, &crosPoint ); + if (type != QLineF::NoIntersection) + { + points.append(crosPoint); + } + return points; + } + QPointF crosPoint; const QLineF::IntersectType type = Intersects(bigLine1, bigLine2, &crosPoint ); diff --git a/src/test/ValentinaTest/share/hood_1/input.json b/src/test/ValentinaTest/share/hood_1/input.json new file mode 100644 index 000000000..7ff47d702 --- /dev/null +++ b/src/test/ValentinaTest/share/hood_1/input.json @@ -0,0 +1,692 @@ +{ + "vector": [ + { + "saBefore": 75.59055118110237, + "type": "VSAPoint", + "x": 2627.1423614144, + "y": -41.0734190894232 + }, + { + "saBefore": 75.59055118110237, + "type": "VSAPoint", + "x": 2627.1423614144, + "y": -41.0734190894232 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2635.1790266333514, + "y": -23.265436071814456 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2649.726867265343, + "y": 7.331914319654528 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2672.3632832506, + "y": 51.90022739122702 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2704.109099056205, + "y": 108.90233139339804 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2737.365061196452, + "y": 163.75473572371808 + }, + { + "type": "VSAPoint", + "x": 2754.545286898078, + "y": 190.4788391468716 + }, + { + "type": "VSAPoint", + "x": 2754.545286898078, + "y": 190.4788391468716 + }, + { + "type": "VSAPoint", + "x": 2646.1850164724747, + "y": 266.3535173413577 + }, + { + "type": "VSAPoint", + "x": 2646.1850164724747, + "y": 266.3535173413577 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2639.267313063576, + "y": 258.0709061308555 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2606.014223045311, + "y": 219.60633632143927 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2570.2544951405134, + "y": 180.478396371044 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2531.8585381172625, + "y": 141.29215529195642 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2490.69676074364, + "y": 102.65268209646334 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2457.8388819765955, + "y": 74.44605665912789 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2435.062136247081, + "y": 56.10364817309603 + }, + { + "angle": 4, + "type": "VSAPoint", + "x": 2432.0145999869596, + "y": 53.77375965353584 + }, + { + "angle": 4, + "type": "VSAPoint", + "x": 2432.0145999869596, + "y": 53.77375965353584 + }, + { + "angle": 4, + "type": "VSAPoint", + "x": 2432.0145999869596, + "y": 53.77375965353584 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2411.5210403620204, + "y": 38.2382829773741 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2387.199395417422, + "y": 20.925594698497928 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2362.081002509295, + "y": 4.2412169630033665 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2336.149662733653, + "y": -11.739216602573736 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2309.3891771865033, + "y": -26.94007237169754 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2281.7833469638563, + "y": -41.285716717832194 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2253.3159731617234, + "y": -54.70051601444185 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2223.970856876114, + "y": -67.10883663499067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2193.731799203038, + "y": -78.4350449529428 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2162.582601238505, + "y": -88.60350734176242 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2130.507064078527, + "y": -97.53859017491367 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2097.488988819113, + "y": -105.16465982586067 + }, + { + "type": "VSAPoint", + "x": 2080.5811523923107, + "y": -108.40390988213149 + }, + { + "type": "VSAPoint", + "x": 2080.5811523923107, + "y": -108.40390988213149 + }, + { + "type": "VSAPoint", + "x": 2080.5811523923107, + "y": -108.40390988213149 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2053.3382189293116, + "y": -113.20342966936785 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1998.0997844292576, + "y": -120.98183613303888 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1941.710352956113, + "y": -126.78347602183061 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1883.8944624162966, + "y": -130.83945284472378 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1824.3766507162275, + "y": -133.38087011069905 + }, + { + "type": "VSAPoint", + "x": 1768.6312045607222, + "y": -134.52461136590154 + }, + { + "type": "VSAPoint", + "x": 1768.6312045607222, + "y": -134.52461136590154 + }, + { + "type": "VSAPoint", + "x": 1768.6312045607222, + "y": -134.52461136590154 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1759.3687915563023, + "y": -198.42760392073671 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1742.6147930204875, + "y": -314.8687014945923 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1732.5799941583177, + "y": -395.2289763057778 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1727.3672491658513, + "y": -446.7525813211324 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1723.664475757871, + "y": -497.0674818939802 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1721.699284014046, + "y": -546.6854830983298 + }, + { + "type": "VSAPoint", + "x": 1721.5260342820745, + "y": -571.3960358663835 + }, + { + "type": "VSAPoint", + "x": 1721.5260342820745, + "y": -571.3960358663835 + }, + { + "type": "VSAPoint", + "x": 1721.5260342820745, + "y": -571.3960358663835 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1721.6107434243554, + "y": -591.3956596007176 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1722.6124767170475, + "y": -629.8897278172096 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1724.586390473074, + "y": -666.6210940512818 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1727.502931863078, + "y": -701.6381062142596 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1731.332548057702, + "y": -734.9891122174672 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1736.0456862275885, + "y": -766.7224599722297 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1741.6127935433801, + "y": -796.8864973898717 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1748.0043171757197, + "y": -825.5295723817184 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1755.1907042952503, + "y": -852.7000328590941 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1763.1424020726135, + "y": -878.446226733324 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1771.8298576784532, + "y": -902.8165019157326 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1781.2235182834113, + "y": -925.8592063176449 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1791.293831058131, + "y": -947.6226878503854 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1802.0112431732541, + "y": -968.1552944252793 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1813.3462017994243, + "y": -987.5053739536512 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1825.2691541072834, + "y": -1005.7212743468258 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1837.750547267475, + "y": -1022.8513435161282 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1850.7608284506407, + "y": -1038.9439293728828 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1864.2704448274235, + "y": -1054.0473798284147 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1878.2498435684665, + "y": -1068.2100427940484 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1892.6694718444123, + "y": -1081.4802661811086 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1907.499776825903, + "y": -1093.9063979009206 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1922.7112056835815, + "y": -1105.5367858648092 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1938.274205588091, + "y": -1116.4197779840988 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1962.1785432217637, + "y": -1131.5269757687188 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1995.0593353594777, + "y": -1149.3887598756025 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2028.814460756082, + "y": -1165.1312230079368 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2063.2074967767185, + "y": -1179.1411484563205 + }, + { + "type": "VSAPoint", + "x": 2080.5811523923107, + "y": -1185.5692642128404 + }, + { + "type": "VSAPoint", + "x": 2080.5811523923107, + "y": -1185.5692642128404 + }, + { + "type": "VSAPoint", + "x": 2080.5811523923107, + "y": -1185.5692642128404 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2092.940023942418, + "y": -1189.85915528519 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2121.6334572193564, + "y": -1197.531501045943 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2155.55361818058, + "y": -1203.7934777177322 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2195.2070617952177, + "y": -1208.287923713637 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2241.100343032397, + "y": -1210.6576774467371 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2293.7400168612476, + "y": -1210.5455773301119 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2353.632638250897, + "y": -1207.5944617768414 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2421.284762170474, + "y": -1201.4471692000047 + }, + { + "type": "VSAPoint", + "x": 2458.5339082978226, + "y": -1196.9078468900057 + }, + { + "type": "VSAPoint", + "x": 2458.5339082978226, + "y": -1196.9078468900057 + }, + { + "type": "VSAPoint", + "x": 2495.598879517392, + "y": -1189.5138787092 + }, + { + "type": "VSAPoint", + "x": 2495.598879517392, + "y": -1189.5138787092 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2492.9544862140174, + "y": -1154.3874906169024 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2488.5876238228907, + "y": -1086.109932005772 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2485.3039755881327, + "y": -1020.1445516464204 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2483.077880507099, + "y": -956.426813053981 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2481.883677577146, + "y": -894.8921797435885 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2481.69570579563, + "y": -835.4761152303763 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2482.488304159906, + "y": -778.1140830294785 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2484.2358116673313, + "y": -722.741546656029 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2486.9125673152607, + "y": -669.2939696251622 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2490.492910101052, + "y": -617.7068154520116 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2494.951179022059, + "y": -567.9155476517111 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2500.26171307564, + "y": -519.8556297393952 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2506.3988512591495, + "y": -473.46252523019746 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2513.336932569944, + "y": -428.6716976392519 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2521.05029600538, + "y": -385.4186104816926 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2529.513280562814, + "y": -343.63872727265357 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2538.700225239601, + "y": -303.26751152726854 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2548.585469033098, + "y": -264.24042676067165 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2559.1433509406597, + "y": -226.4929364879969 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2570.348209959644, + "y": -189.96050422437818 + }, + { + "saAfter": 75.59055118110237, + "type": "VSAPoint", + "x": 2572.9238556506243, + "y": -182.12538366123033 + }, + { + "saAfter": 75.59055118110237, + "type": "VSAPoint", + "x": 2572.9238556506243, + "y": -182.12538366123033 + } + ] +} diff --git a/src/test/ValentinaTest/share/hood_1/output.json b/src/test/ValentinaTest/share/hood_1/output.json new file mode 100644 index 000000000..8455a7fca --- /dev/null +++ b/src/test/ValentinaTest/share/hood_1/output.json @@ -0,0 +1,499 @@ +{ + "vector": [ + { + "type": "QPointF", + "x": 2698.4724482313363, + "y": -66.18490377975053 + }, + { + "type": "QPointF", + "x": 2662.9234476868974, + "y": -53.67001388175928 + }, + { + "type": "QPointF", + "x": 2669.4739823034743, + "y": -39.1550619669802 + }, + { + "type": "QPointF", + "x": 2683.64837452907, + "y": -9.343156785744153 + }, + { + "type": "QPointF", + "x": 2705.734318306918, + "y": 34.141344356723096 + }, + { + "type": "QPointF", + "x": 2736.7897626549734, + "y": 89.9038322197357 + }, + { + "type": "QPointF", + "x": 2769.426422134219, + "y": 143.73475836154847 + }, + { + "type": "QPointF", + "x": 2805.983976735858, + "y": 200.6005927829982 + }, + { + "type": "QPointF", + "x": 2639.4285839787435, + "y": 317.22393432106264 + }, + { + "type": "QPointF", + "x": 2610.4650709065622, + "y": 282.54573204968773 + }, + { + "type": "QPointF", + "x": 2577.763319242899, + "y": 244.71890726238786 + }, + { + "type": "QPointF", + "x": 2542.7985818391494, + "y": 206.46083804112558 + }, + { + "type": "QPointF", + "x": 2505.4151022737465, + "y": 168.30791371792324 + }, + { + "type": "QPointF", + "x": 2465.441304565855, + "y": 130.78362337845988 + }, + { + "type": "QPointF", + "x": 2433.6708777052368, + "y": 103.51051372962566 + }, + { + "type": "QPointF", + "x": 2411.780271956424, + "y": 85.88172525300432 + }, + { + "type": "QPointF", + "x": 2389.1327571242514, + "y": 68.6944997632573 + }, + { + "type": "QPointF", + "x": 2365.7789586547183, + "y": 52.07074614989352 + }, + { + "type": "QPointF", + "x": 2341.7047476002417, + "y": 36.07994481216335 + }, + { + "type": "QPointF", + "x": 2316.895346388318, + "y": 20.79091650513773 + }, + { + "type": "QPointF", + "x": 2291.3351295189354, + "y": 6.271853711062288 + }, + { + "type": "QPointF", + "x": 2265.0074225561348, + "y": -7.409601166094337 + }, + { + "type": "QPointF", + "x": 2237.8943123080353, + "y": -20.186225199388588 + }, + { + "type": "QPointF", + "x": 2209.976484251021, + "y": -31.991029725948728 + }, + { + "type": "QPointF", + "x": 2181.233105273238, + "y": -42.757023216350376 + }, + { + "type": "QPointF", + "x": 2151.6417698877467, + "y": -52.41693103307566 + }, + { + "type": "QPointF", + "x": 2121.1785255604927, + "y": -60.902887482471144 + }, + { + "type": "QPointF", + "x": 2089.8468862441287, + "y": -68.1394469072006 + }, + { + "type": "QPointF", + "x": 2047.3155676482672, + "y": -75.88335448087085 + }, + { + "type": "QPointF", + "x": 1993.5290344461223, + "y": -83.45731129743511 + }, + { + "type": "QPointF", + "x": 1938.4529334518154, + "y": -89.12382887174101 + }, + { + "type": "QPointF", + "x": 1881.7832654394247, + "y": -93.63265540673328 + }, + { + "type": "QPointF", + "x": 1823.1826622147569, + "y": -95.60213759946103 + }, + { + "type": "QPointF", + "x": 1735.8227892981768, + "y": -97.39451881792351 + }, + { + "type": "QPointF", + "x": 1705.204775531123, + "y": -309.48600250513897 + }, + { + "type": "QPointF", + "x": 1695.0759907160916, + "y": -390.5457527608969 + }, + { + "type": "QPointF", + "x": 1689.7639330409454, + "y": -442.94817947906694 + }, + { + "type": "QPointF", + "x": 1685.9711317779145, + "y": -494.2935538893977 + }, + { + "type": "QPointF", + "x": 1683.933617732387, + "y": -545.1897199926975 + }, + { + "type": "QPointF", + "x": 1683.815541944056, + "y": -591.3208128949251 + }, + { + "type": "QPointF", + "x": 1684.8299921001314, + "y": -630.872943530046 + }, + { + "type": "QPointF", + "x": 1686.8455714541906, + "y": -668.6492549792031 + }, + { + "type": "QPointF", + "x": 1689.8380729790558, + "y": -704.7751848254406 + }, + { + "type": "QPointF", + "x": 1693.7840076783323, + "y": -739.300721237822 + }, + { + "type": "QPointF", + "x": 1698.6605038684233, + "y": -772.2750266704194 + }, + { + "type": "QPointF", + "x": 1704.4452327337485, + "y": -803.746182545032 + }, + { + "type": "QPointF", + "x": 1711.1162711503862, + "y": -833.7609099035733 + }, + { + "type": "QPointF", + "x": 1718.6518871832484, + "y": -862.3642814600789 + }, + { + "type": "QPointF", + "x": 1727.0302366984913, + "y": -889.5994490909214 + }, + { + "type": "QPointF", + "x": 1736.2289664125722, + "y": -915.5074198510348 + }, + { + "type": "QPointF", + "x": 1746.2247301840323, + "y": -940.1269212202004 + }, + { + "type": "QPointF", + "x": 1756.992641316102, + "y": -963.4943997696208 + }, + { + "type": "QPointF", + "x": 1768.5057024471025, + "y": -985.6441936934964 + }, + { + "type": "QPointF", + "x": 1780.734272752295, + "y": -1006.6089061084813 + }, + { + "type": "QPointF", + "x": 1794.1644945573203, + "y": -1027.2126816861035 + }, + { + "type": "QPointF", + "x": 1807.7625818028855, + "y": -1045.8753559642978 + }, + { + "type": "QPointF", + "x": 1821.3694214329694, + "y": -1062.7058327159875 + }, + { + "type": "QPointF", + "x": 1836.100139553169, + "y": -1079.2449344264553 + }, + { + "type": "QPointF", + "x": 1851.3510801642235, + "y": -1094.7607374043296 + }, + { + "type": "QPointF", + "x": 1867.0755830139103, + "y": -1109.2909783528166 + }, + { + "type": "QPointF", + "x": 1883.2260495866253, + "y": -1122.8765380952436 + }, + { + "type": "QPointF", + "x": 1899.754804508815, + "y": -1135.5615506776867 + }, + { + "type": "QPointF", + "x": 1916.6148774876085, + "y": -1147.3932563680505 + }, + { + "type": "QPointF", + "x": 1943.0412025209246, + "y": -1164.1429339679457 + }, + { + "type": "QPointF", + "x": 1978.035305322304, + "y": -1183.1527287026474 + }, + { + "type": "QPointF", + "x": 2012.8396619909504, + "y": -1199.3845244747909 + }, + { + "type": "QPointF", + "x": 2048.9492482109445, + "y": -1214.1437941392153 + }, + { + "type": "QPointF", + "x": 2081.629635884494, + "y": -1225.957953936777 + }, + { + "type": "QPointF", + "x": 2113.3083081775653, + "y": -1234.428523656622 + }, + { + "type": "QPointF", + "x": 2149.987863146389, + "y": -1241.1999100839728 + }, + { + "type": "QPointF", + "x": 2192.1013537482304, + "y": -1245.97318554142 + }, + { + "type": "QPointF", + "x": 2240.165408983296, + "y": -1248.4550297515254 + }, + { + "type": "QPointF", + "x": 2293.8205045407126, + "y": -1248.340767218496 + }, + { + "type": "QPointF", + "x": 2355.492684928379, + "y": -1245.3439396980402 + }, + { + "type": "QPointF", + "x": 2424.7049850872513, + "y": -1239.087372867964 + }, + { + "type": "QPointF", + "x": 2464.5254832587198, + "y": -1234.2525768818987 + }, + { + "type": "QPointF", + "x": 2535.798765874303, + "y": -1220.0345061142368 + }, + { + "type": "QPointF", + "x": 2530.643114125195, + "y": -1151.5502061514492 + }, + { + "type": "QPointF", + "x": 2526.305833793482, + "y": -1083.6975693505779 + }, + { + "type": "QPointF", + "x": 2523.0525118523533, + "y": -1018.2654915425667 + }, + { + "type": "QPointF", + "x": 2520.8501110884213, + "y": -955.107171482351 + }, + { + "type": "QPointF", + "x": 2519.6777930390003, + "y": -894.4656888568627 + }, + { + "type": "QPointF", + "x": 2519.4918074391053, + "y": -835.6774371693252 + }, + { + "type": "QPointF", + "x": 2520.2753424550024, + "y": -778.971338799448 + }, + { + "type": "QPointF", + "x": 2522.001256706953, + "y": -724.283018842299 + }, + { + "type": "QPointF", + "x": 2524.6423339590633, + "y": -671.5478429640563 + }, + { + "type": "QPointF", + "x": 2528.1713052901846, + "y": -620.7008713127235 + }, + { + "type": "QPointF", + "x": 2532.5608790583965, + "y": -571.676811325595 + }, + { + "type": "QPointF", + "x": 2537.7837794393904, + "y": -524.4099712974187 + }, + { + "type": "QPointF", + "x": 2543.812793977071, + "y": -478.8342170662936 + }, + { + "type": "QPointF", + "x": 2550.620830070551, + "y": -434.88293468198987 + }, + { + "type": "QPointF", + "x": 2558.1809796390457, + "y": -392.4890022623114 + }, + { + "type": "QPointF", + "x": 2566.4665903546374, + "y": -351.58477448502157 + }, + { + "type": "QPointF", + "x": 2575.451340885374, + "y": -312.1020830292475 + }, + { + "type": "QPointF", + "x": 2585.109316604773, + "y": -273.972255890066 + }, + { + "type": "QPointF", + "x": 2595.415081338598, + "y": -237.12615764341632 + }, + { + "type": "QPointF", + "x": 2609.1203001982913, + "y": -193.04193668487991 + }, + { + "type": "QPointF", + "x": 2645.49360475627, + "y": -204.0118292479364 + }, + { + "type": "QPointF", + "x": 2698.4724482313363, + "y": -66.18490377975053 + } + ] +} diff --git a/src/test/ValentinaTest/share/hood_2/input.json b/src/test/ValentinaTest/share/hood_2/input.json new file mode 100644 index 000000000..939504e8f --- /dev/null +++ b/src/test/ValentinaTest/share/hood_2/input.json @@ -0,0 +1,699 @@ +{ + "vector": [ + { + "type": "VSAPoint", + "x": 2068.403668680166, + "y": -141.1952864288398 + }, + { + "type": "VSAPoint", + "x": 2068.403668680166, + "y": -141.1952864288398 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2059.53377956532, + "y": -204.20370243695794 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2043.5818678150838, + "y": -319.0141061236277 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2034.0736976285216, + "y": -398.2431991628491 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2029.1466809648907, + "y": -449.03697639429095 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2025.653327916676, + "y": -498.6340065477732 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2023.8023137563387, + "y": -547.5378201862984 + }, + { + "type": "VSAPoint", + "x": 2023.6393677732915, + "y": -571.8897107521216 + }, + { + "type": "VSAPoint", + "x": 2023.6393677732915, + "y": -571.8897107521216 + }, + { + "type": "VSAPoint", + "x": 2023.6393677732915, + "y": -571.8897107521216 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2023.7186286499364, + "y": -591.9139100245898 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2024.658047404418, + "y": -630.6890609584891 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2026.513461382864, + "y": -667.9549451469757 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2029.2614470547578, + "y": -703.7322630209733 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2032.8785808895823, + "y": -738.0417150114063 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2037.3414393568205, + "y": -770.9040015491985 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2042.6265989259552, + "y": -802.3398230652742 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2048.7106360664698, + "y": -832.3698799905576 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2055.5701272478473, + "y": -861.0148727559722 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2063.1816489395706, + "y": -888.2955017924427 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2071.521777611123, + "y": -914.2324675308927 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2080.567089731987, + "y": -938.8464704022465 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2090.294161771646, + "y": -962.1582108374282 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2100.6795701995825, + "y": -984.1883892673616 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2111.69989148528, + "y": -1004.9577061229709 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2123.3317020982217, + "y": -1024.4868618351802 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2135.551578507891, + "y": -1042.7965568349136 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2148.3360971837697, + "y": -1059.9074915530953 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2161.6618345953416, + "y": -1075.840366420649 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2175.50536721209, + "y": -1090.615881868499 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2189.8432715034974, + "y": -1104.2547383275692 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2204.652123939047, + "y": -1116.7776362287836 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2219.9085009882215, + "y": -1128.205276003067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2235.588979120505, + "y": -1138.5583580813422 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2251.670134805379, + "y": -1147.8575828945345 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2268.128544512328, + "y": -1156.1236508735672 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2284.940784710834, + "y": -1163.3772624493645 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2302.0834318703805, + "y": -1169.6391180528503 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2319.53306246045, + "y": -1174.9299181149495 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2337.2662529505265, + "y": -1179.270363066585 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2355.2595798100924, + "y": -1182.6811533386817 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2373.4896195086303, + "y": -1185.1829893621637 + }, + { + "type": "VSAPoint", + "x": 2382.6944858835277, + "y": -1186.0629390985782 + }, + { + "type": "VSAPoint", + "x": 2382.6944858835277, + "y": -1186.0629390985782 + }, + { + "type": "VSAPoint", + "x": 2382.6944858835277, + "y": -1186.0629390985782 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2396.5327839878364, + "y": -1187.1484415400676 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2428.2384920875347, + "y": -1188.4387546298442 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2464.3821133471984, + "y": -1188.6712063599218 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2504.522513200907, + "y": -1187.8446509437936 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2548.2185570827364, + "y": -1185.9579425949519 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2595.0291104267653, + "y": -1183.0099355268896 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2644.513038667071, + "y": -1178.9994839531 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2696.2292072377313, + "y": -1173.9254420870752 + }, + { + "type": "VSAPoint", + "x": 2722.8519661984883, + "y": -1170.9448288623578 + }, + { + "type": "VSAPoint", + "x": 2722.8519661984883, + "y": -1170.9448288623578 + }, + { + "type": "VSAPoint", + "x": 2722.8519661984883, + "y": -1170.9448288623578 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2723.358673160702, + "y": -1117.6310012473255 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2725.1041365304563, + "y": -1024.3301898197412 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2727.7650167567112, + "y": -943.8420756854985 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2731.382377752918, + "y": -872.6338641005586 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2735.99728343253, + "y": -807.1727603208824 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2741.6507977089996, + "y": -743.9259696024315 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2752.0256290059283, + "y": -646.3068412368262 + }, + { + "type": "VSAPoint", + "x": 2760.6472417890395, + "y": -571.8897107521216 + }, + { + "type": "VSAPoint", + "x": 2760.6472417890395, + "y": -571.8897107521216 + }, + { + "type": "VSAPoint", + "x": 2760.6472417890395, + "y": -571.8897107521216 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2763.012498585108, + "y": -552.3133993614101 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2768.8840525233645, + "y": -511.9747487623945 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2776.174861135665, + "y": -470.34882974787035 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2784.9404869316745, + "y": -427.58671450184096 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2795.236492421058, + "y": -383.83947520830935 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2807.1184401134824, + "y": -339.2581840512787 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2820.6418925186113, + "y": -293.993913214752 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2835.8624121461125, + "y": -248.19773488273256 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2852.8355615056507, + "y": -202.02072123922338 + }, + { + "saAfter": 75.59055118110237, + "type": "VSAPoint", + "x": 2858.3700013104663, + "y": -188.06698397123134 + }, + { + "saAfter": 75.59055118110237, + "type": "VSAPoint", + "x": 2858.3700013104663, + "y": -188.06698397123134 + }, + { + "saBefore": 75.59055118110237, + "type": "VSAPoint", + "x": 2904.1377770488234, + "y": -84.35725566360142 + }, + { + "saBefore": 75.59055118110237, + "type": "VSAPoint", + "x": 2904.1377770488234, + "y": -84.35725566360142 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2914.8264130731436, + "y": -62.715390279788615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2939.365706457486, + "y": -16.52575723035168 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2965.9354421221933, + "y": 29.2893502105594 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2994.5911825769317, + "y": 74.57885985894151 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 3025.3884903313665, + "y": 119.19169953079152 + }, + { + "type": "VSAPoint", + "x": 3041.700299857916, + "y": 141.15952147416033 + }, + { + "type": "VSAPoint", + "x": 3041.700299857916, + "y": 141.15952147416033 + }, + { + "type": "VSAPoint", + "x": 2954.8417173310404, + "y": 214.0425260370432 + }, + { + "type": "VSAPoint", + "x": 2954.8417173310404, + "y": 214.0425260370432 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2952.745368959665, + "y": 211.82746663724382 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2908.5743465650885, + "y": 167.33226714232575 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2877.6585731065616, + "y": 137.66544807242425 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2845.0900075818254, + "y": 108.26788753843135 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2810.500784218799, + "y": 79.39357569916001 + }, + { + "type": "VSAPoint", + "x": 2787.3176143572973, + "y": 61.56506016290141 + }, + { + "type": "VSAPoint", + "x": 2787.3176143572973, + "y": 61.56506016290141 + }, + { + "type": "VSAPoint", + "x": 2787.3176143572973, + "y": 61.56506016290141 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2773.5230372454007, + "y": 51.296502713423116 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2733.7889008895504, + "y": 24.23065874003362 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2701.8518690092988, + "y": 4.806926747701308 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2679.5726346332076, + "y": -7.714457705845784 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2656.3973784147083, + "y": -19.83516544197376 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2632.280117132291, + "y": -31.523447690831006 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2607.174867564445, + "y": -42.7475556825659 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2581.0356464896595, + "y": -53.47574064732684 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2553.8164706864245, + "y": -63.67625381526219 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2525.47135693323, + "y": -73.31734641652035 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2495.954322008567, + "y": -82.36726968124971 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2465.2193826909242, + "y": -90.79427483959863 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2433.220555758792, + "y": -98.5666131217155 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2399.91185799066, + "y": -105.65253575774872 + }, + { + "type": "VSAPoint", + "x": 2382.6944858835277, + "y": -108.89758476786946 + }, + { + "type": "VSAPoint", + "x": 2382.6944858835277, + "y": -108.89758476786946 + }, + { + "type": "VSAPoint", + "x": 2382.6944858835277, + "y": -108.89758476786946 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2354.3437485118875, + "y": -113.7104966487112 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2293.9116156385835, + "y": -122.24746148708584 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2230.380823884414, + "y": -129.44036440152377 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2165.2826297773354, + "y": -135.24761515206256 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2100.148289845306, + "y": -139.6276234987398 + }, + { + "type": "VSAPoint", + "x": 2068.403668680166, + "y": -141.1952864288398 + } + ] +} diff --git a/src/test/ValentinaTest/share/hood_2/output.json b/src/test/ValentinaTest/share/hood_2/output.json new file mode 100644 index 000000000..f740ffee6 --- /dev/null +++ b/src/test/ValentinaTest/share/hood_2/output.json @@ -0,0 +1,499 @@ +{ + "vector": [ + { + "type": "QPointF", + "x": 2035.2960002995621, + "y": -104.98892759835678 + }, + { + "type": "QPointF", + "x": 2006.1495263542765, + "y": -313.7889104595886 + }, + { + "type": "QPointF", + "x": 1996.5476819372952, + "y": -393.7397556684353 + }, + { + "type": "QPointF", + "x": 1991.5279697033495, + "y": -445.38794638800925 + }, + { + "type": "QPointF", + "x": 1987.9514570583938, + "y": -495.9784857418166 + }, + { + "type": "QPointF", + "x": 1986.0340824328566, + "y": -546.1082889127805 + }, + { + "type": "QPointF", + "x": 1985.923420264862, + "y": -591.8426352447094 + }, + { + "type": "QPointF", + "x": 1986.8738591660779, + "y": -631.6044713230935 + }, + { + "type": "QPointF", + "x": 1988.7649442089144, + "y": -669.8343887172921 + }, + { + "type": "QPointF", + "x": 1991.5771667372235, + "y": -706.6267187410156 + }, + { + "type": "QPointF", + "x": 1995.2916138539047, + "y": -742.004386588065 + }, + { + "type": "QPointF", + "x": 1999.889944177408, + "y": -775.9900968876958 + }, + { + "type": "QPointF", + "x": 2005.354422953286, + "y": -808.6062219695857 + }, + { + "type": "QPointF", + "x": 2011.6679436530455, + "y": -839.8746648462323 + }, + { + "type": "QPointF", + "x": 2018.8140286730954, + "y": -869.8166949836907 + }, + { + "type": "QPointF", + "x": 2026.7767999019306, + "y": -898.4527565156912 + }, + { + "type": "QPointF", + "x": 2035.5409081868938, + "y": -925.8022511261876 + }, + { + "type": "QPointF", + "x": 2045.0914094812506, + "y": -951.8833016013397 + }, + { + "type": "QPointF", + "x": 2055.4135752538455, + "y": -976.7125071495174 + }, + { + "type": "QPointF", + "x": 2066.492626333183, + "y": -1000.3047078929548 + }, + { + "type": "QPointF", + "x": 2078.313383581167, + "y": -1022.6727829484984 + }, + { + "type": "QPointF", + "x": 2091.356249600978, + "y": -1044.6609630359776 + }, + { + "type": "QPointF", + "x": 2104.672533142852, + "y": -1064.6134635366168 + }, + { + "type": "QPointF", + "x": 2118.679124894738, + "y": -1083.3600337569671 + }, + { + "type": "QPointF", + "x": 2133.352985746876, + "y": -1100.9047880591183 + }, + { + "type": "QPointF", + "x": 2148.6679760349593, + "y": -1117.250823558141 + }, + { + "type": "QPointF", + "x": 2164.5945836663027, + "y": -1132.4009257592 + }, + { + "type": "QPointF", + "x": 2181.0998694439763, + "y": -1146.3583886702347 + }, + { + "type": "QPointF", + "x": 2198.1476672236627, + "y": -1159.1278745936065 + }, + { + "type": "QPointF", + "x": 2215.6990435887515, + "y": -1170.7162227652323 + }, + { + "type": "QPointF", + "x": 2233.712983470078, + "y": -1181.1331156807928 + }, + { + "type": "QPointF", + "x": 2252.147233266067, + "y": -1190.3915291404949 + }, + { + "type": "QPointF", + "x": 2270.9592101127373, + "y": -1198.5079235892706 + }, + { + "type": "QPointF", + "x": 2290.1068803535773, + "y": -1205.5021727898402 + }, + { + "type": "QPointF", + "x": 2309.549522370668, + "y": -1211.3972621477742 + }, + { + "type": "QPointF", + "x": 2329.248314321282, + "y": -1216.218815388473 + }, + { + "type": "QPointF", + "x": 2349.1667186819295, + "y": -1219.9945207018498 + }, + { + "type": "QPointF", + "x": 2369.3114686550784, + "y": -1222.7591258261546 + }, + { + "type": "QPointF", + "x": 2393.3207227056832, + "y": -1224.8069800046114 + }, + { + "type": "QPointF", + "x": 2426.7016267391955, + "y": -1226.2027705956607 + }, + { + "type": "QPointF", + "x": 2464.13904430197, + "y": -1226.4657003293485 + }, + { + "type": "QPointF", + "x": 2505.3006137898833, + "y": -1225.6319162118564 + }, + { + "type": "QPointF", + "x": 2549.848962873529, + "y": -1223.7180357347117 + }, + { + "type": "QPointF", + "x": 2597.404652497221, + "y": -1220.7304824057126 + }, + { + "type": "QPointF", + "x": 2647.566166462366, + "y": -1216.6712408490996 + }, + { + "type": "QPointF", + "x": 2699.919704706235, + "y": -1211.5401079157161 + }, + { + "type": "QPointF", + "x": 2760.327365852444, + "y": -1204.7805922300774 + }, + { + "type": "QPointF", + "x": 2761.1522418353843, + "y": -1117.99020007493 + }, + { + "type": "QPointF", + "x": 2762.892799948462, + "y": -1025.0371368095778 + }, + { + "type": "QPointF", + "x": 2765.5285979713503, + "y": -945.4253606748525 + }, + { + "type": "QPointF", + "x": 2769.1101628906167, + "y": -874.9217994201786 + }, + { + "type": "QPointF", + "x": 2773.6740416506827, + "y": -810.1844977521562 + }, + { + "type": "QPointF", + "x": 2779.267826310923, + "y": -747.6059120390541 + }, + { + "type": "QPointF", + "x": 2789.609244202986, + "y": -650.3011779383172 + }, + { + "type": "QPointF", + "x": 2800.4903573531255, + "y": -557.230368494175 + }, + { + "type": "QPointF", + "x": 2806.206665166185, + "y": -517.958287199819 + }, + { + "type": "QPointF", + "x": 2813.30952547668, + "y": -477.4054344535129 + }, + { + "type": "QPointF", + "x": 2821.8559698422205, + "y": -435.7125710564219 + }, + { + "type": "QPointF", + "x": 2831.8996300459594, + "y": -393.0375349204212 + }, + { + "type": "QPointF", + "x": 2843.4935450676894, + "y": -349.5369477596855 + }, + { + "type": "QPointF", + "x": 2856.690226487769, + "y": -305.36641023368406 + }, + { + "type": "QPointF", + "x": 2871.541704035234, + "y": -260.6806221723646 + }, + { + "type": "QPointF", + "x": 2888.144983007954, + "y": -215.50987492860466 + }, + { + "type": "QPointF", + "x": 2893.767563234065, + "y": -201.3339131311529 + }, + { + "type": "QPointF", + "x": 2929.2675158416437, + "y": -214.63921809655847 + }, + { + "type": "QPointF", + "x": 2973.952058375707, + "y": -113.3840950105869 + }, + { + "type": "QPointF", + "x": 2939.1100061134007, + "y": -98.89773728670106 + }, + { + "type": "QPointF", + "x": 2948.4662168052696, + "y": -79.95370627701034 + }, + { + "type": "QPointF", + "x": 2972.4132860980158, + "y": -34.87880025110386 + }, + { + "type": "QPointF", + "x": 2998.264482431935, + "y": 9.697305151699226 + }, + { + "type": "QPointF", + "x": 3026.125237704092, + "y": 53.730365358346845 + }, + { + "type": "QPointF", + "x": 3056.1218748021915, + "y": 97.18335716603116 + }, + { + "type": "QPointF", + "x": 3093.276077054896, + "y": 147.22053410871447 + }, + { + "type": "QPointF", + "x": 2951.86313389483, + "y": 265.88008255802015 + }, + { + "type": "QPointF", + "x": 2925.6047133048114, + "y": 238.1347124916674 + }, + { + "type": "QPointF", + "x": 2882.074643843876, + "y": 194.2851699705554 + }, + { + "type": "QPointF", + "x": 2851.9059214729655, + "y": 165.33522215998124 + }, + { + "type": "QPointF", + "x": 2820.3081352102804, + "y": 136.8139219605006 + }, + { + "type": "QPointF", + "x": 2786.944993670687, + "y": 108.96311586863268 + }, + { + "type": "QPointF", + "x": 2751.4362765277865, + "y": 81.9822666051094 + }, + { + "type": "QPointF", + "x": 2713.316643928363, + "y": 56.0161799379957 + }, + { + "type": "QPointF", + "x": 2682.767656535353, + "y": 37.43664048724655 + }, + { + "type": "QPointF", + "x": 2661.5517392641823, + "y": 25.512861949683078 + }, + { + "type": "QPointF", + "x": 2639.3936548401316, + "y": 13.924137201001196 + }, + { + "type": "QPointF", + "x": 2616.321558387638, + "y": 2.742387654413715 + }, + { + "type": "QPointF", + "x": 2592.2830219727593, + "y": -8.004811968306463 + }, + { + "type": "QPointF", + "x": 2567.2255133218, + "y": -18.28903531201216 + }, + { + "type": "QPointF", + "x": 2541.0965516922643, + "y": -28.08098563017269 + }, + { + "type": "QPointF", + "x": 2513.8438564563294, + "y": -37.350511259573395 + }, + { + "type": "QPointF", + "x": 2485.4154800196166, + "y": -46.06665181873668 + }, + { + "type": "QPointF", + "x": 2455.759918720451, + "y": -54.197709617778656 + }, + { + "type": "QPointF", + "x": 2424.826197750894, + "y": -61.71133954583639 + }, + { + "type": "QPointF", + "x": 2392.686825196367, + "y": -68.54850589431828 + }, + { + "type": "QPointF", + "x": 2348.4079484452473, + "y": -76.37848745900183 + }, + { + "type": "QPointF", + "x": 2289.141379275977, + "y": -84.75079856292885 + }, + { + "type": "QPointF", + "x": 2226.5751504953078, + "y": -91.83449446716465 + }, + { + "type": "QPointF", + "x": 2162.3352121978905, + "y": -97.56518231510418 + }, + { + "type": "QPointF", + "x": 2097.9480959578214, + "y": -101.89494303493761 + }, + { + "type": "QPointF", + "x": 2035.2960002995621, + "y": -104.98892759835678 + } + ] +} diff --git a/src/test/ValentinaTest/share/test_data.qrc b/src/test/ValentinaTest/share/test_data.qrc index af52f56ff..054d83e76 100644 --- a/src/test/ValentinaTest/share/test_data.qrc +++ b/src/test/ValentinaTest/share/test_data.qrc @@ -151,5 +151,9 @@ smart_pattern_#145/output.json women_jacket/input.json women_jacket/output.json + hood_1/input.json + hood_1/output.json + hood_2/input.json + hood_2/output.json diff --git a/src/test/ValentinaTest/tst_vabstractpiece.cpp b/src/test/ValentinaTest/tst_vabstractpiece.cpp index 4f8764361..d70343d2d 100644 --- a/src/test/ValentinaTest/tst_vabstractpiece.cpp +++ b/src/test/ValentinaTest/tst_vabstractpiece.cpp @@ -957,6 +957,18 @@ void TST_VAbstractPiece::BrokenDetailEquidistant_data() QStringLiteral("://women_jacket/input.json"), QStringLiteral("://women_jacket/output.json"), 37.795275590551185 /*seam allowance width*/); + + // See private test cases in file valentina_private_collection/bugs/hood_1/hood_1.val + ASSERT_TEST_CASE("hood_1", + QStringLiteral("://hood_1/input.json"), + QStringLiteral("://hood_1/output.json"), + 37.795275590551185 /*seam allowance width*/); + + // See private test cases in file valentina_private_collection/bugs/hood_2/hood_2.val + ASSERT_TEST_CASE("hood_2", + QStringLiteral("://hood_2/input.json"), + QStringLiteral("://hood_2/output.json"), + 37.795275590551185 /*seam allowance width*/); } //---------------------------------------------------------------------------------------------------------------------