]> https://gitweb.dealii.org/ - dealii.git/commitdiff
tests/opencascade: Fix two tests
authorMatthias Maier <tamiko@43-1.org>
Tue, 21 Mar 2017 19:34:16 +0000 (14:34 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 21 Mar 2017 19:35:19 +0000 (14:35 -0500)
tests/opencascade/circle_normal_projection.cc
tests/opencascade/closest_point_to_shape.cc

index 25be69516dd749db94064621c31a651dd4a399df..05cf8c9caafc171028abc3b4faaca81f260e6954 100644 (file)
@@ -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);
 
index e58b83054a340b3e94b4be7fafe22a6d658357a6..fdfdb61a0fd55267a9c2e12529251291bb3b3097 100644 (file)
@@ -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<Point<3> > points;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.