1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef __HARMONICMAPPER_HPP
#define __HARMONICMAPPER_HPP

#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string>
#include <iostream>
#include <fstream>
#include <string.h>
#include <limits.h>

#include "meshkit/MKCore.hpp"
#include "meshkit/iMesh.hpp"
#include "meshkit/iGeom.hpp"
#include "meshkit/iRel.hpp"
#include "meshkit/MeshOp.hpp"
#include "meshkit/ModelEnt.hpp"
#include "meshkit/SimpleArray.hpp"
#include "Global.hpp"
#include <armadillo>
#include <set>
#include <vector>
#include <map>


using namespace std;
using namespace arma;

namespace MeshKit {

class HarmonicMapper
{	
public:
	//public function
	HarmonicMapper(MKCore* core, vector<Vertex> &v, vector<Face> &t, vector<Edge> &e, vector<set<int> > a);
	~HarmonicMapper();
	void execute();
	void getUV(vector<Vertex> &v);
	
private:
	void _iterative_map(double epsilon);
	void _map();<--- Unused private function: 'HarmonicMapper::_map'
	
	
private:
	//member variables
	MKCore* mk_core;
	vector<set<int> > adj;
	vector<Vertex> vtx;
	vector<Edge> edges;
	vector<Face> tri;
	
};

}
#endif