Fuzzy comparison is not enough to test points on axis.
--HG-- branch : develop
This commit is contained in:
parent
71466eac13
commit
48bb83a80e
|
@ -87,7 +87,7 @@ void VBestSquare::NewResult(const VBestSquareResData &data)
|
|||
{
|
||||
if (d->saveLength)
|
||||
{
|
||||
if (VFuzzyComparePossibleNulls(data.depthPosition, d->data.depthPosition)
|
||||
if (qAbs(data.depthPosition - d->data.depthPosition) <= accuracyPointOnLine
|
||||
&& IsImprovedSidePosition(data.sidePosition))
|
||||
{
|
||||
SaveResult();
|
||||
|
@ -100,7 +100,7 @@ void VBestSquare::NewResult(const VBestSquareResData &data)
|
|||
else
|
||||
{
|
||||
if (IsImprovedSidePosition(data.sidePosition)
|
||||
|| VFuzzyComparePossibleNulls(data.sidePosition, d->data.sidePosition))
|
||||
|| qAbs(data.sidePosition - d->data.sidePosition) <= accuracyPointOnLine)
|
||||
{
|
||||
SaveResult();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user