From 136b9f66ed0cb391944167c5830cbd6ac711ceeb Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 10 Oct 2017 12:28:17 +0300 Subject: [PATCH] Fixed issue. Curves look too wavy. (grafted from 87dfd6a669e23585ed67982d043e6abd26a1f00b) --HG-- branch : develop --- ChangeLog.txt | 1 + src/libs/vgeometry/vabstractcubicbezier.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index f8bdabf1a..22f7eb5bf 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -64,6 +64,7 @@ - [#752] Valentina produces corrupted file if unite two pieces. - [#753] Elliptical arc tool is broken. - [#767] Valentina produces wrong main path. +- Fix issue. Curves look too wavy. # Version 0.5.0 May 9, 2017 - [#581] User can now filter input lists by keyword in function wizard. diff --git a/src/libs/vgeometry/vabstractcubicbezier.cpp b/src/libs/vgeometry/vabstractcubicbezier.cpp index d77a2c6ab..b7d94ea96 100644 --- a/src/libs/vgeometry/vabstractcubicbezier.cpp +++ b/src/libs/vgeometry/vabstractcubicbezier.cpp @@ -231,7 +231,7 @@ void VAbstractCubicBezier::PointBezier_r(qreal x1, qreal y1, qreal x2, qreal y2, const double m_angle_tolerance = 0.0; enum curve_recursion_limit_e { curve_recursion_limit = 32 }; const double m_cusp_limit = 0.0; - double m_approximation_scale = 1.0; + double m_approximation_scale = 10.0; double m_distance_tolerance_square; m_distance_tolerance_square = 0.5 / m_approximation_scale;