Chi-Tech
surfacemesher.h
Go to the documentation of this file.
1#ifndef CHI_MESH_SURFACEMESHER_H
2#define CHI_MESH_SURFACEMESHER_H
3
4#include "../chi_mesh.h"
5
6namespace chi_mesh
7{
9 {
10 Predefined = 1
11 };
12}
13
14//###################################################################
15/**Base class for surface meshers.*/
17{
18protected:
20 std::vector<double> xcuts_;
21 std::vector<double> ycuts_;
22public:
24 void AddXCut(double x_cut) {xcuts_.push_back(x_cut);}
25 void AddYCut(double y_cut) {ycuts_.push_back(y_cut);}
26 explicit SurfaceMesher(SurfaceMesherType in_type) : type_(in_type) {}
27
28 virtual void Execute();
29
30 virtual ~SurfaceMesher() = default;
31
32};
33
34#endif//CHI_MESH_SURFACEMESHER_H
std::vector< double > ycuts_
Definition: surfacemesher.h:21
void AddYCut(double y_cut)
Definition: surfacemesher.h:25
virtual ~SurfaceMesher()=default
std::vector< double > xcuts_
Definition: surfacemesher.h:20
SurfaceMesherType GetType() const
Definition: surfacemesher.h:23
SurfaceMesher(SurfaceMesherType in_type)
Definition: surfacemesher.h:26
void AddXCut(double x_cut)
Definition: surfacemesher.h:24
const SurfaceMesherType type_
Definition: surfacemesher.h:19