From 0ab9f86ab6a3edd07392e0db4b5cfee4efbb14d2 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 21 Mar 2017 14:34:16 -0500 Subject: [PATCH] tests/opencascade: Fix two tests --- tests/opencascade/circle_normal_projection.cc | 4 ++-- tests/opencascade/closest_point_to_shape.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/opencascade/circle_normal_projection.cc b/tests/opencascade/circle_normal_projection.cc index 25be69516d..05cf8c9caa 100644 --- a/tests/opencascade/circle_normal_projection.cc +++ b/tests/opencascade/circle_normal_projection.cc @@ -50,10 +50,10 @@ int main () gp_Ax2 axis(center, z_axis); Standard_Real radius(std::sqrt(2.)/2.); - Handle(Geom_Curve) circle = GC_MakeCircle(axis, radius); + GC_MakeCircle make_circle(axis, radius); + Handle(Geom_Curve) circle = make_circle.Value(); TopoDS_Edge edge = BRepBuilderAPI_MakeEdge(circle); - // Create a boundary projector. NormalProjectionBoundary<2,3> boundary_line(edge); diff --git a/tests/opencascade/closest_point_to_shape.cc b/tests/opencascade/closest_point_to_shape.cc index e58b83054a..fdfdb61a0f 100644 --- a/tests/opencascade/closest_point_to_shape.cc +++ b/tests/opencascade/closest_point_to_shape.cc @@ -45,10 +45,10 @@ int main () gp_Ax2 axis(center, z_axis); Standard_Real radius(1.); - Handle(Geom_Curve) circle = GC_MakeCircle(axis, radius); + GC_MakeCircle make_circle(axis, radius); + Handle(Geom_Curve) circle = make_circle.Value(); TopoDS_Edge edge = BRepBuilderAPI_MakeEdge(circle); - // Now get a few points and project // them on the circle std::vector > points; -- 2.39.5