📄 pointset.h
字号:
// PointSet.h: interface for the PointSet class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_POINTSET_H__7B4F29EE_5DA7_45FC_8AB3_6644BD846EDD__INCLUDED_)
#define AFX_POINTSET_H__7B4F29EE_5DA7_45FC_8AB3_6644BD846EDD__INCLUDED_
#include "Mesh.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class PointSet
{
private:
//Attributes
int m_iPointNum;
bool *m_pBounds;
// float (*m_pPoints)[3];
// float (*m_pNormals)[3];
vec3f m_pPoints;
vec3f m_pNormals;
public:
void DrawSolution(double *sol);
void ConvertToColor(int n, double *v, float (*color)[3]);
vec3f GetNormal();
vec3f GetPoint();
void SmoothShading();
void DrawBox();
void GetBoundingBox(float *minCoord, float *maxCoord);
BOOL WriteFile(CString fileName, CString fileExt);
BOOL OpenFile(CString fileName, CString fileExt);
void DrawShadedPoints();
void DrawPoints();
void SwapIndex(int i, int j);
void Rotate(float rx, float ry, float rz);
void Scale(float s);
void Shift(float sx, float sy, float sz);
PointSet* CopyPointSet();
void GetCentroid(float *centriod, int startIndex, int endIndex);
void GetBound(float *minCoord, float *maxCoord);
float* GetNormal(int i);
void SetNormal(int i, float x, float y, float z);
float* GetPoint(int i);
void SetPoint(int i, float x, float y, float z);
int GetPointNum();
void SetPointNum(int N);
PointSet();
virtual ~PointSet();
};
#endif // !defined(AFX_POINTSET_H__7B4F29EE_5DA7_45FC_8AB3_6644BD846EDD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -