⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdafx.h

📁 Tin3D.rar 三维TIN的构建方面的东西
💻 H
字号:
// 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__D0493BF6_355C_4B8A_9BAC_81DC493DC316__INCLUDED_)
#define AFX_STDAFX_H__D0493BF6_355C_4B8A_9BAC_81DC493DC316__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__D0493BF6_355C_4B8A_9BAC_81DC493DC316__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -