-
Notifications
You must be signed in to change notification settings - Fork 42
/
MeshBoundary.h
67 lines (56 loc) · 1.05 KB
/
MeshBoundary.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#pragma once
#include "Geometry\Mesh.h"
class CMeshBoundary
{
public:
CMeshBoundary(void);
~CMeshBoundary(void);
public:
friend class CDCContourer;
friend class CHistGrid;
protected:
class CVertexGroupInfo {
public:
int number;
int index;
bool fixed;
CVertexGroupInfo( int ll, int ii ) : number(ll), index(ii), fixed(false) {}
};
class CAuxVertex {
public:
std::vector< int > ei;
};
class CAuxEdge {
public:
int vi[2];
int fi;
int twin;
int next;
};
class CAuxFace {
public:
int vi[3];
int ei[3];
};
class CAuxBoundary {
public:
std::vector< int > vi;
std::vector< int > ei;
double height;
};
protected:
CMesh * m_pMesh;
std::vector< CVertexGroupInfo > m_vecGroupInfo;
std::vector< CAuxVertex > m_vecVertex;
std::vector< CAuxEdge > m_vecEdge;
std::vector< CAuxFace > m_vecFace;
std::vector< CAuxBoundary > m_vecBoundary;
std::vector< int > m_vecBoundarySeq;
public:
void Init( CMesh * mesh );
protected:
void CreateHalfEdgeMesh();
void CreateBoundary();
int GetNextEdge( int ei );
void SortBoundary();
};