?? edge.h
字號:
// Edge.h: interface for the Edge class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_EDGE_H__338DC2B7_A924_41E3_AA95_5F7672FBA58B__INCLUDED_)
#define AFX_EDGE_H__338DC2B7_A924_41E3_AA95_5F7672FBA58B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Vector.h"
#include <vector>
using namespace std;
/*
#if !defined(INCLUDE_MESH)
#define INCLUDE_MESH
#include "Mesh.h" //ERRORs!!!!!
#endif
*/
class Mesh;
class Edge;
class Face;
class Edge
{
public:
bool isOnBoundary();//是不是邊界
int getCounterVertex( int vi );//獲取計算頂點
void reset();//重新排列
void dump() const;//
Edge();//邊函數
Edge(int bgVertexIdx, int edVertexIdx);// 起始頂點和終止頂點
virtual ~Edge();//
// Mesh::EDGEPOS m_index;
bool operator < (const Edge &e) const;
Edge& operator = (const Edge &e);
bool operator == (const Edge &e) const;
int m_bgVertexIdx;//起始頂點索引
int m_edVertexIdx;//終止頂點索引
Vector3d m_midPoint;//中點索引
int m_newEdgePointIdx;//新邊點索引
inline void addAdjFace(int fi) { m_adjFaceIdxSet.push_back(fi); };//增加鄰接面
inline void setMidPoint(Vector3d& mid) { m_midPoint = mid; } ;//設置中點
private:
vector<int> m_adjFaceIdxSet;//鄰接面索引
friend class Mesh;//Face& Mesh::getAdjFace(const Face &f, const Edge &e);Mesh類為友元結構
};
#endif // !defined(AFX_EDGE_H__338DC2B7_A924_41E3_AA95_5F7672FBA58B__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -