-// test StraightBoundary::project_to_surface for lines
+// test GridTools::project_to_object for lines
#include "../tests.h"
#include <deal.II/base/quadrature_lib.h>
#include <deal.II/grid/tria.h>
-#include <deal.II/grid/tria_boundary.h>
#include <deal.II/grid/tria_iterator.h>
#include <deal.II/grid/tria_accessor.h>
#include <deal.II/grid/grid_generator.h>
deallog << "dim=" << dim << std::endl;
Triangulation<dim> tria;
- StraightBoundary<dim> boundary;
for (unsigned int case_no=0; case_no<2; ++case_no)
{
{
deallog << " Line " << e << ", projected point=";
if (dim > 1)
- deallog << boundary.project_to_surface (cell->line(e), trial_point);
+ deallog << GridTools::project_to_object (cell->line(e), trial_point);
else
- deallog << boundary.project_to_surface (cell, trial_point);
+ deallog << GridTools::project_to_object (cell, trial_point);
deallog << " (line is from ";
if (dim > 1)
-// test StraightBoundary::project_to_surface for quads
+// test GridTools::project_to_object for quads
#include "../tests.h"
#include <deal.II/base/quadrature_lib.h>
#include <deal.II/grid/tria.h>
-#include <deal.II/grid/tria_boundary.h>
#include <deal.II/grid/tria_iterator.h>
#include <deal.II/grid/tria_accessor.h>
#include <deal.II/grid/grid_generator.h>
deallog << "dim=" << dim << std::endl;
Triangulation<dim> tria;
- StraightBoundary<dim> boundary;
for (unsigned int case_no=0; case_no<2; ++case_no)
{
deallog << " Quad " << e << ", projected point=";
- const Point<dim> p = boundary.project_to_surface (quad, trial_point);
+ const Point<dim> p = GridTools::project_to_object (quad, trial_point);
deallog << p;
deallog << " (quad is from ";
deallog << quad->vertex(0);
#include "../tests.h"
#include <deal.II/base/quadrature_lib.h>
#include <deal.II/grid/tria.h>
-#include <deal.II/grid/tria_boundary.h>
#include <deal.II/grid/tria_iterator.h>
#include <deal.II/grid/tria_accessor.h>
#include <deal.II/grid/grid_generator.h>
deallog << "dim=" << dim << std::endl;
Triangulation<dim> tria;
- StraightBoundary<dim> boundary;
GridGenerator::hyper_cube(tria, 0, 1);
deallog << " Quad " << e << ", projected point=";
- const Point<dim> p = boundary.project_to_surface (quad, trial_point);
+ const Point<dim> p = GridTools::project_to_object (quad, trial_point);
deallog << p;
deallog << " (quad is from ";
deallog << quad->vertex(0);