Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PoissonReconstructionT.hh
1 //=============================================================================
2 //
3 // CLASS PoissonReconstructionT
4 //
5 // Author: Dominik Sibbing <sibbing@cs.rwth-aachen.de>
6 //
7 // Version: $Revision: 1$
8 // Date: $Date: 2008$
9 //
10 //=============================================================================
11 
12 
13 #ifndef ACG_POISSONRECONSTRUCTIONT_HH
14 #define ACG_POISSONRECONSTRUCTIONT_HH
15 
16 
17 //== INCLUDES =================================================================
18 
19 #ifdef _WIN32
20 #include <Windows.h>
21 #include <Psapi.h>
22 #endif // _WIN32
23 
24 #ifdef USE_OPENMP
25 #include <omp.h>
26 #endif
27 
28 #include "PoissonReconstruction/Time.h"
29 #include "PoissonReconstruction/MarchingCubes.h"
30 #include "PoissonReconstruction/Octree.h"
31 #include "PoissonReconstruction/SparseMatrix.h"
32 #include "PoissonReconstruction/PPolynomial.h"
33 #include "PoissonReconstruction/MemoryUsage.h"
34 #include "PoissonReconstruction/MultiGridOctreeData.h"
35 
36 
37 //== FORWARDDECLARATIONS ======================================================
38 
39 //== NAMESPACES ===============================================================
40 
41 namespace ACG {
42 
43 //== CLASS DEFINITION =========================================================
44 
45 
46 
47 
55 template <class MeshT>
57 {
58 public:
59 
62 
65 
66  struct Parameter
67  {
68  Parameter() :
69  Depth(8),
70  MinDepth( 0 ),
71  SamplesPerNode(1.0f),
72  Scale(1.1f),
73  Confidence(false),
74  PointWeight(4.f),
75  AdaptiveExponent(1),
76  IsoDivide(8),
77  SolverDivide(8),
78  ShowResidual(false),
79  MinIters(24),
80  SolverAccuracy(float(1e-3)),
81  FixedIters(-1),
82  Verbose(true){}
83 
84 
85  int Depth;
86  int MinDepth;
87  int SamplesPerNode;
88  Real Scale;
89  int Confidence;
90  Real PointWeight;
91  int AdaptiveExponent;
92  Real IsoDivide; // = 0
93  int SolverDivide;
94  bool ShowResidual;
95  int MinIters;
96  double SolverAccuracy;
97  int FixedIters;
98  bool Verbose;
99 
100  };
101 
102  bool run( std::vector< Real >& _pt_data, MeshT& _mesh, const Parameter& _parameter );
103 
104 private:
105 
106  Parameter m_parameter;
107 
108 
109 };
110 
111 
112 //=============================================================================
113 } // namespace ACG
114 //=============================================================================
115 #if defined(INCLUDE_TEMPLATES) && !defined(ACG_POISSONRECONSTRUCTIONT_C)
116 #define ACG_POISSONRECONSTRUCTIONT_TEMPLATES
117 #include "PoissonReconstructionT.cc"
118 #endif
119 //=============================================================================
120 #endif // ACG_POISSONRECONSTRUCTIONT_HH defined
121 //=============================================================================
122 
Namespace providing different geometric functions concerning angles.
Definition: DBSCANT.cc:51