compiles on openSUSE 15.4 part 2
[engrid-github.git] / src / libengrid / reducedpolydatareader.h
blob9bab2ecf3ca7fedb39221d471649b620542c0ea6
1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 // + +
3 // + This file is part of enGrid. +
4 // + +
5 // + Copyright 2008-2014 enGits GmbH +
6 // + +
7 // + enGrid is free software: you can redistribute it and/or modify +
8 // + it under the terms of the GNU General Public License as published by +
9 // + the Free Software Foundation, either version 3 of the License, or +
10 // + (at your option) any later version. +
11 // + +
12 // + enGrid is distributed in the hope that it will be useful, +
13 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
14 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
15 // + GNU General Public License for more details. +
16 // + +
17 // + You should have received a copy of the GNU General Public License +
18 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
19 // + +
20 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22 #ifndef REDUCEDPOLYDATAREADER_H
23 #define REDUCEDPOLYDATAREADER_H
25 class ReducedPolyDataReader;
27 #include "iooperation.h"
29 /**
30 * Reader for VTK legacy files containing vtkPolyData.
31 * This reader will perform a reduction of the number of nodes and faces.
33 class ReducedPolyDataReader : public IOOperation
36 private: // data-types
38 struct Triangle
40 vtkIdType id_a, id_b, id_c;
41 vec3_t a, b, c;
42 vec3_t g1, g2, g3;
43 mat3_t G, GI;
44 double A;
45 double smallest_length;
49 private: // attributes
51 double m_MaxEdgeLength;
52 double m_MinEdgeLength;
55 protected: // methods
57 void computeLevelSet(vtkUnstructuredGrid *grid, vtkPolyData* poly);
58 virtual void operate();
61 public: // methods
63 ReducedPolyDataReader();
67 #endif // REDUCEDPOLYDATAREADER_H