From 7f666bd04d7546240528b46818f85404d30ed52a Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Sun, 17 Dec 2017 16:36:02 +0100 Subject: [PATCH] Fix failing tests. --- tests/opencascade/create_tria_02.cc | 2 +- tests/opencascade/normal_projection_01.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/opencascade/create_tria_02.cc b/tests/opencascade/create_tria_02.cc index b7165f3bed..e2f004d347 100644 --- a/tests/opencascade/create_tria_02.cc +++ b/tests/opencascade/create_tria_02.cc @@ -34,7 +34,7 @@ int main () ps.push_back(Point<2>(0, 2)); auto edge = interpolation_curve(ps); - BRepPrimAPI_MakeRevol::BRepPrimAPI_MakeRevol revol(edge, gp_Ax1(gp_Pnt(0,0,0), gp_Dir(0,0,1)), -numbers::PI/2); + BRepPrimAPI_MakeRevol revol(edge, gp_Ax1(gp_Pnt(0,0,0), gp_Dir(0,0,1)), -numbers::PI/2); revol.Build(); auto sh = revol.Shape(); diff --git a/tests/opencascade/normal_projection_01.cc b/tests/opencascade/normal_projection_01.cc index ddc02e7863..2af56e752d 100644 --- a/tests/opencascade/normal_projection_01.cc +++ b/tests/opencascade/normal_projection_01.cc @@ -42,7 +42,7 @@ int main () std::ofstream logfile("output"); gp_Pnt center(.5,.5,.5); - Standard_Real radius(Point<3>().distance(point(center))); + Standard_Real radius(Point<3>().distance(point<3>(center))); TopoDS_Face face = BRepPrimAPI_MakeSphere(center, radius); -- 2.39.5