We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4665a12 + 23bf440 commit f1bb171Copy full SHA for f1bb171
1 file changed
kratos/geometries/brep_curve_on_surface.h
@@ -400,7 +400,7 @@ class BrepCurveOnSurface
400
401
const double max_parameter = mCurveNurbsInterval.MaxParameter();
402
if (rPointLocalCoordinates[0] > max_parameter) {
403
- rClosestPointLocalCoordinates[0] = min_parameter;
+ rClosestPointLocalCoordinates[0] = max_parameter;
404
return 0;
405
} else if (std::abs(rPointLocalCoordinates[0] - max_parameter) < Tolerance) {
406
rClosestPointLocalCoordinates[0] = rPointLocalCoordinates[0];
0 commit comments