From 80e7af2ec4a70b6262a12dfe1a0111ef90b04921 Mon Sep 17 00:00:00 2001 From: dismine Date: Tue, 7 Jan 2014 12:46:23 +0200 Subject: [PATCH] Fixed issue #41. --HG-- branch : develop --- src/container/vcontainer.cpp | 30 ++++++++++++++++++++++++++++++ src/container/vcontainer.h | 3 ++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/src/container/vcontainer.cpp b/src/container/vcontainer.cpp index f21c26977..65d94e1c5 100644 --- a/src/container/vcontainer.cpp +++ b/src/container/vcontainer.cpp @@ -215,6 +215,34 @@ void VContainer::UpdateId(qint64 newId) } } +QVector VContainer::CorrectEquidistantPoints(const QVector &points) const +{ + QVector correctPoints; + if(points.size()<4)//Better don't check if only three points. We can destroy equidistant. + { + qWarning()<<"Only three points."; + return points; + } + for(qint32 i = 0; i CorrectEquidistantPoints(const QVector &points) const; /** * @brief ContourPath create painter path for detail * @param idDetail id of detail @@ -440,7 +441,7 @@ public: void CreateManTableIGroup (); private: /** - * @brief _id current id. New object will have value +1. For full class equal 0. + * @brief _id current id. New object will have value +1. For empty class equal 0. */ static qint64 _id; /**