Skip to content
Snippets Groups Projects
Commit 3e5b39f5 authored by Laurent Van Migroet's avatar Laurent Van Migroet
Browse files

replaced fmax by std::max for visual

parent b79926ce
No related branches found
No related tags found
No related merge requests found
......@@ -109,8 +109,8 @@ GeomMeshMatcher::matchVertices(GModel* m1, GModel *m2, bool& ok)
// We match the vertices if their coordinates are the same under the
// specified tolerance.
double score = fmax(fabs(v1->x() - v2->x()),
fmax(fabs(v1->y() - v2->y()),
double score = std::max(fabs(v1->x() - v2->x()),
std::max(fabs(v1->y() - v2->y()),
fabs(v1->z() - v2->z())));
if (score < tol && score < best_score) {
best_candidate = v2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment