Segmenting curve should be more precise and doesn't create distruption.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2018-09-27 15:06:19 +03:00
parent 515df843d3
commit cead9092e3
2 changed files with 1 additions and 2 deletions

View File

@ -117,7 +117,7 @@ QVector<QPointF> VAbstractCurve::FromBegin(const QVector<QPointF> &points, const
{ {
theBegin = true; theBegin = true;
if (begin != points.at(i+1)) if (not VFuzzyComparePoints(begin, points.at(i+1)))
{ {
segment.append(begin); segment.append(begin);
} }

View File

@ -684,7 +684,6 @@ void TST_VSpline::GetSegmentPoints_issue767()
origPoints.append(QPointF(4191.718385429485, 2603.132565918948)); origPoints.append(QPointF(4191.718385429485, 2603.132565918948));
origPoints.append(QPointF(4196.210386810242, 2581.2346986946964)); origPoints.append(QPointF(4196.210386810242, 2581.2346986946964));
origPoints.append(QPointF(4200.083592082314, 2559.5684873884893)); origPoints.append(QPointF(4200.083592082314, 2559.5684873884893));
origPoints.append(QPointF(4200.023629188538, 2559.9039118110236));
// Begin comparison // Begin comparison
Comparison(res, origPoints); Comparison(res, origPoints);