From: Luca Heltai Date: Wed, 2 May 2018 11:22:06 +0000 (+0200) Subject: Fixed compilation. X-Git-Tag: v9.0.0-rc1~33^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f0f8ebfe3ff267fb91dbb180b0521a64823acad;p=dealii.git Fixed compilation. --- diff --git a/examples/step-54/step-54.cc b/examples/step-54/step-54.cc index f9bddb613e..17e6824faa 100644 --- a/examples/step-54/step-54.cc +++ b/examples/step-54/step-54.cc @@ -282,12 +282,12 @@ namespace Step54 switch (surface_projection_kind) { case NormalProjection: + { OpenCASCADE::NormalProjectionBoundary<2,3> normal_projector(bow_surface, tolerance); - tria.set_manifold(1,normal_projector); - - break; + } + break; // @p If surface_projection_kind value is @p DirectionalProjection, we select the // OpenCASCADE::DirectionalProjectionBoundary class. The new mesh points will @@ -297,12 +297,12 @@ namespace Step54 // OpenCASCADE::DirectionalProjectionBoundary constructor. In this case, // the projection is done along the y-axis. case DirectionalProjection: + { OpenCASCADE::DirectionalProjectionBoundary<2,3> directional_projector(bow_surface, Point<3>(0.0,1.0,0.0), tolerance); - tria.set_manifold(1,directional_projector); - - break; + } + break; // As a third option, if @p surface_projection_kind value // is @p NormalToMeshProjection, we select the @@ -314,12 +314,12 @@ namespace Step54 // requires a shape (containing at least a face) and a // tolerance. case NormalToMeshProjection: + { OpenCASCADE::NormalToMeshProjectionBoundary<2,3> normal_to_mesh_projector(bow_surface, tolerance); - tria.set_manifold(1,normal_to_mesh_projector); - - break; + } + break; // Finally, we use good software cleanliness by ensuring that this // really covers all possible options of the @p case statement. If we