Skip to content

Commit

Permalink
Changed code to comply with tolerance at other places
Browse files Browse the repository at this point in the history
  • Loading branch information
rainman110 committed Oct 15, 2020
1 parent be08962 commit 1d31d1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/guide_curves/CCPACSGuideCurves.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ std::vector<double> CCPACSGuideCurves::GetRelativeCircumferenceParameters() cons

std::sort(relCircs.begin(), relCircs.end());

double eps = 1e-10;
if ( relCircs.back() < 1.0 - eps ) {
if (std::abs(relCircs.back() - 1.0) >= 1e-3 ) {
relCircs.push_back(1.0);
}

Expand Down

0 comments on commit 1d31d1e

Please sign in to comment.