3#ifndef DUNE_AMIRAMESH_READER_HH
4#define DUNE_AMIRAMESH_READER_HH
14#include <amiramesh/AmiraMesh.h>
26 template<
class Gr
idType>
27 class AmiraMeshReader {
30 enum {dim = GridType::dimension};
33 static void createDomain(GridFactory<GridType>& factory,
const shared_ptr<PSurfaceBoundary<dim-1> >& boundary);
36 static void buildGrid(GridFactory<GridType>& factory, AmiraMesh* am);
39 static void build2dGrid(GridFactory<GridType>& factory, AmiraMesh* am);
47 static GridType* read(
const std::string& filename);
54 static void read(GridType& grid,
55 const std::string& filename);
66 static GridType* read(
const std::string& filename,
67 const shared_ptr<PSurfaceBoundary<dim-1> >& boundary);
79 static void read(GridType& grid,
80 const std::string& filename,
81 const shared_ptr<PSurfaceBoundary<dim-1> >& boundary);
91 template<
class DiscFuncType>
92 static void readFunction(DiscFuncType& f,
const std::string& filename);
99#include "amiramesh/amirameshreader.cc"
Provide a generic factory class for unstructured grids.
Dune namespace.
Definition: alignment.hh:10
A domain boundary implemented by the psurface library.