]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a way to extract radius and center from the boundary object.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 4 Jan 2000 14:18:30 +0000 (14:18 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 4 Jan 2000 14:18:30 +0000 (14:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@2159 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/tria_boundary_lib.h
deal.II/deal.II/source/grid/tria_boundary_lib.cc

index 11453234496d01fa59b1c2b42429a751e713ba03..5d17dcc0da891bb24f6af48cbecd9beca2a2378d 100644 (file)
@@ -50,7 +50,16 @@ class HyperBallBoundary : public StraightBoundary<dim> {
     virtual Point<dim>
     get_new_point_on_quad (const typename Triangulation<dim>::quad_iterator &quad) const;
 
+                                    /**
+                                     * Return the center of the ball.
+                                     */
+    Point<dim> get_center () const;
 
+                                    /**
+                                     * Return the radius of the ball.
+                                     */
+    double get_radius () const;
+    
   protected:
                                     /**
                                      * Center point of the hyperball.
index e0abceb8b47a7636b7f77f4496c013f4153afb3a..3683453d794c937c1554167f0db70dfa68339502 100644 (file)
@@ -66,6 +66,24 @@ get_new_point_on_quad (const typename Triangulation<dim>::quad_iterator &quad) c
 
 
 
+template <int dim>
+Point<dim>
+HyperBallBoundary<dim>::get_center () const 
+{
+  return center;
+};
+
+
+
+template <int dim>
+double
+HyperBallBoundary<dim>::get_radius () const 
+{
+  return radius;
+};
+
+
+
 
 template <int dim>
 HalfHyperBallBoundary<dim>::HalfHyperBallBoundary (const Point<dim> center,

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.