From 6be9ccc49e050d4c581ec7091edcb8345a39a4b6 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Thu, 14 May 2015 22:01:52 +0200 Subject: [PATCH] Fixed Wolfgang comment --- source/opencascade/boundary_lib.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/opencascade/boundary_lib.cc b/source/opencascade/boundary_lib.cc index 76580f41bc..4ac09a0706 100644 --- a/source/opencascade/boundary_lib.cc +++ b/source/opencascade/boundary_lib.cc @@ -235,12 +235,9 @@ namespace OpenCASCADE double t (0.0); ShapeAnalysis_Curve curve_analysis; gp_Pnt proj; -#ifdef DEBUG - Assert(curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true) < - tolerance*length, ExcPointNotOnManifold(space_point)); -#else - curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true); -#endif + double dist = curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true); + Assert(dist < tolerance*length, ExcPointNotOnManifold(space_point)); + dist *= 2; // Silence compiler warning in Release mode. return Point<1>(GCPnts_AbscissaPoint::Length(curve->GetCurve(),curve->GetCurve().FirstParameter(),t)); } -- 2.39.5