-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreconstruct.h
48 lines (37 loc) · 919 Bytes
/
reconstruct.h
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
/*
* reconstruct.h
*
* Created on: Dec 3, 2013
* Author: Owner
*/
#ifndef RECONSTRUCT_H_
#define RECONSTRUCT_H_
#include "ParticleSystem.h"
extern ParticleSystem pSystem;
class CubeVertex {
public:
CubeVertex();
CubeVertex(Point3D p); //representation for a Point3D for use with ParticleSystem
void setColor(float c);
float getColor();
Particle getParticle();
Point3D getPosition();
private:
Point3D position;
float colorFuncVal;
};
class Cube {
public:
Cube();
Cube(const vector<CubeVertex> &);
vector<CubeVertex> getVertices();
void setVertices(const vector<CubeVertex> &);
void getTriangles(const float &isolevel, vector<float> &, vector<float> &, float threshold);
void updateColors(); // debugging only (probably)
private:
int getCutVertices();
int getCutEdges(int v);
vector<int> getVertexNumsFromEdge(int edge);
vector<CubeVertex> vertices;
};
#endif /* RECONSTRUCT_H_ */