From: Matthias Maier Date: Tue, 21 Mar 2017 19:34:16 +0000 (-0500) Subject: tests/opencascade: Fix two tests X-Git-Tag: v8.5.0-rc1~20^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ab9f86ab6a3edd07392e0db4b5cfee4efbb14d2;p=dealii.git tests/opencascade: Fix two tests --- 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;