1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 // + This file is part of enGrid. +
5 // + Copyright 2008-2014 enGits GmbH +
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. +
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. +
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/>. +
20 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22 #ifndef REDUCEDPOLYDATAREADER_H
23 #define REDUCEDPOLYDATAREADER_H
25 class ReducedPolyDataReader
;
27 #include "iooperation.h"
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
40 vtkIdType id_a
, id_b
, id_c
;
45 double smallest_length
;
49 private: // attributes
51 double m_MaxEdgeLength
;
52 double m_MinEdgeLength
;
57 void computeLevelSet(vtkUnstructuredGrid
*grid
, vtkPolyData
* poly
);
58 virtual void operate();
63 ReducedPolyDataReader();
67 #endif // REDUCEDPOLYDATAREADER_H