diff --git a/src/libs/vlayout/vabstractpiece.cpp b/src/libs/vlayout/vabstractpiece.cpp index 6b0082ec3..ff2108ba6 100644 --- a/src/libs/vlayout/vabstractpiece.cpp +++ b/src/libs/vlayout/vabstractpiece.cpp @@ -1,4 +1,4 @@ -/************************************************************************ +/************************************************************************ ** ** @file ** @author Roman Telezhynskyi @@ -80,8 +80,9 @@ Q_DECL_CONSTEXPR qreal PointPosition(const QPointF &p, const QLineF &line) } //--------------------------------------------------------------------------------------------------------------------- -QVector AngleByLength(QVector points, QPointF p2, const QLineF &bigLine1, QPointF sp2, - const QLineF &bigLine2, const VSAPoint &p, qreal width, bool *needRollback = nullptr) +QVector AngleByLength(QVector points, QPointF p1, QPointF p2, QPointF p3, const QLineF &bigLine1, + QPointF sp2, const QLineF &bigLine2, const VSAPoint &p, qreal width, + bool *needRollback = nullptr) { if (needRollback != nullptr) { @@ -127,48 +128,66 @@ QVector AngleByLength(QVector points, QPointF p2, const QLineF } else { - if (not IsOutsidePoint(bigLine1.p1(), bigLine1.p2(), sp2)) + QLineF edge1(p2, p1); + QLineF edge2(p2, p3); + const qreal angle = edge1.angleTo(edge2); + + if (angle > 180) { - if (p.GetAngleType() != PieceNodeAngle::ByLengthCurve) - { - bool success = false; - QVector temp = points; - temp.append(bigLine1.p2()); - temp = VAbstractPiece::RollbackSeamAllowance(temp, bigLine2, &success); + QLineF loop(sp2, bigLine1.p1()); + loop.setLength(accuracyPointOnLine*2.); + points.append(loop.p2()); + points.append(sp2); - if (success) - { - points = temp; - } - - if (needRollback != nullptr) - { - *needRollback = not success; - } - } - else - { - points.append(sp2); - } + loop = QLineF(bigLine1.p1(), sp2); + loop.setLength(loop.length() + localWidth*3.); + points.append(loop.p2()); } else { - if (p.GetAngleType() != PieceNodeAngle::ByLengthCurve) + if (not IsOutsidePoint(bigLine1.p1(), bigLine1.p2(), sp2)) { - // Need to create artificial loop - QLineF loop1(sp2, sp1); - loop1.setLength(loop1.length()*0.2); + if (p.GetAngleType() != PieceNodeAngle::ByLengthCurve) + { + bool success = false; + QVector temp = points; + temp.append(bigLine1.p2()); + temp = VAbstractPiece::RollbackSeamAllowance(temp, bigLine2, &success); - points.append(loop1.p2()); // Need for the main path rule + if (success) + { + points = temp; + } - loop1.setAngle(loop1.angle() + 180); - loop1.setLength(localWidth); - points.append(loop1.p2()); - points.append(bigLine2.p1()); + if (needRollback != nullptr) + { + *needRollback = not success; + } + } + else + { + points.append(sp2); + } } else { - points.append(sp2); + if (p.GetAngleType() != PieceNodeAngle::ByLengthCurve) + { + // Need to create artificial loop + QLineF loop1(sp2, sp1); + loop1.setLength(loop1.length()*0.2); + + points.append(loop1.p2()); // Need for the main path rule + + loop1.setAngle(loop1.angle() + 180); + loop1.setLength(localWidth); + points.append(loop1.p2()); + points.append(bigLine2.p1()); + } + else + { + points.append(sp2); + } } } } @@ -180,6 +199,17 @@ QVector AngleByIntersection(const QVector &points, QPointF p1, const QLineF &bigLine1, QPointF sp2, const QLineF &bigLine2, const VSAPoint &p, qreal width, bool *needRollback = nullptr) { + { + QLineF edge1(p2, p1); + QLineF edge2(p2, p3); + const qreal angle = edge1.angleTo(edge2); + + if (angle > 180) + { + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); + } + } + if (needRollback != nullptr) { *needRollback = false; @@ -195,14 +225,14 @@ QVector AngleByIntersection(const QVector &points, QPointF p1, QLineF::IntersectType type = edge2.intersect(bigLine1, &px); if (type == QLineF::NoIntersection) { - return AngleByLength(points, p2, bigLine1, sp2, bigLine2, p, width, needRollback); + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); } if (IsOutsidePoint(bigLine1.p1(), bigLine1.p2(), px)) { if (QLineF(p2, px).length() > localWidth*maxL) { - return AngleByLength(points, p2, bigLine1, sp2, bigLine2, p, width, needRollback); + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); } pointsIntr.append(px); } @@ -223,7 +253,7 @@ QVector AngleByIntersection(const QVector &points, QPointF p1, type = edge1.intersect(bigLine2, &px); if (type == QLineF::NoIntersection) { - return AngleByLength(points, p2, bigLine1, sp2, bigLine2, p, width, needRollback); + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); } if (IsOutsidePoint(bigLine2.p2(), bigLine2.p1(), px)) @@ -244,10 +274,21 @@ QVector AngleByIntersection(const QVector &points, QPointF p1, } //--------------------------------------------------------------------------------------------------------------------- -QVector AngleByFirstSymmetry(const QVector &points, QPointF p1, QPointF p2, +QVector AngleByFirstSymmetry(const QVector &points, QPointF p1, QPointF p2, QPointF p3, const QLineF &bigLine1, QPointF sp2, const QLineF &bigLine2, const VSAPoint &p, qreal width, bool *needRollback = nullptr) { + { + QLineF edge1(p2, p1); + QLineF edge2(p2, p3); + const qreal angle = edge1.angleTo(edge2); + + if (angle > 180) + { + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); + } + } + if (needRollback != nullptr) { *needRollback = false; @@ -261,14 +302,14 @@ QVector AngleByFirstSymmetry(const QVector &points, QPointF p1 QLineF::IntersectType type = sEdge.intersect(bigLine1, &px1); if (type == QLineF::NoIntersection) { - return AngleByLength(points, p2, bigLine1, sp2, bigLine2, p, width, needRollback); + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); } QPointF px2; type = sEdge.intersect(bigLine2, &px2); if (type == QLineF::NoIntersection) { - return AngleByLength(points, p2, bigLine1, sp2, bigLine2, p, width, needRollback); + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); } QVector pointsIntr = points; @@ -311,10 +352,21 @@ QVector AngleByFirstSymmetry(const QVector &points, QPointF p1 } //--------------------------------------------------------------------------------------------------------------------- -QVector AngleBySecondSymmetry(const QVector &points, QPointF p2, QPointF p3, +QVector AngleBySecondSymmetry(const QVector &points, QPointF p1, QPointF p2, QPointF p3, const QLineF &bigLine1, QPointF sp2, const QLineF &bigLine2, const VSAPoint &p, qreal width, bool *needRollback = nullptr) { + { + QLineF edge1(p2, p1); + QLineF edge2(p2, p3); + const qreal angle = edge1.angleTo(edge2); + + if (angle > 180) + { + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); + } + } + if (needRollback != nullptr) { *needRollback = false; @@ -328,14 +380,14 @@ QVector AngleBySecondSymmetry(const QVector &points, QPointF p QLineF::IntersectType type = sEdge.intersect(bigLine1, &px1); if (type == QLineF::NoIntersection) { - return AngleByLength(points, p2, bigLine1, sp2, bigLine2, p, width, needRollback); + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); } QPointF px2; type = sEdge.intersect(bigLine2, &px2); if (type == QLineF::NoIntersection) { - return AngleByLength(points, p2, bigLine1, sp2, bigLine2, p, width, needRollback); + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); } const qreal localWidth = p.MaxLocalSA(width); @@ -381,10 +433,21 @@ QVector AngleBySecondSymmetry(const QVector &points, QPointF p } //--------------------------------------------------------------------------------------------------------------------- -QVector AngleByFirstRightAngle(const QVector &points, QPointF p1, QPointF p2, +QVector AngleByFirstRightAngle(const QVector &points, QPointF p1, QPointF p2, QPointF p3, const QLineF &bigLine1, QPointF sp2, const QLineF &bigLine2, const VSAPoint &p, qreal width, bool *needRollback = nullptr) { + { + QLineF edge1(p2, p1); + QLineF edge2(p2, p3); + const qreal angle = edge1.angleTo(edge2); + + if (angle > 180) + { + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); + } + } + const qreal localWidth = p.MaxLocalSA(width); QVector pointsRA = points; QLineF edge(p1, p2); @@ -393,7 +456,7 @@ QVector AngleByFirstRightAngle(const QVector &points, QPointF QLineF::IntersectType type = edge.intersect(bigLine2, &px); if (type == QLineF::NoIntersection) { - return AngleByLength(points, p2, bigLine1, sp2, bigLine2, p, width, needRollback); + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); } QLineF seam(px, p1); @@ -406,7 +469,7 @@ QVector AngleByFirstRightAngle(const QVector &points, QPointF { if (QLineF(p2, px).length() > localWidth*maxL) { - return AngleByLength(points, p2, bigLine1, sp2, bigLine2, p, width, needRollback); + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); } pointsRA.append(seam.p1()); } @@ -427,10 +490,21 @@ QVector AngleByFirstRightAngle(const QVector &points, QPointF } //--------------------------------------------------------------------------------------------------------------------- -QVector AngleBySecondRightAngle(QVector points, QPointF p2, QPointF p3, +QVector AngleBySecondRightAngle(QVector points, QPointF p1, QPointF p2, QPointF p3, const QLineF &bigLine1, QPointF sp2, const QLineF &bigLine2, const VSAPoint &p, qreal width, bool *needRollback = nullptr) { + { + QLineF edge1(p2, p1); + QLineF edge2(p2, p3); + const qreal angle = edge1.angleTo(edge2); + + if (angle > 180) + { + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); + } + } + if (needRollback != nullptr) { *needRollback = false; @@ -443,14 +517,14 @@ QVector AngleBySecondRightAngle(QVector points, QPointF p2, QP QLineF::IntersectType type = edge.intersect(bigLine1, &px); if (type == QLineF::NoIntersection) { - return AngleByLength(points, p2, bigLine1, sp2, bigLine2, p, width, needRollback); + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); } if (IsOutsidePoint(bigLine1.p1(), bigLine1.p2(), px)) { if (QLineF(p2, px).length() > localWidth*maxL) { - return AngleByLength(points, p2, bigLine1, sp2, bigLine2, p, width, needRollback); + return AngleByLength(points, p1, p2, p3, bigLine1, sp2, bigLine2, p, width, needRollback); } points.append(px); @@ -1177,21 +1251,21 @@ QVector VAbstractPiece::EkvPoint(QVector points, const VSAPoin { // Most common case /* Case when a path has point on line (both segments lie on the same line) and seam allowance creates * prong. */ - auto IsOnLine = [](const QPointF &base, const QPointF &sp1, const QPointF &sp2) + auto IsOnLine = [](const QPointF &base, const QPointF &sp1, const QPointF &sp2, qreal accuracy) { if (not VFuzzyComparePoints(base, sp1)) { - return VGObject::IsPointOnLineviaPDP(sp2, base, sp1); + return VGObject::IsPointOnLineviaPDP(sp2, base, sp1, accuracy); } if (not VFuzzyComparePoints(base, sp2)) { - return VGObject::IsPointOnLineviaPDP(sp1, base, sp2); + return VGObject::IsPointOnLineviaPDP(sp1, base, sp2, accuracy); } return true; }; - if (VGObject::IsPointOnLineSegment(p2Line1, p1Line1, p1Line2) - && IsOnLine(p2Line1, bigLine1.p2(), bigLine2.p1())) + if (VGObject::IsPointOnLineSegment(p2Line1, p1Line1, p1Line2, ToPixel(1, Unit::Mm)) && + IsOnLine(p2Line1, bigLine1.p2(), bigLine2.p1(), ToPixel(1, Unit::Mm))) { points.append(bigLine1.p2()); points.append(bigLine2.p1()); @@ -1223,22 +1297,22 @@ QT_WARNING_DISABLE_GCC("-Wswitch-default") break; case PieceNodeAngle::ByLength: case PieceNodeAngle::ByLengthCurve: - return AngleByLength(points, p2Line1, bigLine1, crosPoint, bigLine2, p2Line1, width, - needRollback); + return AngleByLength(points, p1Line1, p2Line1, p1Line2, bigLine1, crosPoint, bigLine2, p2Line1, + width, needRollback); case PieceNodeAngle::ByPointsIntersection: return AngleByIntersection(points, p1Line1, p2Line1, p1Line2, bigLine1, crosPoint, bigLine2, p2Line1, width, needRollback); case PieceNodeAngle::ByFirstEdgeSymmetry: - return AngleByFirstSymmetry(points, p1Line1, p2Line1, bigLine1, crosPoint, bigLine2, + return AngleByFirstSymmetry(points, p1Line1, p2Line1, p1Line2, bigLine1, crosPoint, bigLine2, p2Line1, width, needRollback); case PieceNodeAngle::BySecondEdgeSymmetry: - return AngleBySecondSymmetry(points, p2Line1, p1Line2, bigLine1, crosPoint, bigLine2, + return AngleBySecondSymmetry(points, p1Line1, p2Line1, p1Line2, bigLine1, crosPoint, bigLine2, p2Line1, width, needRollback); case PieceNodeAngle::ByFirstEdgeRightAngle: - return AngleByFirstRightAngle(points, p1Line1, p2Line1, bigLine1, crosPoint, bigLine2, + return AngleByFirstRightAngle(points, p1Line1, p2Line1, p1Line2, bigLine1, crosPoint, bigLine2, p2Line1, width, needRollback); case PieceNodeAngle::BySecondEdgeRightAngle: - return AngleBySecondRightAngle(points, p2Line1, p1Line2, bigLine1, crosPoint, bigLine2, + return AngleBySecondRightAngle(points, p1Line1, p2Line1, p1Line2, bigLine1, crosPoint, bigLine2, p2Line1, width, needRollback); } QT_WARNING_POP diff --git a/src/test/ValentinaTest/share/DP_6/input.json b/src/test/ValentinaTest/share/DP_6/input.json new file mode 100644 index 000000000..80a67a355 --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6/input.json @@ -0,0 +1,552 @@ +{ + "vector": [ + { + "type": "VSAPoint", + "x": 1676.804606592377, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 1790.1904333640305, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 2132.831278036873, + "y": 334.01963822471856 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2209.0824577516487, + "y": 196.52029498815347 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2280.0788311549086, + "y": 214.46913581675784 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2345.053938897079, + "y": 232.82808880019167 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2406.430397575602, + "y": 252.1184733940386 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2466.630823787921, + "y": 272.8616090538824 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2528.077834131477, + "y": 295.5788152353067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2626.972277996681, + "y": 334.08672189942854 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2683.174281565618, + "y": 428.6163050991843 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2636.9155845119085, + "y": 570.0364148944475 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2602.3359035137023, + "y": 679.2016045836615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2581.1485889486808, + "y": 750.3046656507598 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2562.658903353014, + "y": 818.1666036205969 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2551.3190086136897, + "y": 865.7283064025331 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2545.058458315721, + "y": 895.6477493986852 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2542.4441145955184, + "y": 909.8834645669292 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2539.941891688312, + "y": 924.5359428210015 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.2824566009085, + "y": 946.6345652094251 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3671357993244, + "y": 961.2177429989904 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3893819364166, + "y": 975.5256347551833 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.538148749601, + "y": 989.4206965556962 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2540.002389976296, + "y": 1002.7653844782211 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2543.971059353917, + "y": 1015.422154600451 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2549.633110619882, + "y": 1027.253463000078 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2557.177497511606, + "y": 1038.121765754795 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2566.7931737665076, + "y": 1047.8895189422938 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2578.669093122002, + "y": 1056.419178640267 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2592.9942093155073, + "y": 1063.5732009264073 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2609.9574760844393, + "y": 1069.214041878407 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2629.747847166216, + "y": 1073.204157573959 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2652.554276298253, + "y": 1075.406004090755 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2656.455947900562, + "y": 1149.9520876303336 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2642.4743193451973, + "y": 1283.9248328571011 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2632.348846491074, + "y": 1400.3953842544354 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2625.462074272455, + "y": 1499.2648032469053 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2621.1965476236046, + "y": 1580.4341512590793 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.9348114787863, + "y": 1643.804489715526 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.8911123953603, + "y": 1707.5262208487393 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.9884514435694, + "y": 1722.9543307086615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.243518754759, + "y": 1728.6863715569775 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2620.9069750474355, + "y": 1754.8103451532859 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2628.7361755238107, + "y": 1818.230094084754 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2644.9536288641093, + "y": 1932.092426039521 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2659.427198191514, + "y": 2020.1956325333963 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2669.339056867133, + "y": 2073.2470143796036 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 2096.1826771653546 + }, + { + "saAfter": 151.18110236220474, + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 3075.2356380110023 + }, + { + "saBefore": 151.18110236220474, + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "saBefore": 151.18110236220474, + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2007.2814993554916, + "y": 3069.0853220695535 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1985.2213981724194, + "y": 3066.6063749413943 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1971.0975271551902, + "y": 3064.1269682327293 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1957.4637612744855, + "y": 3060.939408867782 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1944.3112415072071, + "y": 3057.044174599266 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1931.6311088302562, + "y": 3052.4417431799 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1919.4145042205341, + "y": 3047.1325923624 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1907.6525686549428, + "y": 3041.117199899481 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1896.3364431103832, + "y": 3034.3960435438594 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1885.457268563757, + "y": 3026.969601048252 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1875.0061859919656, + "y": 3018.8383501653752 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1864.97433637191, + "y": 3010.0027686479434 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1855.3528606804925, + "y": 3000.4633342486754 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1841.6221908501716, + "y": 2984.9233358928996 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1824.7351747619791, + "y": 2961.627082835932 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1809.3301919725623, + "y": 2935.524017800505 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1795.3363702971328, + "y": 2906.617962808349 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1782.6828375509026, + "y": 2874.9127398811934 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1771.298721549083, + "y": 2840.412171040767 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1761.1131501068844, + "y": 2803.1200783087997 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1752.0552510395196, + "y": 2763.0402837070214 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1744.054152162199, + "y": 2720.1766092571615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1737.0389812901346, + "y": 2674.5328769809485 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1730.9388662385377, + "y": 2626.1129089001124 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1725.6829348226192, + "y": 2574.9205270363836 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1721.2003148575914, + "y": 2520.9595534114897 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1715.6967946026289, + "y": 2435.1802236828553 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1710.5209571604514, + "y": 2310.692590126838 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1707.1626661956402, + "y": 2175.1993859172935 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1705.0549442298873, + "y": 2028.73118722806 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1703.0187742577805, + "y": 1789.8799791806941 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + } + ] +} diff --git a/src/test/ValentinaTest/share/DP_6/output.json b/src/test/ValentinaTest/share/DP_6/output.json new file mode 100644 index 000000000..23dcc4c02 --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6/output.json @@ -0,0 +1,364 @@ +{ + "vector": [ + { + "type": "QPointF", + "x": 1638.2475801328742, + "y": 338.7023622047243 + }, + { + "type": "QPointF", + "x": 1787.856581446204, + "y": 338.70236220472435 + }, + { + "type": "QPointF", + "x": 2102.578059272009, + "y": 299.68559287387035 + }, + { + "type": "QPointF", + "x": 2142.670472387943, + "y": 142.3701762588955 + }, + { + "type": "QPointF", + "x": 2218.3461551694068, + "y": 159.8778773943609 + }, + { + "type": "QPointF", + "x": 2290.3556666474014, + "y": 178.09786268498775 + }, + { + "type": "QPointF", + "x": 2356.386310160867, + "y": 196.77174097480187 + }, + { + "type": "QPointF", + "x": 2418.743012243872, + "y": 216.38498242273093 + }, + { + "type": "QPointF", + "x": 2479.7368903013507, + "y": 237.4114485815882 + }, + { + "type": "QPointF", + "x": 2541.9171687800745, + "y": 260.40843460827716 + }, + { + "type": "QPointF", + "x": 2750.357423761806, + "y": 342.42842960123363 + }, + { + "type": "QPointF", + "x": 2672.872175384315, + "y": 581.6814322752841 + }, + { + "type": "QPointF", + "x": 2638.4646617671424, + "y": 690.3056975411124 + }, + { + "type": "QPointF", + "x": 2617.497332112694, + "y": 760.6705055142506 + }, + { + "type": "QPointF", + "x": 2599.283613619167, + "y": 827.5195726989015 + }, + { + "type": "QPointF", + "x": 2588.2720377242563, + "y": 873.7042430079038 + }, + { + "type": "QPointF", + "x": 2577.305280439003, + "y": 930.3907550083354 + }, + { + "type": "QPointF", + "x": 2574.164253819351, + "y": 962.3733430936679 + }, + { + "type": "QPointF", + "x": 2575.0488997085126, + "y": 984.4194995242519 + }, + { + "type": "QPointF", + "x": 2576.7527016493063, + "y": 993.6461551517026 + }, + { + "type": "QPointF", + "x": 2579.2278935113586, + "y": 1001.5399682728115 + }, + { + "type": "QPointF", + "x": 2582.4138013583442, + "y": 1008.1971772064464 + }, + { + "type": "QPointF", + "x": 2586.114686464242, + "y": 1013.528603121976 + }, + { + "type": "QPointF", + "x": 2591.4699318406524, + "y": 1019.025810364433 + }, + { + "type": "QPointF", + "x": 2598.6551332041845, + "y": 1024.1539538228847 + }, + { + "type": "QPointF", + "x": 2607.4734765281382, + "y": 1028.5578709579513 + }, + { + "type": "QPointF", + "x": 2619.6916995281545, + "y": 1032.6208296791679 + }, + { + "type": "QPointF", + "x": 2635.3135059870046, + "y": 1035.7704833610908 + }, + { + "type": "QPointF", + "x": 2654.824750408218, + "y": 1037.6541962965302 + }, + { + "type": "QPointF", + "x": 2707.7220622041555, + "y": 1038.9183044833856 + }, + { + "type": "QPointF", + "x": 2694.0188568415797, + "y": 1154.1454872438824 + }, + { + "type": "QPointF", + "x": 2680.0993114304906, + "y": 1287.5233483169186 + }, + { + "type": "QPointF", + "x": 2670.030212200457, + "y": 1403.3454492984993 + }, + { + "type": "QPointF", + "x": 2663.188370367668, + "y": 1501.5698286408856 + }, + { + "type": "QPointF", + "x": 2658.956431395277, + "y": 1582.100031707097 + }, + { + "type": "QPointF", + "x": 2656.724596297057, + "y": 1644.6325892192683 + }, + { + "type": "QPointF", + "x": 2656.0567713651967, + "y": 1726.6329271176091 + }, + { + "type": "QPointF", + "x": 2666.219994113066, + "y": 1813.3652788712084 + }, + { + "type": "QPointF", + "x": 2682.3143907791386, + "y": 1926.3636330117054 + }, + { + "type": "QPointF", + "x": 2696.632157927055, + "y": 2013.5184437587432 + }, + { + "type": "QPointF", + "x": 2720.090653009996, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 3226.78236117748 + }, + { + "type": "QPointF", + "x": 2021.3199675389635, + "y": 3220.8483027084308 + }, + { + "type": "QPointF", + "x": 2021.3182640632187, + "y": 3107.4419653203568 + }, + { + "type": "QPointF", + "x": 2003.0609167151038, + "y": 3106.64420303187 + }, + { + "type": "QPointF", + "x": 1977.6611107770514, + "y": 3103.637779336377 + }, + { + "type": "QPointF", + "x": 1947.7456292882673, + "y": 3097.5302702823433 + }, + { + "type": "QPointF", + "x": 1917.6024541416723, + "y": 3087.6146557042416 + }, + { + "type": "QPointF", + "x": 1889.3519554569923, + "y": 3074.272559283482 + }, + { + "type": "QPointF", + "x": 1863.1586127591347, + "y": 3057.576551410662 + }, + { + "type": "QPointF", + "x": 1838.3637143608191, + "y": 3036.8422480234512 + }, + { + "type": "QPointF", + "x": 1827.0296344066358, + "y": 3025.4888754097633 + }, + { + "type": "QPointF", + "x": 1811.0210136428477, + "y": 3007.105554233083 + }, + { + "type": "QPointF", + "x": 1792.1855441829048, + "y": 2980.8365702349024 + }, + { + "type": "QPointF", + "x": 1775.3116652088074, + "y": 2951.992857886853 + }, + { + "type": "QPointF", + "x": 1760.23344616566, + "y": 2920.6275157771556 + }, + { + "type": "QPointF", + "x": 1746.7910292682213, + "y": 2886.7559216818995 + }, + { + "type": "QPointF", + "x": 1734.8389324840682, + "y": 2850.3704157806915 + }, + { + "type": "QPointF", + "x": 1724.2475956555309, + "y": 2811.4515698895543 + }, + { + "type": "QPointF", + "x": 1714.9017110090306, + "y": 2769.975506859066 + }, + { + "type": "QPointF", + "x": 1706.6975180190836, + "y": 2725.918102308894 + }, + { + "type": "QPointF", + "x": 1699.5401219581372, + "y": 2679.257112978941 + }, + { + "type": "QPointF", + "x": 1693.3412326417047, + "y": 2629.9730649700537 + }, + { + "type": "QPointF", + "x": 1688.0173984057383, + "y": 2578.0494603041498 + }, + { + "type": "QPointF", + "x": 1683.4825898547426, + "y": 2523.3794867938254 + }, + { + "type": "QPointF", + "x": 1677.9341442539435, + "y": 2436.7502859774568 + }, + { + "type": "QPointF", + "x": 1672.7372856065697, + "y": 2311.629084053139 + }, + { + "type": "QPointF", + "x": 1669.3789946417585, + "y": 2176.135879843595 + }, + { + "type": "QPointF", + "x": 1667.2635813707664, + "y": 2029.2750164437336 + }, + { + "type": "QPointF", + "x": 1663.7116222795441, + "y": 1614.6165969479066 + }, + { + "type": "QPointF", + "x": 1638.2475801328742, + "y": 338.7023622047243 + } + ] +} diff --git a/src/test/ValentinaTest/share/DP_6_hem_by_first_edge_right_angle/input.json b/src/test/ValentinaTest/share/DP_6_hem_by_first_edge_right_angle/input.json new file mode 100644 index 000000000..f20459f6b --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6_hem_by_first_edge_right_angle/input.json @@ -0,0 +1,573 @@ +{ + "vector": [ + { + "angle": 4, + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "angle": 4, + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2014.9729320292, + "y": 3069.6130267291883 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1999.838557691558, + "y": 3068.8816935485092 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1985.2122453725951, + "y": 3067.420020685311 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1971.0851302475294, + "y": 3065.229001637756 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1957.4483474915787, + "y": 3062.309629904003 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1944.293032279962, + "y": 3058.6628989822143 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1931.6103197878972, + "y": 3054.289802370551 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1919.3913451906024, + "y": 3049.191333567172 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1907.6272436632962, + "y": 3043.368486070239 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1896.3091503811966, + "y": 3036.8222533779135 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1885.4282005195219, + "y": 3029.5536289883566 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1874.9755292534905, + "y": 3021.563606399727 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1864.9422717583204, + "y": 3012.8531791101877 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1855.3195632092302, + "y": 3003.4233406178982 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1846.098538781438, + "y": 2993.2750844210195 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1837.2703336501618, + "y": 2982.4094040177133 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1824.6988381756855, + "y": 2964.8572538605545 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1809.2929657948505, + "y": 2938.833269793301 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1795.2988037540088, + "y": 2909.9574718672293 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1782.645433454907, + "y": 2878.237808067624 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1771.2619362992912, + "y": 2843.682226379773 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1761.0773936889077, + "y": 2806.2986747889627 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1752.020887025502, + "y": 2766.095101280478 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1744.0214977108208, + "y": 2723.0794538396067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1737.00830714661, + "y": 2677.259680451635 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1730.9103967346155, + "y": 2628.6437291018483 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1725.656847876584, + "y": 2577.2395477755335 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1721.1767419742605, + "y": 2523.055084457977 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1715.6771359215397, + "y": 2436.927798469381 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1710.5065586720987, + "y": 2311.972555710253 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1707.153218476922, + "y": 2176.039248721311 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1705.0497665499784, + "y": 2029.1914613848467 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1703.0181141551627, + "y": 1789.9386595512806 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + }, + { + "type": "VSAPoint", + "x": 1676.804606592377, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 1790.1904333640305, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 2132.831278036873, + "y": 334.01963822471856 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2209.0824577516487, + "y": 196.52029498815347 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2280.0788311549086, + "y": 214.46913581675784 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2345.053938897079, + "y": 232.82808880019167 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2406.430397575602, + "y": 252.1184733940386 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2466.630823787921, + "y": 272.8616090538824 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2528.077834131477, + "y": 295.5788152353067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2626.972277996681, + "y": 334.08672189942854 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2683.174281565618, + "y": 428.6163050991843 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2636.9155845119085, + "y": 570.0364148944475 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2602.3359035137023, + "y": 679.2016045836615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2581.1485889486808, + "y": 750.3046656507598 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2562.658903353014, + "y": 818.1666036205969 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2551.3190086136897, + "y": 865.7283064025331 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2545.058458315721, + "y": 895.6477493986852 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2542.4441145955184, + "y": 909.8834645669292 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2539.941891688312, + "y": 924.5359428210015 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.2824566009085, + "y": 946.6345652094251 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3671357993244, + "y": 961.2177429989904 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3893819364166, + "y": 975.5256347551833 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.538148749601, + "y": 989.4206965556962 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2540.002389976296, + "y": 1002.7653844782211 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2543.971059353917, + "y": 1015.422154600451 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2549.633110619882, + "y": 1027.253463000078 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2557.177497511606, + "y": 1038.121765754795 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2566.7931737665076, + "y": 1047.8895189422938 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2578.669093122002, + "y": 1056.419178640267 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2592.9942093155073, + "y": 1063.5732009264073 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2609.9574760844393, + "y": 1069.214041878407 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2629.747847166216, + "y": 1073.204157573959 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2652.554276298253, + "y": 1075.406004090755 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2656.455947900562, + "y": 1149.9520876303336 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2642.4743193451973, + "y": 1283.9248328571011 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2632.348846491074, + "y": 1400.3953842544354 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2625.462074272455, + "y": 1499.2648032469053 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2621.1965476236046, + "y": 1580.4341512590793 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.9348114787863, + "y": 1643.804489715526 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.8911123953603, + "y": 1707.5262208487393 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.9884514435694, + "y": 1722.9543307086615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.243518754759, + "y": 1728.6863715569775 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2620.9069750474355, + "y": 1754.8103451532859 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2628.7361755238107, + "y": 1818.230094084754 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2644.9536288641093, + "y": 1932.092426039521 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2659.427198191514, + "y": 2020.1956325333963 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2669.339056867133, + "y": 2073.2470143796036 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 3075.2356380110023 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 3188.621464782656 + }, + { + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3183.059839328322 + } + ] +} diff --git a/src/test/ValentinaTest/share/DP_6_hem_by_first_edge_right_angle/output.json b/src/test/ValentinaTest/share/DP_6_hem_by_first_edge_right_angle/output.json new file mode 100644 index 000000000..eecd7a793 --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6_hem_by_first_edge_right_angle/output.json @@ -0,0 +1,354 @@ +{ + "vector": [ + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3105.0906012087407 + }, + { + "type": "QPointF", + "x": 1964.1829732503948, + "y": 3102.4512091620227 + }, + { + "type": "QPointF", + "x": 1933.0338680849484, + "y": 3094.81730821137 + }, + { + "type": "QPointF", + "x": 1903.6824104082243, + "y": 3083.6532352546133 + }, + { + "type": "QPointF", + "x": 1876.306482622738, + "y": 3068.9832678260373 + }, + { + "type": "QPointF", + "x": 1851.072905538479, + "y": 3050.9352185792304 + }, + { + "type": "QPointF", + "x": 1828.0762264948949, + "y": 3029.711847058814 + }, + { + "type": "QPointF", + "x": 1806.5434332627558, + "y": 3004.4171401472677 + }, + { + "type": "QPointF", + "x": 1792.1752542182253, + "y": 2984.1108079098112 + }, + { + "type": "QPointF", + "x": 1775.2813658756738, + "y": 2955.31641051052 + }, + { + "type": "QPointF", + "x": 1760.193622299537, + "y": 2923.9613674686166 + }, + { + "type": "QPointF", + "x": 1746.7478267536426, + "y": 2890.0634027709293 + }, + { + "type": "QPointF", + "x": 1734.7957064337616, + "y": 2853.6168595567024 + }, + { + "type": "QPointF", + "x": 1724.2060573521064, + "y": 2814.604541011345 + }, + { + "type": "QPointF", + "x": 1714.8626689124646, + "y": 2773.005215869235 + }, + { + "type": "QPointF", + "x": 1706.6613158714413, + "y": 2728.7978163582184 + }, + { + "type": "QPointF", + "x": 1699.5068804939508, + "y": 2681.9634933710727 + }, + { + "type": "QPointF", + "x": 1693.3109741320875, + "y": 2632.486420466245 + }, + { + "type": "QPointF", + "x": 1687.9901053084427, + "y": 2580.353927532551 + }, + { + "type": "QPointF", + "x": 1683.4582844809274, + "y": 2525.463573878589 + }, + { + "type": "QPointF", + "x": 1677.9141764602605, + "y": 2438.490408366745 + }, + { + "type": "QPointF", + "x": 1672.7227781832871, + "y": 2312.9046441927917 + }, + { + "type": "QPointF", + "x": 1669.3694379881103, + "y": 2176.97133720385 + }, + { + "type": "QPointF", + "x": 1667.2583677386065, + "y": 2029.732786467735 + }, + { + "type": "QPointF", + "x": 1663.711615174477, + "y": 1614.6157662806002 + }, + { + "type": "QPointF", + "x": 1638.2475801328742, + "y": 338.7023622047243 + }, + { + "type": "QPointF", + "x": 1787.856581446204, + "y": 338.70236220472435 + }, + { + "type": "QPointF", + "x": 2102.578059272009, + "y": 299.68559287387035 + }, + { + "type": "QPointF", + "x": 2142.670472387943, + "y": 142.3701762588955 + }, + { + "type": "QPointF", + "x": 2218.3461551694068, + "y": 159.8778773943609 + }, + { + "type": "QPointF", + "x": 2290.3556666474014, + "y": 178.09786268498775 + }, + { + "type": "QPointF", + "x": 2356.386310160867, + "y": 196.77174097480187 + }, + { + "type": "QPointF", + "x": 2418.743012243872, + "y": 216.38498242273093 + }, + { + "type": "QPointF", + "x": 2479.7368903013507, + "y": 237.4114485815882 + }, + { + "type": "QPointF", + "x": 2541.9171687800745, + "y": 260.40843460827716 + }, + { + "type": "QPointF", + "x": 2750.357423761806, + "y": 342.42842960123363 + }, + { + "type": "QPointF", + "x": 2672.872175384315, + "y": 581.6814322752841 + }, + { + "type": "QPointF", + "x": 2638.4646617671424, + "y": 690.3056975411124 + }, + { + "type": "QPointF", + "x": 2617.497332112694, + "y": 760.6705055142506 + }, + { + "type": "QPointF", + "x": 2599.283613619167, + "y": 827.5195726989015 + }, + { + "type": "QPointF", + "x": 2588.2720377242563, + "y": 873.7042430079038 + }, + { + "type": "QPointF", + "x": 2577.305280439003, + "y": 930.3907550083354 + }, + { + "type": "QPointF", + "x": 2574.164253819351, + "y": 962.3733430936679 + }, + { + "type": "QPointF", + "x": 2575.0488997085126, + "y": 984.4194995242519 + }, + { + "type": "QPointF", + "x": 2576.7527016493063, + "y": 993.6461551517026 + }, + { + "type": "QPointF", + "x": 2579.2278935113586, + "y": 1001.5399682728115 + }, + { + "type": "QPointF", + "x": 2582.4138013583442, + "y": 1008.1971772064464 + }, + { + "type": "QPointF", + "x": 2586.380914190024, + "y": 1013.9121258080509 + }, + { + "type": "QPointF", + "x": 2591.4629589216133, + "y": 1019.0745457263262 + }, + { + "type": "QPointF", + "x": 2598.261040748605, + "y": 1023.957142420315 + }, + { + "type": "QPointF", + "x": 2607.4734765281382, + "y": 1028.5578709579513 + }, + { + "type": "QPointF", + "x": 2619.6916995281545, + "y": 1032.6208296791679 + }, + { + "type": "QPointF", + "x": 2635.3135059870046, + "y": 1035.7704833610908 + }, + { + "type": "QPointF", + "x": 2654.824750408218, + "y": 1037.6541962965302 + }, + { + "type": "QPointF", + "x": 2707.7220622041555, + "y": 1038.9183044833856 + }, + { + "type": "QPointF", + "x": 2694.0188568415797, + "y": 1154.1454872438824 + }, + { + "type": "QPointF", + "x": 2680.0993114304906, + "y": 1287.5233483169186 + }, + { + "type": "QPointF", + "x": 2670.030212200457, + "y": 1403.3454492984993 + }, + { + "type": "QPointF", + "x": 2663.188370367668, + "y": 1501.5698286408856 + }, + { + "type": "QPointF", + "x": 2658.956431395277, + "y": 1582.100031707097 + }, + { + "type": "QPointF", + "x": 2656.724596297057, + "y": 1644.6325892192683 + }, + { + "type": "QPointF", + "x": 2656.0567713651967, + "y": 1726.6329271176091 + }, + { + "type": "QPointF", + "x": 2666.219994113066, + "y": 1813.3652788712084 + }, + { + "type": "QPointF", + "x": 2682.3143907791386, + "y": 1926.3636330117054 + }, + { + "type": "QPointF", + "x": 2696.632157927055, + "y": 2013.5184437587432 + }, + { + "type": "QPointF", + "x": 2720.090653009996, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 3226.7772517894564 + }, + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3220.498009761307 + }, + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3105.0906012087407 + } + ] +} diff --git a/src/test/ValentinaTest/share/DP_6_hem_by_first_edge_symmetry/input.json b/src/test/ValentinaTest/share/DP_6_hem_by_first_edge_symmetry/input.json new file mode 100644 index 000000000..ff53992ff --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6_hem_by_first_edge_symmetry/input.json @@ -0,0 +1,573 @@ +{ + "vector": [ + { + "angle": 2, + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "angle": 2, + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2014.9729320292, + "y": 3069.6130267291883 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1999.838557691558, + "y": 3068.8816935485092 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1985.2122453725951, + "y": 3067.420020685311 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1971.0851302475294, + "y": 3065.229001637756 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1957.4483474915787, + "y": 3062.309629904003 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1944.293032279962, + "y": 3058.6628989822143 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1931.6103197878972, + "y": 3054.289802370551 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1919.3913451906024, + "y": 3049.191333567172 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1907.6272436632962, + "y": 3043.368486070239 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1896.3091503811966, + "y": 3036.8222533779135 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1885.4282005195219, + "y": 3029.5536289883566 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1874.9755292534905, + "y": 3021.563606399727 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1864.9422717583204, + "y": 3012.8531791101877 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1855.3195632092302, + "y": 3003.4233406178982 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1846.098538781438, + "y": 2993.2750844210195 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1837.2703336501618, + "y": 2982.4094040177133 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1824.6988381756855, + "y": 2964.8572538605545 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1809.2929657948505, + "y": 2938.833269793301 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1795.2988037540088, + "y": 2909.9574718672293 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1782.645433454907, + "y": 2878.237808067624 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1771.2619362992912, + "y": 2843.682226379773 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1761.0773936889077, + "y": 2806.2986747889627 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1752.020887025502, + "y": 2766.095101280478 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1744.0214977108208, + "y": 2723.0794538396067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1737.00830714661, + "y": 2677.259680451635 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1730.9103967346155, + "y": 2628.6437291018483 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1725.656847876584, + "y": 2577.2395477755335 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1721.1767419742605, + "y": 2523.055084457977 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1715.6771359215397, + "y": 2436.927798469381 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1710.5065586720987, + "y": 2311.972555710253 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1707.153218476922, + "y": 2176.039248721311 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1705.0497665499784, + "y": 2029.1914613848467 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1703.0181141551627, + "y": 1789.9386595512806 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + }, + { + "type": "VSAPoint", + "x": 1676.804606592377, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 1790.1904333640305, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 2132.831278036873, + "y": 334.01963822471856 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2209.0824577516487, + "y": 196.52029498815347 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2280.0788311549086, + "y": 214.46913581675784 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2345.053938897079, + "y": 232.82808880019167 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2406.430397575602, + "y": 252.1184733940386 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2466.630823787921, + "y": 272.8616090538824 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2528.077834131477, + "y": 295.5788152353067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2626.972277996681, + "y": 334.08672189942854 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2683.174281565618, + "y": 428.6163050991843 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2636.9155845119085, + "y": 570.0364148944475 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2602.3359035137023, + "y": 679.2016045836615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2581.1485889486808, + "y": 750.3046656507598 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2562.658903353014, + "y": 818.1666036205969 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2551.3190086136897, + "y": 865.7283064025331 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2545.058458315721, + "y": 895.6477493986852 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2542.4441145955184, + "y": 909.8834645669292 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2539.941891688312, + "y": 924.5359428210015 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.2824566009085, + "y": 946.6345652094251 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3671357993244, + "y": 961.2177429989904 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3893819364166, + "y": 975.5256347551833 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.538148749601, + "y": 989.4206965556962 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2540.002389976296, + "y": 1002.7653844782211 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2543.971059353917, + "y": 1015.422154600451 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2549.633110619882, + "y": 1027.253463000078 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2557.177497511606, + "y": 1038.121765754795 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2566.7931737665076, + "y": 1047.8895189422938 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2578.669093122002, + "y": 1056.419178640267 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2592.9942093155073, + "y": 1063.5732009264073 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2609.9574760844393, + "y": 1069.214041878407 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2629.747847166216, + "y": 1073.204157573959 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2652.554276298253, + "y": 1075.406004090755 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2656.455947900562, + "y": 1149.9520876303336 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2642.4743193451973, + "y": 1283.9248328571011 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2632.348846491074, + "y": 1400.3953842544354 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2625.462074272455, + "y": 1499.2648032469053 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2621.1965476236046, + "y": 1580.4341512590793 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.9348114787863, + "y": 1643.804489715526 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.8911123953603, + "y": 1707.5262208487393 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.9884514435694, + "y": 1722.9543307086615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.243518754759, + "y": 1728.6863715569775 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2620.9069750474355, + "y": 1754.8103451532859 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2628.7361755238107, + "y": 1818.230094084754 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2644.9536288641093, + "y": 1932.092426039521 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2659.427198191514, + "y": 2020.1956325333963 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2669.339056867133, + "y": 2073.2470143796036 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 3075.2356380110023 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 3188.621464782656 + }, + { + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3183.059839328322 + } + ] +} diff --git a/src/test/ValentinaTest/share/DP_6_hem_by_first_edge_symmetry/output.json b/src/test/ValentinaTest/share/DP_6_hem_by_first_edge_symmetry/output.json new file mode 100644 index 000000000..eecd7a793 --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6_hem_by_first_edge_symmetry/output.json @@ -0,0 +1,354 @@ +{ + "vector": [ + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3105.0906012087407 + }, + { + "type": "QPointF", + "x": 1964.1829732503948, + "y": 3102.4512091620227 + }, + { + "type": "QPointF", + "x": 1933.0338680849484, + "y": 3094.81730821137 + }, + { + "type": "QPointF", + "x": 1903.6824104082243, + "y": 3083.6532352546133 + }, + { + "type": "QPointF", + "x": 1876.306482622738, + "y": 3068.9832678260373 + }, + { + "type": "QPointF", + "x": 1851.072905538479, + "y": 3050.9352185792304 + }, + { + "type": "QPointF", + "x": 1828.0762264948949, + "y": 3029.711847058814 + }, + { + "type": "QPointF", + "x": 1806.5434332627558, + "y": 3004.4171401472677 + }, + { + "type": "QPointF", + "x": 1792.1752542182253, + "y": 2984.1108079098112 + }, + { + "type": "QPointF", + "x": 1775.2813658756738, + "y": 2955.31641051052 + }, + { + "type": "QPointF", + "x": 1760.193622299537, + "y": 2923.9613674686166 + }, + { + "type": "QPointF", + "x": 1746.7478267536426, + "y": 2890.0634027709293 + }, + { + "type": "QPointF", + "x": 1734.7957064337616, + "y": 2853.6168595567024 + }, + { + "type": "QPointF", + "x": 1724.2060573521064, + "y": 2814.604541011345 + }, + { + "type": "QPointF", + "x": 1714.8626689124646, + "y": 2773.005215869235 + }, + { + "type": "QPointF", + "x": 1706.6613158714413, + "y": 2728.7978163582184 + }, + { + "type": "QPointF", + "x": 1699.5068804939508, + "y": 2681.9634933710727 + }, + { + "type": "QPointF", + "x": 1693.3109741320875, + "y": 2632.486420466245 + }, + { + "type": "QPointF", + "x": 1687.9901053084427, + "y": 2580.353927532551 + }, + { + "type": "QPointF", + "x": 1683.4582844809274, + "y": 2525.463573878589 + }, + { + "type": "QPointF", + "x": 1677.9141764602605, + "y": 2438.490408366745 + }, + { + "type": "QPointF", + "x": 1672.7227781832871, + "y": 2312.9046441927917 + }, + { + "type": "QPointF", + "x": 1669.3694379881103, + "y": 2176.97133720385 + }, + { + "type": "QPointF", + "x": 1667.2583677386065, + "y": 2029.732786467735 + }, + { + "type": "QPointF", + "x": 1663.711615174477, + "y": 1614.6157662806002 + }, + { + "type": "QPointF", + "x": 1638.2475801328742, + "y": 338.7023622047243 + }, + { + "type": "QPointF", + "x": 1787.856581446204, + "y": 338.70236220472435 + }, + { + "type": "QPointF", + "x": 2102.578059272009, + "y": 299.68559287387035 + }, + { + "type": "QPointF", + "x": 2142.670472387943, + "y": 142.3701762588955 + }, + { + "type": "QPointF", + "x": 2218.3461551694068, + "y": 159.8778773943609 + }, + { + "type": "QPointF", + "x": 2290.3556666474014, + "y": 178.09786268498775 + }, + { + "type": "QPointF", + "x": 2356.386310160867, + "y": 196.77174097480187 + }, + { + "type": "QPointF", + "x": 2418.743012243872, + "y": 216.38498242273093 + }, + { + "type": "QPointF", + "x": 2479.7368903013507, + "y": 237.4114485815882 + }, + { + "type": "QPointF", + "x": 2541.9171687800745, + "y": 260.40843460827716 + }, + { + "type": "QPointF", + "x": 2750.357423761806, + "y": 342.42842960123363 + }, + { + "type": "QPointF", + "x": 2672.872175384315, + "y": 581.6814322752841 + }, + { + "type": "QPointF", + "x": 2638.4646617671424, + "y": 690.3056975411124 + }, + { + "type": "QPointF", + "x": 2617.497332112694, + "y": 760.6705055142506 + }, + { + "type": "QPointF", + "x": 2599.283613619167, + "y": 827.5195726989015 + }, + { + "type": "QPointF", + "x": 2588.2720377242563, + "y": 873.7042430079038 + }, + { + "type": "QPointF", + "x": 2577.305280439003, + "y": 930.3907550083354 + }, + { + "type": "QPointF", + "x": 2574.164253819351, + "y": 962.3733430936679 + }, + { + "type": "QPointF", + "x": 2575.0488997085126, + "y": 984.4194995242519 + }, + { + "type": "QPointF", + "x": 2576.7527016493063, + "y": 993.6461551517026 + }, + { + "type": "QPointF", + "x": 2579.2278935113586, + "y": 1001.5399682728115 + }, + { + "type": "QPointF", + "x": 2582.4138013583442, + "y": 1008.1971772064464 + }, + { + "type": "QPointF", + "x": 2586.380914190024, + "y": 1013.9121258080509 + }, + { + "type": "QPointF", + "x": 2591.4629589216133, + "y": 1019.0745457263262 + }, + { + "type": "QPointF", + "x": 2598.261040748605, + "y": 1023.957142420315 + }, + { + "type": "QPointF", + "x": 2607.4734765281382, + "y": 1028.5578709579513 + }, + { + "type": "QPointF", + "x": 2619.6916995281545, + "y": 1032.6208296791679 + }, + { + "type": "QPointF", + "x": 2635.3135059870046, + "y": 1035.7704833610908 + }, + { + "type": "QPointF", + "x": 2654.824750408218, + "y": 1037.6541962965302 + }, + { + "type": "QPointF", + "x": 2707.7220622041555, + "y": 1038.9183044833856 + }, + { + "type": "QPointF", + "x": 2694.0188568415797, + "y": 1154.1454872438824 + }, + { + "type": "QPointF", + "x": 2680.0993114304906, + "y": 1287.5233483169186 + }, + { + "type": "QPointF", + "x": 2670.030212200457, + "y": 1403.3454492984993 + }, + { + "type": "QPointF", + "x": 2663.188370367668, + "y": 1501.5698286408856 + }, + { + "type": "QPointF", + "x": 2658.956431395277, + "y": 1582.100031707097 + }, + { + "type": "QPointF", + "x": 2656.724596297057, + "y": 1644.6325892192683 + }, + { + "type": "QPointF", + "x": 2656.0567713651967, + "y": 1726.6329271176091 + }, + { + "type": "QPointF", + "x": 2666.219994113066, + "y": 1813.3652788712084 + }, + { + "type": "QPointF", + "x": 2682.3143907791386, + "y": 1926.3636330117054 + }, + { + "type": "QPointF", + "x": 2696.632157927055, + "y": 2013.5184437587432 + }, + { + "type": "QPointF", + "x": 2720.090653009996, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 3226.7772517894564 + }, + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3220.498009761307 + }, + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3105.0906012087407 + } + ] +} diff --git a/src/test/ValentinaTest/share/DP_6_hem_by_intersection/input.json b/src/test/ValentinaTest/share/DP_6_hem_by_intersection/input.json new file mode 100644 index 000000000..ec21fd72e --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6_hem_by_intersection/input.json @@ -0,0 +1,573 @@ +{ + "vector": [ + { + "angle": 1, + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "angle": 1, + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2014.9729320292, + "y": 3069.6130267291883 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1999.838557691558, + "y": 3068.8816935485092 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1985.2122453725951, + "y": 3067.420020685311 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1971.0851302475294, + "y": 3065.229001637756 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1957.4483474915787, + "y": 3062.309629904003 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1944.293032279962, + "y": 3058.6628989822143 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1931.6103197878972, + "y": 3054.289802370551 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1919.3913451906024, + "y": 3049.191333567172 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1907.6272436632962, + "y": 3043.368486070239 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1896.3091503811966, + "y": 3036.8222533779135 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1885.4282005195219, + "y": 3029.5536289883566 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1874.9755292534905, + "y": 3021.563606399727 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1864.9422717583204, + "y": 3012.8531791101877 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1855.3195632092302, + "y": 3003.4233406178982 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1846.098538781438, + "y": 2993.2750844210195 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1837.2703336501618, + "y": 2982.4094040177133 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1824.6988381756855, + "y": 2964.8572538605545 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1809.2929657948505, + "y": 2938.833269793301 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1795.2988037540088, + "y": 2909.9574718672293 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1782.645433454907, + "y": 2878.237808067624 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1771.2619362992912, + "y": 2843.682226379773 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1761.0773936889077, + "y": 2806.2986747889627 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1752.020887025502, + "y": 2766.095101280478 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1744.0214977108208, + "y": 2723.0794538396067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1737.00830714661, + "y": 2677.259680451635 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1730.9103967346155, + "y": 2628.6437291018483 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1725.656847876584, + "y": 2577.2395477755335 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1721.1767419742605, + "y": 2523.055084457977 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1715.6771359215397, + "y": 2436.927798469381 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1710.5065586720987, + "y": 2311.972555710253 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1707.153218476922, + "y": 2176.039248721311 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1705.0497665499784, + "y": 2029.1914613848467 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1703.0181141551627, + "y": 1789.9386595512806 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + }, + { + "type": "VSAPoint", + "x": 1676.804606592377, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 1790.1904333640305, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 2132.831278036873, + "y": 334.01963822471856 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2209.0824577516487, + "y": 196.52029498815347 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2280.0788311549086, + "y": 214.46913581675784 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2345.053938897079, + "y": 232.82808880019167 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2406.430397575602, + "y": 252.1184733940386 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2466.630823787921, + "y": 272.8616090538824 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2528.077834131477, + "y": 295.5788152353067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2626.972277996681, + "y": 334.08672189942854 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2683.174281565618, + "y": 428.6163050991843 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2636.9155845119085, + "y": 570.0364148944475 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2602.3359035137023, + "y": 679.2016045836615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2581.1485889486808, + "y": 750.3046656507598 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2562.658903353014, + "y": 818.1666036205969 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2551.3190086136897, + "y": 865.7283064025331 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2545.058458315721, + "y": 895.6477493986852 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2542.4441145955184, + "y": 909.8834645669292 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2539.941891688312, + "y": 924.5359428210015 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.2824566009085, + "y": 946.6345652094251 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3671357993244, + "y": 961.2177429989904 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3893819364166, + "y": 975.5256347551833 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.538148749601, + "y": 989.4206965556962 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2540.002389976296, + "y": 1002.7653844782211 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2543.971059353917, + "y": 1015.422154600451 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2549.633110619882, + "y": 1027.253463000078 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2557.177497511606, + "y": 1038.121765754795 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2566.7931737665076, + "y": 1047.8895189422938 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2578.669093122002, + "y": 1056.419178640267 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2592.9942093155073, + "y": 1063.5732009264073 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2609.9574760844393, + "y": 1069.214041878407 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2629.747847166216, + "y": 1073.204157573959 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2652.554276298253, + "y": 1075.406004090755 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2656.455947900562, + "y": 1149.9520876303336 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2642.4743193451973, + "y": 1283.9248328571011 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2632.348846491074, + "y": 1400.3953842544354 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2625.462074272455, + "y": 1499.2648032469053 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2621.1965476236046, + "y": 1580.4341512590793 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.9348114787863, + "y": 1643.804489715526 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.8911123953603, + "y": 1707.5262208487393 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.9884514435694, + "y": 1722.9543307086615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.243518754759, + "y": 1728.6863715569775 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2620.9069750474355, + "y": 1754.8103451532859 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2628.7361755238107, + "y": 1818.230094084754 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2644.9536288641093, + "y": 1932.092426039521 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2659.427198191514, + "y": 2020.1956325333963 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2669.339056867133, + "y": 2073.2470143796036 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 3075.2356380110023 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 3188.621464782656 + }, + { + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3183.059839328322 + } + ] +} diff --git a/src/test/ValentinaTest/share/DP_6_hem_by_intersection/output.json b/src/test/ValentinaTest/share/DP_6_hem_by_intersection/output.json new file mode 100644 index 000000000..eecd7a793 --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6_hem_by_intersection/output.json @@ -0,0 +1,354 @@ +{ + "vector": [ + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3105.0906012087407 + }, + { + "type": "QPointF", + "x": 1964.1829732503948, + "y": 3102.4512091620227 + }, + { + "type": "QPointF", + "x": 1933.0338680849484, + "y": 3094.81730821137 + }, + { + "type": "QPointF", + "x": 1903.6824104082243, + "y": 3083.6532352546133 + }, + { + "type": "QPointF", + "x": 1876.306482622738, + "y": 3068.9832678260373 + }, + { + "type": "QPointF", + "x": 1851.072905538479, + "y": 3050.9352185792304 + }, + { + "type": "QPointF", + "x": 1828.0762264948949, + "y": 3029.711847058814 + }, + { + "type": "QPointF", + "x": 1806.5434332627558, + "y": 3004.4171401472677 + }, + { + "type": "QPointF", + "x": 1792.1752542182253, + "y": 2984.1108079098112 + }, + { + "type": "QPointF", + "x": 1775.2813658756738, + "y": 2955.31641051052 + }, + { + "type": "QPointF", + "x": 1760.193622299537, + "y": 2923.9613674686166 + }, + { + "type": "QPointF", + "x": 1746.7478267536426, + "y": 2890.0634027709293 + }, + { + "type": "QPointF", + "x": 1734.7957064337616, + "y": 2853.6168595567024 + }, + { + "type": "QPointF", + "x": 1724.2060573521064, + "y": 2814.604541011345 + }, + { + "type": "QPointF", + "x": 1714.8626689124646, + "y": 2773.005215869235 + }, + { + "type": "QPointF", + "x": 1706.6613158714413, + "y": 2728.7978163582184 + }, + { + "type": "QPointF", + "x": 1699.5068804939508, + "y": 2681.9634933710727 + }, + { + "type": "QPointF", + "x": 1693.3109741320875, + "y": 2632.486420466245 + }, + { + "type": "QPointF", + "x": 1687.9901053084427, + "y": 2580.353927532551 + }, + { + "type": "QPointF", + "x": 1683.4582844809274, + "y": 2525.463573878589 + }, + { + "type": "QPointF", + "x": 1677.9141764602605, + "y": 2438.490408366745 + }, + { + "type": "QPointF", + "x": 1672.7227781832871, + "y": 2312.9046441927917 + }, + { + "type": "QPointF", + "x": 1669.3694379881103, + "y": 2176.97133720385 + }, + { + "type": "QPointF", + "x": 1667.2583677386065, + "y": 2029.732786467735 + }, + { + "type": "QPointF", + "x": 1663.711615174477, + "y": 1614.6157662806002 + }, + { + "type": "QPointF", + "x": 1638.2475801328742, + "y": 338.7023622047243 + }, + { + "type": "QPointF", + "x": 1787.856581446204, + "y": 338.70236220472435 + }, + { + "type": "QPointF", + "x": 2102.578059272009, + "y": 299.68559287387035 + }, + { + "type": "QPointF", + "x": 2142.670472387943, + "y": 142.3701762588955 + }, + { + "type": "QPointF", + "x": 2218.3461551694068, + "y": 159.8778773943609 + }, + { + "type": "QPointF", + "x": 2290.3556666474014, + "y": 178.09786268498775 + }, + { + "type": "QPointF", + "x": 2356.386310160867, + "y": 196.77174097480187 + }, + { + "type": "QPointF", + "x": 2418.743012243872, + "y": 216.38498242273093 + }, + { + "type": "QPointF", + "x": 2479.7368903013507, + "y": 237.4114485815882 + }, + { + "type": "QPointF", + "x": 2541.9171687800745, + "y": 260.40843460827716 + }, + { + "type": "QPointF", + "x": 2750.357423761806, + "y": 342.42842960123363 + }, + { + "type": "QPointF", + "x": 2672.872175384315, + "y": 581.6814322752841 + }, + { + "type": "QPointF", + "x": 2638.4646617671424, + "y": 690.3056975411124 + }, + { + "type": "QPointF", + "x": 2617.497332112694, + "y": 760.6705055142506 + }, + { + "type": "QPointF", + "x": 2599.283613619167, + "y": 827.5195726989015 + }, + { + "type": "QPointF", + "x": 2588.2720377242563, + "y": 873.7042430079038 + }, + { + "type": "QPointF", + "x": 2577.305280439003, + "y": 930.3907550083354 + }, + { + "type": "QPointF", + "x": 2574.164253819351, + "y": 962.3733430936679 + }, + { + "type": "QPointF", + "x": 2575.0488997085126, + "y": 984.4194995242519 + }, + { + "type": "QPointF", + "x": 2576.7527016493063, + "y": 993.6461551517026 + }, + { + "type": "QPointF", + "x": 2579.2278935113586, + "y": 1001.5399682728115 + }, + { + "type": "QPointF", + "x": 2582.4138013583442, + "y": 1008.1971772064464 + }, + { + "type": "QPointF", + "x": 2586.380914190024, + "y": 1013.9121258080509 + }, + { + "type": "QPointF", + "x": 2591.4629589216133, + "y": 1019.0745457263262 + }, + { + "type": "QPointF", + "x": 2598.261040748605, + "y": 1023.957142420315 + }, + { + "type": "QPointF", + "x": 2607.4734765281382, + "y": 1028.5578709579513 + }, + { + "type": "QPointF", + "x": 2619.6916995281545, + "y": 1032.6208296791679 + }, + { + "type": "QPointF", + "x": 2635.3135059870046, + "y": 1035.7704833610908 + }, + { + "type": "QPointF", + "x": 2654.824750408218, + "y": 1037.6541962965302 + }, + { + "type": "QPointF", + "x": 2707.7220622041555, + "y": 1038.9183044833856 + }, + { + "type": "QPointF", + "x": 2694.0188568415797, + "y": 1154.1454872438824 + }, + { + "type": "QPointF", + "x": 2680.0993114304906, + "y": 1287.5233483169186 + }, + { + "type": "QPointF", + "x": 2670.030212200457, + "y": 1403.3454492984993 + }, + { + "type": "QPointF", + "x": 2663.188370367668, + "y": 1501.5698286408856 + }, + { + "type": "QPointF", + "x": 2658.956431395277, + "y": 1582.100031707097 + }, + { + "type": "QPointF", + "x": 2656.724596297057, + "y": 1644.6325892192683 + }, + { + "type": "QPointF", + "x": 2656.0567713651967, + "y": 1726.6329271176091 + }, + { + "type": "QPointF", + "x": 2666.219994113066, + "y": 1813.3652788712084 + }, + { + "type": "QPointF", + "x": 2682.3143907791386, + "y": 1926.3636330117054 + }, + { + "type": "QPointF", + "x": 2696.632157927055, + "y": 2013.5184437587432 + }, + { + "type": "QPointF", + "x": 2720.090653009996, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 3226.7772517894564 + }, + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3220.498009761307 + }, + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3105.0906012087407 + } + ] +} diff --git a/src/test/ValentinaTest/share/DP_6_hem_by_length/input.json b/src/test/ValentinaTest/share/DP_6_hem_by_length/input.json new file mode 100644 index 000000000..5030eb91a --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6_hem_by_length/input.json @@ -0,0 +1,571 @@ +{ + "vector": [ + { + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2014.9729320292, + "y": 3069.6130267291883 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1999.838557691558, + "y": 3068.8816935485092 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1985.2122453725951, + "y": 3067.420020685311 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1971.0851302475294, + "y": 3065.229001637756 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1957.4483474915787, + "y": 3062.309629904003 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1944.293032279962, + "y": 3058.6628989822143 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1931.6103197878972, + "y": 3054.289802370551 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1919.3913451906024, + "y": 3049.191333567172 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1907.6272436632962, + "y": 3043.368486070239 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1896.3091503811966, + "y": 3036.8222533779135 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1885.4282005195219, + "y": 3029.5536289883566 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1874.9755292534905, + "y": 3021.563606399727 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1864.9422717583204, + "y": 3012.8531791101877 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1855.3195632092302, + "y": 3003.4233406178982 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1846.098538781438, + "y": 2993.2750844210195 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1837.2703336501618, + "y": 2982.4094040177133 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1824.6988381756855, + "y": 2964.8572538605545 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1809.2929657948505, + "y": 2938.833269793301 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1795.2988037540088, + "y": 2909.9574718672293 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1782.645433454907, + "y": 2878.237808067624 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1771.2619362992912, + "y": 2843.682226379773 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1761.0773936889077, + "y": 2806.2986747889627 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1752.020887025502, + "y": 2766.095101280478 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1744.0214977108208, + "y": 2723.0794538396067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1737.00830714661, + "y": 2677.259680451635 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1730.9103967346155, + "y": 2628.6437291018483 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1725.656847876584, + "y": 2577.2395477755335 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1721.1767419742605, + "y": 2523.055084457977 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1715.6771359215397, + "y": 2436.927798469381 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1710.5065586720987, + "y": 2311.972555710253 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1707.153218476922, + "y": 2176.039248721311 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1705.0497665499784, + "y": 2029.1914613848467 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1703.0181141551627, + "y": 1789.9386595512806 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + }, + { + "type": "VSAPoint", + "x": 1676.804606592377, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 1790.1904333640305, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 2132.831278036873, + "y": 334.01963822471856 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2209.0824577516487, + "y": 196.52029498815347 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2280.0788311549086, + "y": 214.46913581675784 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2345.053938897079, + "y": 232.82808880019167 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2406.430397575602, + "y": 252.1184733940386 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2466.630823787921, + "y": 272.8616090538824 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2528.077834131477, + "y": 295.5788152353067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2626.972277996681, + "y": 334.08672189942854 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2683.174281565618, + "y": 428.6163050991843 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2636.9155845119085, + "y": 570.0364148944475 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2602.3359035137023, + "y": 679.2016045836615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2581.1485889486808, + "y": 750.3046656507598 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2562.658903353014, + "y": 818.1666036205969 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2551.3190086136897, + "y": 865.7283064025331 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2545.058458315721, + "y": 895.6477493986852 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2542.4441145955184, + "y": 909.8834645669292 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2539.941891688312, + "y": 924.5359428210015 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.2824566009085, + "y": 946.6345652094251 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3671357993244, + "y": 961.2177429989904 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3893819364166, + "y": 975.5256347551833 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.538148749601, + "y": 989.4206965556962 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2540.002389976296, + "y": 1002.7653844782211 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2543.971059353917, + "y": 1015.422154600451 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2549.633110619882, + "y": 1027.253463000078 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2557.177497511606, + "y": 1038.121765754795 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2566.7931737665076, + "y": 1047.8895189422938 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2578.669093122002, + "y": 1056.419178640267 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2592.9942093155073, + "y": 1063.5732009264073 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2609.9574760844393, + "y": 1069.214041878407 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2629.747847166216, + "y": 1073.204157573959 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2652.554276298253, + "y": 1075.406004090755 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2656.455947900562, + "y": 1149.9520876303336 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2642.4743193451973, + "y": 1283.9248328571011 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2632.348846491074, + "y": 1400.3953842544354 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2625.462074272455, + "y": 1499.2648032469053 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2621.1965476236046, + "y": 1580.4341512590793 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.9348114787863, + "y": 1643.804489715526 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.8911123953603, + "y": 1707.5262208487393 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.9884514435694, + "y": 1722.9543307086615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.243518754759, + "y": 1728.6863715569775 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2620.9069750474355, + "y": 1754.8103451532859 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2628.7361755238107, + "y": 1818.230094084754 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2644.9536288641093, + "y": 1932.092426039521 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2659.427198191514, + "y": 2020.1956325333963 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2669.339056867133, + "y": 2073.2470143796036 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 3075.2356380110023 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 3188.621464782656 + }, + { + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3183.059839328322 + } + ] +} diff --git a/src/test/ValentinaTest/share/DP_6_hem_by_length/output.json b/src/test/ValentinaTest/share/DP_6_hem_by_length/output.json new file mode 100644 index 000000000..eecd7a793 --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6_hem_by_length/output.json @@ -0,0 +1,354 @@ +{ + "vector": [ + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3105.0906012087407 + }, + { + "type": "QPointF", + "x": 1964.1829732503948, + "y": 3102.4512091620227 + }, + { + "type": "QPointF", + "x": 1933.0338680849484, + "y": 3094.81730821137 + }, + { + "type": "QPointF", + "x": 1903.6824104082243, + "y": 3083.6532352546133 + }, + { + "type": "QPointF", + "x": 1876.306482622738, + "y": 3068.9832678260373 + }, + { + "type": "QPointF", + "x": 1851.072905538479, + "y": 3050.9352185792304 + }, + { + "type": "QPointF", + "x": 1828.0762264948949, + "y": 3029.711847058814 + }, + { + "type": "QPointF", + "x": 1806.5434332627558, + "y": 3004.4171401472677 + }, + { + "type": "QPointF", + "x": 1792.1752542182253, + "y": 2984.1108079098112 + }, + { + "type": "QPointF", + "x": 1775.2813658756738, + "y": 2955.31641051052 + }, + { + "type": "QPointF", + "x": 1760.193622299537, + "y": 2923.9613674686166 + }, + { + "type": "QPointF", + "x": 1746.7478267536426, + "y": 2890.0634027709293 + }, + { + "type": "QPointF", + "x": 1734.7957064337616, + "y": 2853.6168595567024 + }, + { + "type": "QPointF", + "x": 1724.2060573521064, + "y": 2814.604541011345 + }, + { + "type": "QPointF", + "x": 1714.8626689124646, + "y": 2773.005215869235 + }, + { + "type": "QPointF", + "x": 1706.6613158714413, + "y": 2728.7978163582184 + }, + { + "type": "QPointF", + "x": 1699.5068804939508, + "y": 2681.9634933710727 + }, + { + "type": "QPointF", + "x": 1693.3109741320875, + "y": 2632.486420466245 + }, + { + "type": "QPointF", + "x": 1687.9901053084427, + "y": 2580.353927532551 + }, + { + "type": "QPointF", + "x": 1683.4582844809274, + "y": 2525.463573878589 + }, + { + "type": "QPointF", + "x": 1677.9141764602605, + "y": 2438.490408366745 + }, + { + "type": "QPointF", + "x": 1672.7227781832871, + "y": 2312.9046441927917 + }, + { + "type": "QPointF", + "x": 1669.3694379881103, + "y": 2176.97133720385 + }, + { + "type": "QPointF", + "x": 1667.2583677386065, + "y": 2029.732786467735 + }, + { + "type": "QPointF", + "x": 1663.711615174477, + "y": 1614.6157662806002 + }, + { + "type": "QPointF", + "x": 1638.2475801328742, + "y": 338.7023622047243 + }, + { + "type": "QPointF", + "x": 1787.856581446204, + "y": 338.70236220472435 + }, + { + "type": "QPointF", + "x": 2102.578059272009, + "y": 299.68559287387035 + }, + { + "type": "QPointF", + "x": 2142.670472387943, + "y": 142.3701762588955 + }, + { + "type": "QPointF", + "x": 2218.3461551694068, + "y": 159.8778773943609 + }, + { + "type": "QPointF", + "x": 2290.3556666474014, + "y": 178.09786268498775 + }, + { + "type": "QPointF", + "x": 2356.386310160867, + "y": 196.77174097480187 + }, + { + "type": "QPointF", + "x": 2418.743012243872, + "y": 216.38498242273093 + }, + { + "type": "QPointF", + "x": 2479.7368903013507, + "y": 237.4114485815882 + }, + { + "type": "QPointF", + "x": 2541.9171687800745, + "y": 260.40843460827716 + }, + { + "type": "QPointF", + "x": 2750.357423761806, + "y": 342.42842960123363 + }, + { + "type": "QPointF", + "x": 2672.872175384315, + "y": 581.6814322752841 + }, + { + "type": "QPointF", + "x": 2638.4646617671424, + "y": 690.3056975411124 + }, + { + "type": "QPointF", + "x": 2617.497332112694, + "y": 760.6705055142506 + }, + { + "type": "QPointF", + "x": 2599.283613619167, + "y": 827.5195726989015 + }, + { + "type": "QPointF", + "x": 2588.2720377242563, + "y": 873.7042430079038 + }, + { + "type": "QPointF", + "x": 2577.305280439003, + "y": 930.3907550083354 + }, + { + "type": "QPointF", + "x": 2574.164253819351, + "y": 962.3733430936679 + }, + { + "type": "QPointF", + "x": 2575.0488997085126, + "y": 984.4194995242519 + }, + { + "type": "QPointF", + "x": 2576.7527016493063, + "y": 993.6461551517026 + }, + { + "type": "QPointF", + "x": 2579.2278935113586, + "y": 1001.5399682728115 + }, + { + "type": "QPointF", + "x": 2582.4138013583442, + "y": 1008.1971772064464 + }, + { + "type": "QPointF", + "x": 2586.380914190024, + "y": 1013.9121258080509 + }, + { + "type": "QPointF", + "x": 2591.4629589216133, + "y": 1019.0745457263262 + }, + { + "type": "QPointF", + "x": 2598.261040748605, + "y": 1023.957142420315 + }, + { + "type": "QPointF", + "x": 2607.4734765281382, + "y": 1028.5578709579513 + }, + { + "type": "QPointF", + "x": 2619.6916995281545, + "y": 1032.6208296791679 + }, + { + "type": "QPointF", + "x": 2635.3135059870046, + "y": 1035.7704833610908 + }, + { + "type": "QPointF", + "x": 2654.824750408218, + "y": 1037.6541962965302 + }, + { + "type": "QPointF", + "x": 2707.7220622041555, + "y": 1038.9183044833856 + }, + { + "type": "QPointF", + "x": 2694.0188568415797, + "y": 1154.1454872438824 + }, + { + "type": "QPointF", + "x": 2680.0993114304906, + "y": 1287.5233483169186 + }, + { + "type": "QPointF", + "x": 2670.030212200457, + "y": 1403.3454492984993 + }, + { + "type": "QPointF", + "x": 2663.188370367668, + "y": 1501.5698286408856 + }, + { + "type": "QPointF", + "x": 2658.956431395277, + "y": 1582.100031707097 + }, + { + "type": "QPointF", + "x": 2656.724596297057, + "y": 1644.6325892192683 + }, + { + "type": "QPointF", + "x": 2656.0567713651967, + "y": 1726.6329271176091 + }, + { + "type": "QPointF", + "x": 2666.219994113066, + "y": 1813.3652788712084 + }, + { + "type": "QPointF", + "x": 2682.3143907791386, + "y": 1926.3636330117054 + }, + { + "type": "QPointF", + "x": 2696.632157927055, + "y": 2013.5184437587432 + }, + { + "type": "QPointF", + "x": 2720.090653009996, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 3226.7772517894564 + }, + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3220.498009761307 + }, + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3105.0906012087407 + } + ] +} diff --git a/src/test/ValentinaTest/share/DP_6_hem_by_second_edge_right_angle/input.json b/src/test/ValentinaTest/share/DP_6_hem_by_second_edge_right_angle/input.json new file mode 100644 index 000000000..f28395b9a --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6_hem_by_second_edge_right_angle/input.json @@ -0,0 +1,573 @@ +{ + "vector": [ + { + "angle": 5, + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "angle": 5, + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2014.9729320292, + "y": 3069.6130267291883 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1999.838557691558, + "y": 3068.8816935485092 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1985.2122453725951, + "y": 3067.420020685311 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1971.0851302475294, + "y": 3065.229001637756 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1957.4483474915787, + "y": 3062.309629904003 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1944.293032279962, + "y": 3058.6628989822143 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1931.6103197878972, + "y": 3054.289802370551 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1919.3913451906024, + "y": 3049.191333567172 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1907.6272436632962, + "y": 3043.368486070239 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1896.3091503811966, + "y": 3036.8222533779135 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1885.4282005195219, + "y": 3029.5536289883566 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1874.9755292534905, + "y": 3021.563606399727 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1864.9422717583204, + "y": 3012.8531791101877 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1855.3195632092302, + "y": 3003.4233406178982 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1846.098538781438, + "y": 2993.2750844210195 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1837.2703336501618, + "y": 2982.4094040177133 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1824.6988381756855, + "y": 2964.8572538605545 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1809.2929657948505, + "y": 2938.833269793301 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1795.2988037540088, + "y": 2909.9574718672293 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1782.645433454907, + "y": 2878.237808067624 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1771.2619362992912, + "y": 2843.682226379773 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1761.0773936889077, + "y": 2806.2986747889627 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1752.020887025502, + "y": 2766.095101280478 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1744.0214977108208, + "y": 2723.0794538396067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1737.00830714661, + "y": 2677.259680451635 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1730.9103967346155, + "y": 2628.6437291018483 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1725.656847876584, + "y": 2577.2395477755335 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1721.1767419742605, + "y": 2523.055084457977 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1715.6771359215397, + "y": 2436.927798469381 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1710.5065586720987, + "y": 2311.972555710253 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1707.153218476922, + "y": 2176.039248721311 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1705.0497665499784, + "y": 2029.1914613848467 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1703.0181141551627, + "y": 1789.9386595512806 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + }, + { + "type": "VSAPoint", + "x": 1676.804606592377, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 1790.1904333640305, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 2132.831278036873, + "y": 334.01963822471856 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2209.0824577516487, + "y": 196.52029498815347 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2280.0788311549086, + "y": 214.46913581675784 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2345.053938897079, + "y": 232.82808880019167 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2406.430397575602, + "y": 252.1184733940386 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2466.630823787921, + "y": 272.8616090538824 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2528.077834131477, + "y": 295.5788152353067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2626.972277996681, + "y": 334.08672189942854 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2683.174281565618, + "y": 428.6163050991843 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2636.9155845119085, + "y": 570.0364148944475 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2602.3359035137023, + "y": 679.2016045836615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2581.1485889486808, + "y": 750.3046656507598 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2562.658903353014, + "y": 818.1666036205969 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2551.3190086136897, + "y": 865.7283064025331 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2545.058458315721, + "y": 895.6477493986852 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2542.4441145955184, + "y": 909.8834645669292 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2539.941891688312, + "y": 924.5359428210015 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.2824566009085, + "y": 946.6345652094251 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3671357993244, + "y": 961.2177429989904 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3893819364166, + "y": 975.5256347551833 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.538148749601, + "y": 989.4206965556962 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2540.002389976296, + "y": 1002.7653844782211 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2543.971059353917, + "y": 1015.422154600451 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2549.633110619882, + "y": 1027.253463000078 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2557.177497511606, + "y": 1038.121765754795 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2566.7931737665076, + "y": 1047.8895189422938 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2578.669093122002, + "y": 1056.419178640267 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2592.9942093155073, + "y": 1063.5732009264073 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2609.9574760844393, + "y": 1069.214041878407 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2629.747847166216, + "y": 1073.204157573959 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2652.554276298253, + "y": 1075.406004090755 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2656.455947900562, + "y": 1149.9520876303336 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2642.4743193451973, + "y": 1283.9248328571011 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2632.348846491074, + "y": 1400.3953842544354 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2625.462074272455, + "y": 1499.2648032469053 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2621.1965476236046, + "y": 1580.4341512590793 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.9348114787863, + "y": 1643.804489715526 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.8911123953603, + "y": 1707.5262208487393 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.9884514435694, + "y": 1722.9543307086615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.243518754759, + "y": 1728.6863715569775 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2620.9069750474355, + "y": 1754.8103451532859 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2628.7361755238107, + "y": 1818.230094084754 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2644.9536288641093, + "y": 1932.092426039521 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2659.427198191514, + "y": 2020.1956325333963 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2669.339056867133, + "y": 2073.2470143796036 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 3075.2356380110023 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 3188.621464782656 + }, + { + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3183.059839328322 + } + ] +} diff --git a/src/test/ValentinaTest/share/DP_6_hem_by_second_edge_right_angle/output.json b/src/test/ValentinaTest/share/DP_6_hem_by_second_edge_right_angle/output.json new file mode 100644 index 000000000..eecd7a793 --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6_hem_by_second_edge_right_angle/output.json @@ -0,0 +1,354 @@ +{ + "vector": [ + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3105.0906012087407 + }, + { + "type": "QPointF", + "x": 1964.1829732503948, + "y": 3102.4512091620227 + }, + { + "type": "QPointF", + "x": 1933.0338680849484, + "y": 3094.81730821137 + }, + { + "type": "QPointF", + "x": 1903.6824104082243, + "y": 3083.6532352546133 + }, + { + "type": "QPointF", + "x": 1876.306482622738, + "y": 3068.9832678260373 + }, + { + "type": "QPointF", + "x": 1851.072905538479, + "y": 3050.9352185792304 + }, + { + "type": "QPointF", + "x": 1828.0762264948949, + "y": 3029.711847058814 + }, + { + "type": "QPointF", + "x": 1806.5434332627558, + "y": 3004.4171401472677 + }, + { + "type": "QPointF", + "x": 1792.1752542182253, + "y": 2984.1108079098112 + }, + { + "type": "QPointF", + "x": 1775.2813658756738, + "y": 2955.31641051052 + }, + { + "type": "QPointF", + "x": 1760.193622299537, + "y": 2923.9613674686166 + }, + { + "type": "QPointF", + "x": 1746.7478267536426, + "y": 2890.0634027709293 + }, + { + "type": "QPointF", + "x": 1734.7957064337616, + "y": 2853.6168595567024 + }, + { + "type": "QPointF", + "x": 1724.2060573521064, + "y": 2814.604541011345 + }, + { + "type": "QPointF", + "x": 1714.8626689124646, + "y": 2773.005215869235 + }, + { + "type": "QPointF", + "x": 1706.6613158714413, + "y": 2728.7978163582184 + }, + { + "type": "QPointF", + "x": 1699.5068804939508, + "y": 2681.9634933710727 + }, + { + "type": "QPointF", + "x": 1693.3109741320875, + "y": 2632.486420466245 + }, + { + "type": "QPointF", + "x": 1687.9901053084427, + "y": 2580.353927532551 + }, + { + "type": "QPointF", + "x": 1683.4582844809274, + "y": 2525.463573878589 + }, + { + "type": "QPointF", + "x": 1677.9141764602605, + "y": 2438.490408366745 + }, + { + "type": "QPointF", + "x": 1672.7227781832871, + "y": 2312.9046441927917 + }, + { + "type": "QPointF", + "x": 1669.3694379881103, + "y": 2176.97133720385 + }, + { + "type": "QPointF", + "x": 1667.2583677386065, + "y": 2029.732786467735 + }, + { + "type": "QPointF", + "x": 1663.711615174477, + "y": 1614.6157662806002 + }, + { + "type": "QPointF", + "x": 1638.2475801328742, + "y": 338.7023622047243 + }, + { + "type": "QPointF", + "x": 1787.856581446204, + "y": 338.70236220472435 + }, + { + "type": "QPointF", + "x": 2102.578059272009, + "y": 299.68559287387035 + }, + { + "type": "QPointF", + "x": 2142.670472387943, + "y": 142.3701762588955 + }, + { + "type": "QPointF", + "x": 2218.3461551694068, + "y": 159.8778773943609 + }, + { + "type": "QPointF", + "x": 2290.3556666474014, + "y": 178.09786268498775 + }, + { + "type": "QPointF", + "x": 2356.386310160867, + "y": 196.77174097480187 + }, + { + "type": "QPointF", + "x": 2418.743012243872, + "y": 216.38498242273093 + }, + { + "type": "QPointF", + "x": 2479.7368903013507, + "y": 237.4114485815882 + }, + { + "type": "QPointF", + "x": 2541.9171687800745, + "y": 260.40843460827716 + }, + { + "type": "QPointF", + "x": 2750.357423761806, + "y": 342.42842960123363 + }, + { + "type": "QPointF", + "x": 2672.872175384315, + "y": 581.6814322752841 + }, + { + "type": "QPointF", + "x": 2638.4646617671424, + "y": 690.3056975411124 + }, + { + "type": "QPointF", + "x": 2617.497332112694, + "y": 760.6705055142506 + }, + { + "type": "QPointF", + "x": 2599.283613619167, + "y": 827.5195726989015 + }, + { + "type": "QPointF", + "x": 2588.2720377242563, + "y": 873.7042430079038 + }, + { + "type": "QPointF", + "x": 2577.305280439003, + "y": 930.3907550083354 + }, + { + "type": "QPointF", + "x": 2574.164253819351, + "y": 962.3733430936679 + }, + { + "type": "QPointF", + "x": 2575.0488997085126, + "y": 984.4194995242519 + }, + { + "type": "QPointF", + "x": 2576.7527016493063, + "y": 993.6461551517026 + }, + { + "type": "QPointF", + "x": 2579.2278935113586, + "y": 1001.5399682728115 + }, + { + "type": "QPointF", + "x": 2582.4138013583442, + "y": 1008.1971772064464 + }, + { + "type": "QPointF", + "x": 2586.380914190024, + "y": 1013.9121258080509 + }, + { + "type": "QPointF", + "x": 2591.4629589216133, + "y": 1019.0745457263262 + }, + { + "type": "QPointF", + "x": 2598.261040748605, + "y": 1023.957142420315 + }, + { + "type": "QPointF", + "x": 2607.4734765281382, + "y": 1028.5578709579513 + }, + { + "type": "QPointF", + "x": 2619.6916995281545, + "y": 1032.6208296791679 + }, + { + "type": "QPointF", + "x": 2635.3135059870046, + "y": 1035.7704833610908 + }, + { + "type": "QPointF", + "x": 2654.824750408218, + "y": 1037.6541962965302 + }, + { + "type": "QPointF", + "x": 2707.7220622041555, + "y": 1038.9183044833856 + }, + { + "type": "QPointF", + "x": 2694.0188568415797, + "y": 1154.1454872438824 + }, + { + "type": "QPointF", + "x": 2680.0993114304906, + "y": 1287.5233483169186 + }, + { + "type": "QPointF", + "x": 2670.030212200457, + "y": 1403.3454492984993 + }, + { + "type": "QPointF", + "x": 2663.188370367668, + "y": 1501.5698286408856 + }, + { + "type": "QPointF", + "x": 2658.956431395277, + "y": 1582.100031707097 + }, + { + "type": "QPointF", + "x": 2656.724596297057, + "y": 1644.6325892192683 + }, + { + "type": "QPointF", + "x": 2656.0567713651967, + "y": 1726.6329271176091 + }, + { + "type": "QPointF", + "x": 2666.219994113066, + "y": 1813.3652788712084 + }, + { + "type": "QPointF", + "x": 2682.3143907791386, + "y": 1926.3636330117054 + }, + { + "type": "QPointF", + "x": 2696.632157927055, + "y": 2013.5184437587432 + }, + { + "type": "QPointF", + "x": 2720.090653009996, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 3226.7772517894564 + }, + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3220.498009761307 + }, + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3105.0906012087407 + } + ] +} diff --git a/src/test/ValentinaTest/share/DP_6_hem_by_second_edge_symmetry/input.json b/src/test/ValentinaTest/share/DP_6_hem_by_second_edge_symmetry/input.json new file mode 100644 index 000000000..cc7e3962d --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6_hem_by_second_edge_symmetry/input.json @@ -0,0 +1,573 @@ +{ + "vector": [ + { + "angle": 3, + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "angle": 3, + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3069.6740125566685 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2014.9729320292, + "y": 3069.6130267291883 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1999.838557691558, + "y": 3068.8816935485092 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1985.2122453725951, + "y": 3067.420020685311 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1971.0851302475294, + "y": 3065.229001637756 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1957.4483474915787, + "y": 3062.309629904003 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1944.293032279962, + "y": 3058.6628989822143 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1931.6103197878972, + "y": 3054.289802370551 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1919.3913451906024, + "y": 3049.191333567172 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1907.6272436632962, + "y": 3043.368486070239 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1896.3091503811966, + "y": 3036.8222533779135 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1885.4282005195219, + "y": 3029.5536289883566 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1874.9755292534905, + "y": 3021.563606399727 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1864.9422717583204, + "y": 3012.8531791101877 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1855.3195632092302, + "y": 3003.4233406178982 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1846.098538781438, + "y": 2993.2750844210195 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1837.2703336501618, + "y": 2982.4094040177133 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1824.6988381756855, + "y": 2964.8572538605545 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1809.2929657948505, + "y": 2938.833269793301 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1795.2988037540088, + "y": 2909.9574718672293 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1782.645433454907, + "y": 2878.237808067624 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1771.2619362992912, + "y": 2843.682226379773 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1761.0773936889077, + "y": 2806.2986747889627 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1752.020887025502, + "y": 2766.095101280478 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1744.0214977108208, + "y": 2723.0794538396067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1737.00830714661, + "y": 2677.259680451635 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1730.9103967346155, + "y": 2628.6437291018483 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1725.656847876584, + "y": 2577.2395477755335 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1721.1767419742605, + "y": 2523.055084457977 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1715.6771359215397, + "y": 2436.927798469381 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1710.5065586720987, + "y": 2311.972555710253 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1707.153218476922, + "y": 2176.039248721311 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1705.0497665499784, + "y": 2029.1914613848467 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 1703.0181141551627, + "y": 1789.9386595512806 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + }, + { + "type": "VSAPoint", + "x": 1701.5055118110236, + "y": 1614.2929133858268 + }, + { + "type": "VSAPoint", + "x": 1676.804606592377, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 1790.1904333640305, + "y": 376.4976377952755 + }, + { + "type": "VSAPoint", + "x": 2132.831278036873, + "y": 334.01963822471856 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "type": "VSAPoint", + "x": 2170.166929133858, + "y": 187.5212598425196 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2209.0824577516487, + "y": 196.52029498815347 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2280.0788311549086, + "y": 214.46913581675784 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2345.053938897079, + "y": 232.82808880019167 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2406.430397575602, + "y": 252.1184733940386 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2466.630823787921, + "y": 272.8616090538824 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2528.077834131477, + "y": 295.5788152353067 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2626.972277996681, + "y": 334.08672189942854 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "type": "VSAPoint", + "x": 2703.4528262445083, + "y": 364.5878268403889 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2683.174281565618, + "y": 428.6163050991843 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2636.9155845119085, + "y": 570.0364148944475 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2602.3359035137023, + "y": 679.2016045836615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2581.1485889486808, + "y": 750.3046656507598 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2562.658903353014, + "y": 818.1666036205969 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2551.3190086136897, + "y": 865.7283064025331 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2545.058458315721, + "y": 895.6477493986852 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2542.4441145955184, + "y": 909.8834645669292 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2539.941891688312, + "y": 924.5359428210015 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.2824566009085, + "y": 946.6345652094251 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3671357993244, + "y": 961.2177429989904 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2536.3893819364166, + "y": 975.5256347551833 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2537.538148749601, + "y": 989.4206965556962 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2540.002389976296, + "y": 1002.7653844782211 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2543.971059353917, + "y": 1015.422154600451 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2549.633110619882, + "y": 1027.253463000078 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2557.177497511606, + "y": 1038.121765754795 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2566.7931737665076, + "y": 1047.8895189422938 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2578.669093122002, + "y": 1056.419178640267 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2592.9942093155073, + "y": 1063.5732009264073 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2609.9574760844393, + "y": 1069.214041878407 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2629.747847166216, + "y": 1073.204157573959 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2652.554276298253, + "y": 1075.406004090755 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "type": "VSAPoint", + "x": 2665.2850393700787, + "y": 1075.7102362204726 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2656.455947900562, + "y": 1149.9520876303336 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2642.4743193451973, + "y": 1283.9248328571011 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2632.348846491074, + "y": 1400.3953842544354 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2625.462074272455, + "y": 1499.2648032469053 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2621.1965476236046, + "y": 1580.4341512590793 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.9348114787863, + "y": 1643.804489715526 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.8911123953603, + "y": 1707.5262208487393 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2617.9884514435694, + "y": 1722.9543307086615 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2618.243518754759, + "y": 1728.6863715569775 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2620.9069750474355, + "y": 1754.8103451532859 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2628.7361755238107, + "y": 1818.230094084754 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2644.9536288641093, + "y": 1932.092426039521 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2659.427198191514, + "y": 2020.1956325333963 + }, + { + "angle": 6, + "type": "VSAPoint", + "x": 2669.339056867133, + "y": 2073.2470143796036 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2674.225047922979, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 2096.1826771653546 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 3075.2356380110023 + }, + { + "type": "VSAPoint", + "x": 2608.5921259842517, + "y": 3188.621464782656 + }, + { + "type": "VSAPoint", + "x": 2022.7551360150967, + "y": 3183.059839328322 + } + ] +} diff --git a/src/test/ValentinaTest/share/DP_6_hem_by_second_edge_symmetry/output.json b/src/test/ValentinaTest/share/DP_6_hem_by_second_edge_symmetry/output.json new file mode 100644 index 000000000..eecd7a793 --- /dev/null +++ b/src/test/ValentinaTest/share/DP_6_hem_by_second_edge_symmetry/output.json @@ -0,0 +1,354 @@ +{ + "vector": [ + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3105.0906012087407 + }, + { + "type": "QPointF", + "x": 1964.1829732503948, + "y": 3102.4512091620227 + }, + { + "type": "QPointF", + "x": 1933.0338680849484, + "y": 3094.81730821137 + }, + { + "type": "QPointF", + "x": 1903.6824104082243, + "y": 3083.6532352546133 + }, + { + "type": "QPointF", + "x": 1876.306482622738, + "y": 3068.9832678260373 + }, + { + "type": "QPointF", + "x": 1851.072905538479, + "y": 3050.9352185792304 + }, + { + "type": "QPointF", + "x": 1828.0762264948949, + "y": 3029.711847058814 + }, + { + "type": "QPointF", + "x": 1806.5434332627558, + "y": 3004.4171401472677 + }, + { + "type": "QPointF", + "x": 1792.1752542182253, + "y": 2984.1108079098112 + }, + { + "type": "QPointF", + "x": 1775.2813658756738, + "y": 2955.31641051052 + }, + { + "type": "QPointF", + "x": 1760.193622299537, + "y": 2923.9613674686166 + }, + { + "type": "QPointF", + "x": 1746.7478267536426, + "y": 2890.0634027709293 + }, + { + "type": "QPointF", + "x": 1734.7957064337616, + "y": 2853.6168595567024 + }, + { + "type": "QPointF", + "x": 1724.2060573521064, + "y": 2814.604541011345 + }, + { + "type": "QPointF", + "x": 1714.8626689124646, + "y": 2773.005215869235 + }, + { + "type": "QPointF", + "x": 1706.6613158714413, + "y": 2728.7978163582184 + }, + { + "type": "QPointF", + "x": 1699.5068804939508, + "y": 2681.9634933710727 + }, + { + "type": "QPointF", + "x": 1693.3109741320875, + "y": 2632.486420466245 + }, + { + "type": "QPointF", + "x": 1687.9901053084427, + "y": 2580.353927532551 + }, + { + "type": "QPointF", + "x": 1683.4582844809274, + "y": 2525.463573878589 + }, + { + "type": "QPointF", + "x": 1677.9141764602605, + "y": 2438.490408366745 + }, + { + "type": "QPointF", + "x": 1672.7227781832871, + "y": 2312.9046441927917 + }, + { + "type": "QPointF", + "x": 1669.3694379881103, + "y": 2176.97133720385 + }, + { + "type": "QPointF", + "x": 1667.2583677386065, + "y": 2029.732786467735 + }, + { + "type": "QPointF", + "x": 1663.711615174477, + "y": 1614.6157662806002 + }, + { + "type": "QPointF", + "x": 1638.2475801328742, + "y": 338.7023622047243 + }, + { + "type": "QPointF", + "x": 1787.856581446204, + "y": 338.70236220472435 + }, + { + "type": "QPointF", + "x": 2102.578059272009, + "y": 299.68559287387035 + }, + { + "type": "QPointF", + "x": 2142.670472387943, + "y": 142.3701762588955 + }, + { + "type": "QPointF", + "x": 2218.3461551694068, + "y": 159.8778773943609 + }, + { + "type": "QPointF", + "x": 2290.3556666474014, + "y": 178.09786268498775 + }, + { + "type": "QPointF", + "x": 2356.386310160867, + "y": 196.77174097480187 + }, + { + "type": "QPointF", + "x": 2418.743012243872, + "y": 216.38498242273093 + }, + { + "type": "QPointF", + "x": 2479.7368903013507, + "y": 237.4114485815882 + }, + { + "type": "QPointF", + "x": 2541.9171687800745, + "y": 260.40843460827716 + }, + { + "type": "QPointF", + "x": 2750.357423761806, + "y": 342.42842960123363 + }, + { + "type": "QPointF", + "x": 2672.872175384315, + "y": 581.6814322752841 + }, + { + "type": "QPointF", + "x": 2638.4646617671424, + "y": 690.3056975411124 + }, + { + "type": "QPointF", + "x": 2617.497332112694, + "y": 760.6705055142506 + }, + { + "type": "QPointF", + "x": 2599.283613619167, + "y": 827.5195726989015 + }, + { + "type": "QPointF", + "x": 2588.2720377242563, + "y": 873.7042430079038 + }, + { + "type": "QPointF", + "x": 2577.305280439003, + "y": 930.3907550083354 + }, + { + "type": "QPointF", + "x": 2574.164253819351, + "y": 962.3733430936679 + }, + { + "type": "QPointF", + "x": 2575.0488997085126, + "y": 984.4194995242519 + }, + { + "type": "QPointF", + "x": 2576.7527016493063, + "y": 993.6461551517026 + }, + { + "type": "QPointF", + "x": 2579.2278935113586, + "y": 1001.5399682728115 + }, + { + "type": "QPointF", + "x": 2582.4138013583442, + "y": 1008.1971772064464 + }, + { + "type": "QPointF", + "x": 2586.380914190024, + "y": 1013.9121258080509 + }, + { + "type": "QPointF", + "x": 2591.4629589216133, + "y": 1019.0745457263262 + }, + { + "type": "QPointF", + "x": 2598.261040748605, + "y": 1023.957142420315 + }, + { + "type": "QPointF", + "x": 2607.4734765281382, + "y": 1028.5578709579513 + }, + { + "type": "QPointF", + "x": 2619.6916995281545, + "y": 1032.6208296791679 + }, + { + "type": "QPointF", + "x": 2635.3135059870046, + "y": 1035.7704833610908 + }, + { + "type": "QPointF", + "x": 2654.824750408218, + "y": 1037.6541962965302 + }, + { + "type": "QPointF", + "x": 2707.7220622041555, + "y": 1038.9183044833856 + }, + { + "type": "QPointF", + "x": 2694.0188568415797, + "y": 1154.1454872438824 + }, + { + "type": "QPointF", + "x": 2680.0993114304906, + "y": 1287.5233483169186 + }, + { + "type": "QPointF", + "x": 2670.030212200457, + "y": 1403.3454492984993 + }, + { + "type": "QPointF", + "x": 2663.188370367668, + "y": 1501.5698286408856 + }, + { + "type": "QPointF", + "x": 2658.956431395277, + "y": 1582.100031707097 + }, + { + "type": "QPointF", + "x": 2656.724596297057, + "y": 1644.6325892192683 + }, + { + "type": "QPointF", + "x": 2656.0567713651967, + "y": 1726.6329271176091 + }, + { + "type": "QPointF", + "x": 2666.219994113066, + "y": 1813.3652788712084 + }, + { + "type": "QPointF", + "x": 2682.3143907791386, + "y": 1926.3636330117054 + }, + { + "type": "QPointF", + "x": 2696.632157927055, + "y": 2013.5184437587432 + }, + { + "type": "QPointF", + "x": 2720.090653009996, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 2133.977952755906 + }, + { + "type": "QPointF", + "x": 2646.387401574803, + "y": 3226.7772517894564 + }, + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3220.498009761307 + }, + { + "type": "QPointF", + "x": 1984.9598604245455, + "y": 3105.0906012087407 + } + ] +} diff --git a/src/test/ValentinaTest/share/test_data.qrc b/src/test/ValentinaTest/share/test_data.qrc index 47470dc10..77b97517b 100644 --- a/src/test/ValentinaTest/share/test_data.qrc +++ b/src/test/ValentinaTest/share/test_data.qrc @@ -84,5 +84,17 @@ Issue_642/output.json seamtest1_by_angle_2/input.json seamtest1_by_angle_2/output.json + DP_6_hem_by_first_edge_right_angle/input.json + DP_6_hem_by_first_edge_right_angle/output.json + DP_6_hem_by_first_edge_symmetry/input.json + DP_6_hem_by_first_edge_symmetry/output.json + DP_6_hem_by_intersection/input.json + DP_6_hem_by_intersection/output.json + DP_6_hem_by_length/input.json + DP_6_hem_by_length/output.json + DP_6_hem_by_second_edge_right_angle/input.json + DP_6_hem_by_second_edge_right_angle/output.json + DP_6_hem_by_second_edge_symmetry/input.json + DP_6_hem_by_second_edge_symmetry/output.json diff --git a/src/test/ValentinaTest/tst_vabstractpiece.cpp b/src/test/ValentinaTest/tst_vabstractpiece.cpp index c8d1e1c25..21cf7a368 100644 --- a/src/test/ValentinaTest/tst_vabstractpiece.cpp +++ b/src/test/ValentinaTest/tst_vabstractpiece.cpp @@ -237,6 +237,48 @@ void TST_VAbstractPiece::EquidistantRemoveLoop_data() QStringLiteral("://loop_start_point_on_line/input.json"), QStringLiteral("://loop_start_point_on_line/output.json"), 37.795275590551185 /*seam allowance width (1.0 cm)*/); + + // See file src/app/share/collection/bugs/DP_6_hem.val (private collection) + ASSERT_TEST_CASE("By length", + QStringLiteral("://DP_6_hem_by_length/input.json"), + QStringLiteral("://DP_6_hem_by_length/output.json"), + 37.795275590551185 /*seam allowance width (1.0 cm)*/); + + // See file src/app/share/collection/bugs/DP_6_hem.val (private collection) + ASSERT_TEST_CASE("By intersection", + QStringLiteral("://DP_6_hem_by_intersection/input.json"), + QStringLiteral("://DP_6_hem_by_intersection/output.json"), + 37.795275590551185 /*seam allowance width (1.0 cm)*/); + + // See file src/app/share/collection/bugs/DP_6_hem.val (private collection) + ASSERT_TEST_CASE("By first edge symmetry", + QStringLiteral("://DP_6_hem_by_first_edge_symmetry/input.json"), + QStringLiteral("://DP_6_hem_by_first_edge_symmetry/output.json"), + 37.795275590551185 /*seam allowance width (1.0 cm)*/); + + // See file src/app/share/collection/bugs/DP_6_hem.val (private collection) + ASSERT_TEST_CASE("By second edge symmetry", + QStringLiteral("://DP_6_hem_by_second_edge_symmetry/input.json"), + QStringLiteral("://DP_6_hem_by_second_edge_symmetry/output.json"), + 37.795275590551185 /*seam allowance width (1.0 cm)*/); + + // See file src/app/share/collection/bugs/DP_6_hem.val (private collection) + ASSERT_TEST_CASE("By first edge right angle", + QStringLiteral("://DP_6_hem_by_first_edge_right_angle/input.json"), + QStringLiteral("://DP_6_hem_by_first_edge_right_angle/output.json"), + 37.795275590551185 /*seam allowance width (1.0 cm)*/); + + // See file src/app/share/collection/bugs/DP_6_hem.val (private collection) + ASSERT_TEST_CASE("By second edge right angle", + QStringLiteral("://DP_6_hem_by_second_edge_right_angle/input.json"), + QStringLiteral("://DP_6_hem_by_second_edge_right_angle/output.json"), + 37.795275590551185 /*seam allowance width (1.0 cm)*/); + + // See file src/app/share/collection/bugs/DP_6.val (private collection) + ASSERT_TEST_CASE("Hem by seam allowance", + QStringLiteral("://DP_6/input.json"), + QStringLiteral("://DP_6/output.json"), + 37.795275590551185 /*seam allowance width (1.0 cm)*/); } //---------------------------------------------------------------------------------------------------------------------