StdAfx.h
资源名称:aa.rar [点击查看]
上传用户:kuqidezhu
上传日期:2022-07-18
资源大小:4151k
文件大小:2k
源码类别:
3D图形编程
开发平台:
Visual C++
- // stdafx.h : include file for standard system include files,
- // or project specific include files that are used frequently, but
- // are changed infrequently
- //
- #if !defined(AFX_STDAFX_H__8BA535C3_62F5_4E11_9470_F6735D55EB18__INCLUDED_)
- #define AFX_STDAFX_H__8BA535C3_62F5_4E11_9470_F6735D55EB18__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
- #include <afxwin.h> // MFC core and standard components
- #include <afxext.h> // MFC extensions
- #include <afxdisp.h> // MFC Automation classes
- #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
- #ifndef _AFX_NO_AFXCMN_SUPPORT
- #include <afxcmn.h> // MFC support for Windows Common Controls
- #endif // _AFX_NO_AFXCMN_SUPPORT
- /*--------opengl's header--------*/
- #include <gl/gl.h>
- #include <gl/glu.h>
- #include <gl/glaux.h>
- struct Vertex //存储点数据结构
- {
- int no; //离散点号
- float x,y,z; //离散点的三维坐标
- float normal[3]; //点的法向量
- };
- struct Edge//储存三角形的边(两个端点)
- {
- int no; //边号
- int trino[2]; //边的两邻接三角形号
- double length; //边的长度
- Vertex p1; //边的两端点
- Vertex p2;
- int usetimes; //边的使用次数
- };
- struct Triangle
- {
- int no; //三角形号
- int edgeno[3]; //三条边的边号
- Vertex ptr[3]; //三角形的三个顶点的指针
- float Normal[3]; //面的法向量
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_STDAFX_H__8BA535C3_62F5_4E11_9470_F6735D55EB18__INCLUDED_)