From 04b01d9c90792736b61949bc7469ca6f8a306a3a Mon Sep 17 00:00:00 2001 From: Andrea Mola Date: Thu, 14 May 2015 12:57:45 +0200 Subject: [PATCH] fixed bug in opencascade/boundary_lib.cc causing three failed tests in the release version of the library --- source/opencascade/boundary_lib.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/opencascade/boundary_lib.cc b/source/opencascade/boundary_lib.cc index 32b0f433da..76580f41bc 100644 --- a/source/opencascade/boundary_lib.cc +++ b/source/opencascade/boundary_lib.cc @@ -44,7 +44,7 @@ namespace OpenCASCADE - // Helper internal functions. +// Helper internal functions. double shape_length(const TopoDS_Shape &sh) { Handle_Adaptor3d_HCurve adapt = curve_adaptor(sh); @@ -233,13 +233,13 @@ namespace OpenCASCADE ArclengthProjectionLineManifold::pull_back(const Point &space_point) const { double t (0.0); -#ifdef DEBUG ShapeAnalysis_Curve curve_analysis; gp_Pnt proj; - Assert(curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true) - < tolerance*length, ExcPointNotOnManifold(space_point)); +#ifdef DEBUG + Assert(curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true) < + tolerance*length, ExcPointNotOnManifold(space_point)); #else - (void)space_point; + curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true); #endif return Point<1>(GCPnts_AbscissaPoint::Length(curve->GetCurve(),curve->GetCurve().FirstParameter(),t)); } @@ -256,7 +256,7 @@ namespace OpenCASCADE } - // Explicit instantiations +// Explicit instantiations #include "boundary_lib.inst" } // end namespace OpenCASCADE -- 2.39.5