OMToolkit 1.0 The polygonal mesh processing tool.

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
OMMatrixDescriptors.h
Go to the documentation of this file.
1 //==============================================================================
13 #ifndef _COMPUTE_DESCRIPTORS_H_
14 #define _COMPUTE_DESCRIPTORS_H_
15
16 #include <OMToolkit\OMTypes.h>
17
18 namespace OMToolkit
19 {
23 class OMMatrixDescriptors
24 {
25 public:
29 typedef Types::ModuleMeshd MeshT;
30
34 typedef MeshT::Scalar ScalarT;
35
39 typedef MeshT::Normal NormalT;
40
44 typedef MeshT::AttributeScalar AScalarT;
45
49 typedef Types::OMSerializableMatrix<AScalarT> MatrixT;
50
55 OMMatrixDescriptors(MeshT *mesh);
56
63 bool ComputePoints(OpenMesh::VPropHandleT<MatrixT> matrixH, OpenMesh::VPropHandleT<AScalarT> curvatureMagH, int finalNum);
64
77 std::vector<std::vector<float>> ComputeDescriptors(OpenMesh::VPropHandleT<MatrixT> matrixH, OpenMesh::VPropHandleT<AScalarT> curvatureMagH, float matrix_size, int matrix_resolution, float desc_diameter);
78
79 private:
83 MeshT *m_mesh;
84 };
85 }
86
87 #endif