]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add constant get_boundary_points(). 8002/head
authorLuca Heltai <luca.heltai@sissa.it>
Fri, 10 May 2019 16:06:11 +0000 (18:06 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Fri, 10 May 2019 16:37:45 +0000 (18:37 +0200)
include/deal.II/base/bounding_box.h
include/deal.II/fe/mapping.h
source/base/bounding_box.cc
source/fe/mapping.cc

index b6962409b166c9ead86416e59290aa0fb665de43..d0ba5285740e566045a65a19073341dc05601505 100644 (file)
@@ -127,6 +127,12 @@ public:
   std::pair<Point<spacedim, Number>, Point<spacedim, Number>> &
   get_boundary_points();
 
+  /**
+   * Return a const reference to the boundary_points
+   */
+  const std::pair<Point<spacedim, Number>, Point<spacedim, Number>> &
+  get_boundary_points() const;
+
   /**
    * Check if the current object and @p other_bbox are neighbors, i.e. if the boxes
    * have dimension spacedim, check if their intersection is non empty.
index acf799a63f1d8f85ddb8d89c6a84cb214ded965b..f28fb3237b508efef860d27546e94a995406aab8 100644 (file)
@@ -380,7 +380,7 @@ public:
    * true bounding box, since it does not take into account curved faces, and it
    * may be smaller than the true bounding box.
    *
-   * @param[in] cell The cell for which you want to compute the center
+   * @param[in] cell The cell for which you want to compute the bounding box
    *
    * @author Luca Heltai, 2019.
    */
index 006721f78caea451e360bf20abb09e4c464b3d59..12123de5d4ff45c16f081e910d4f729822720a34 100644 (file)
@@ -153,6 +153,15 @@ BoundingBox<spacedim, Number>::get_boundary_points()
 
 
 
+template <int spacedim, typename Number>
+const std::pair<Point<spacedim, Number>, Point<spacedim, Number>> &
+BoundingBox<spacedim, Number>::get_boundary_points() const
+{
+  return this->boundary_points;
+}
+
+
+
 template <int spacedim, typename Number>
 double
 BoundingBox<spacedim, Number>::volume() const
index 3716dac5d14590e775bd746a3ace1c0c94b7c5c4..612d71c9fbd0926d6cfd5578dbbb261e106fe0a9 100644 (file)
@@ -14,6 +14,8 @@
 // ---------------------------------------------------------------------
 
 
+#include <deal.II/boost_adaptors/bounding_box.h>
+
 #include <deal.II/fe/mapping.h>
 
 #include <deal.II/grid/tria.h>

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.