]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Removed statics, fixed some comments.
authorLuca Heltai <luca.heltai@sissa.it>
Tue, 1 May 2018 14:31:39 +0000 (16:31 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Tue, 1 May 2018 15:25:38 +0000 (17:25 +0200)
examples/step-54/step-54.cc

index dab031bf07339ae7b1662c06c5d1fc0170704f68..f9bddb613ea0b5892966ead3cc8ea327e840b7a4 100644 (file)
@@ -258,17 +258,14 @@ namespace Step54
     // point that lies on the wire and splits it into two equal arcs
     // lying between the edge vertices. We first check
     // that the wires vector contains at least one element and then
-    // create a boundary object for it. (The object is marked as
-    // @p static to ensure that it survives past the end of the
-    // current function, as we want to attach it to the triangulation
-    // object for later use).
+    // create a Manifold object for it.
     //
     // Once the projector is created, we then assign it to all the parts of
     // the triangulation with manifold_id = 2:
     Assert(wires.size() > 0,
            ExcMessage("I could not find any wire in the CAD file you gave me. Bailing out."));
 
-    static OpenCASCADE::ArclengthProjectionLineManifold<2,3>
+    OpenCASCADE::ArclengthProjectionLineManifold<2,3>
     line_projector (wires[0], tolerance);
 
     tria.set_manifold(2, line_projector);
@@ -285,7 +282,7 @@ namespace Step54
     switch (surface_projection_kind)
       {
       case NormalProjection:
-        static OpenCASCADE::NormalProjectionBoundary<2,3>
+        OpenCASCADE::NormalProjectionBoundary<2,3>
         normal_projector(bow_surface, tolerance);
 
         tria.set_manifold(1,normal_projector);
@@ -300,7 +297,7 @@ namespace Step54
       // OpenCASCADE::DirectionalProjectionBoundary constructor. In this case,
       // the projection is done along the y-axis.
       case DirectionalProjection:
-        static OpenCASCADE::DirectionalProjectionBoundary<2,3>
+        OpenCASCADE::DirectionalProjectionBoundary<2,3>
         directional_projector(bow_surface, Point<3>(0.0,1.0,0.0), tolerance);
 
         tria.set_manifold(1,directional_projector);
@@ -317,7 +314,7 @@ namespace Step54
       // requires a shape (containing at least a face) and a
       // tolerance.
       case NormalToMeshProjection:
-        static OpenCASCADE::NormalToMeshProjectionBoundary<2,3>
+        OpenCASCADE::NormalToMeshProjectionBoundary<2,3>
         normal_to_mesh_projector(bow_surface, tolerance);
 
         tria.set_manifold(1,normal_to_mesh_projector);

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.