?? vertex.h
字號:
// Vertex.h: interface for the Vertex class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_VERTEX_H__E4680E1E_5098_426E_B473_AD0221AF9323__INCLUDED_)
#define AFX_VERTEX_H__E4680E1E_5098_426E_B473_AD0221AF9323__INCLUDED_
#include "Vector.h" // Added by ClassView
#include <vector>
#include <set>
#include <functional>
using namespace std;
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Mesh.h"
/*
class Face;
class Edge;*/
class Mesh;
class Vertex
{
public:
bool isOnBoundary();
void reset();
void dump() const;
// typedef set< Mesh::EDGEPOS, less< Mesh::EDGEPOS > > ADJEDGESET; why ?! error!
typedef vector<Mesh::EDGEPOS> ADJEDGESET;
const Vector3d& getVertex3d() const;
Vertex(double x, double y, double z, int idx = -1);
Vertex(Vector3d &v, int idx = -1);
virtual ~Vertex();
int m_index;
void addAdjEdge(Mesh::EDGEPOS ep);// { m_adjEdgePosSet.push_back(ep); }; // 用iterator的引用是否安全??
inline void addAdjFace(int fi) { m_adjFaceIdxSet.push_back(fi); };
private:
Vector3d m_v;
int m_newVertexPointIdx;
vector<int> m_adjFaceIdxSet;//鄰接面索引設置
// vector<int> m_adjFaceIdxSet;
ADJEDGESET m_adjEdgePosSet;
friend class Mesh;
// friend void Mesh::calcCatmullSubdivVertex();
};
#endif // !defined(AFX_VERTEX_H__E4680E1E_5098_426E_B473_AD0221AF9323__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -