feature magic is an amplification factor for edge sharpening (not corners)
[engrid.git] / src / libengrid / createhexcore.h
blob27cbb3fb7de6c291563287fb3f09b76ee28ca491
1 //
2 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 // + +
4 // + This file is part of enGrid. +
5 // + +
6 // + Copyright 2008-2013 enGits GmbH +
7 // + +
8 // + enGrid is free software: you can redistribute it and/or modify +
9 // + it under the terms of the GNU General Public License as published by +
10 // + the Free Software Foundation, either version 3 of the License, or +
11 // + (at your option) any later version. +
12 // + +
13 // + enGrid is distributed in the hope that it will be useful, +
14 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
15 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
16 // + GNU General Public License for more details. +
17 // + +
18 // + You should have received a copy of the GNU General Public License +
19 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
20 // + +
21 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22 //
24 #ifndef CREATEHEXCORE_H
25 #define CREATEHEXCORE_H
27 class CreateHexCore;
29 #include "operation.h"
30 #include "octree.h"
32 class CreateHexCore : public Operation
35 protected: // attributes
37 vec3_t m_X1;
38 vec3_t m_X2;
39 vec3_t m_Xi;
40 Octree m_Octree;
42 protected: // methods
44 virtual void operate();
46 void refineOctree();
47 void transferOctreeGrid();
48 void deleteOutside(vtkUnstructuredGrid *grid);
50 public:
52 CreateHexCore(vec3_t x1, vec3_t x2, vec3_t xi);
56 #endif // CREATEHEXCORE_H