資源簡介
根據不規則離散點,繪制曲面,比較傻瓜的差值方法,追求無限圓滑的曲面請繞行。

代碼片段和文件信息
//?opengl_mash.cpp?:?定義應用程序的類行為。
//
#include?“stdafx.h“
#include?“opengl_mash.h“
#include?“opengl_mashDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?Copengl_mashApp
BEGIN_MESSAGE_MAP(Copengl_mashApp?CWinApp)
ON_COMMAND(ID_HELP?&CWinApp::onhelp)
END_MESSAGE_MAP()
//?Copengl_mashApp?構造
Copengl_mashApp::Copengl_mashApp()
{
//?支持重新啟動管理器
m_dwRestartManagerSupportFlags?=?AFX_RESTART_MANAGER_SUPPORT_RESTART;
//?TODO:?在此處添加構造代碼,
//?將所有重要的初始化放置在?InitInstance?中
}
//?唯一的一個?Copengl_mashApp?對象
Copengl_mashApp?theApp;
//?Copengl_mashApp?初始化
BOOL?Copengl_mashApp::InitInstance()
{
//?如果一個運行在?Windows?XP?上的應用程序清單指定要
//?使用?ComCtl32.dll?版本?6?或更高版本來啟用可視化方式,
//則需要?InitCommonControlsEx()。否則,將無法創建窗口。
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?將它設置為包括所有要在應用程序中使用的
//?公共控件類。
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
AfxEnableControlContainer();
//?創建?shell?管理器,以防對話框包含
//?任何?shell?樹視圖控件或?shell?列表視圖控件。
CShellManager?*pShellManager?=?new?CShellManager;
//?標準初始化
//?如果未使用這些功能并希望減小
//?最終可執行文件的大小,則應移除下列
//?不需要的特定初始化例程
//?更改用于存儲設置的注冊表項
//?TODO:?應適當修改該字符串,
//?例如修改為公司或組織名
SetRegistryKey(_T(“應用程序向導生成的本地應用程序“));
Copengl_mashDlg?dlg;
m_pMainWnd?=?&dlg;
INT_PTR?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?在此放置處理何時用
//??“確定”來關閉對話框的代碼
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?在此放置處理何時用
//??“取消”來關閉對話框的代碼
}
//?刪除上面創建的?shell?管理器。
if?(pShellManager?!=?NULL)
{
delete?pShellManager;
}
//?由于對話框已關閉,所以將返回?FALSE?以便退出應用程序,
//??而不是啟動應用程序的消息泵。
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????105496??2012-12-25?10:41??opengl_mash\opengl_mash\opengl_mash.aps
?????文件???????2058??2012-12-25?10:10??opengl_mash\opengl_mash\opengl_mash.cpp
?????文件????????472??2012-12-25?10:10??opengl_mash\opengl_mash\opengl_mash.h
?????文件???????9966??2012-12-25?10:41??opengl_mash\opengl_mash\opengl_mash.rc
?????文件???????5955??2012-12-25?10:12??opengl_mash\opengl_mash\opengl_mash.vcxproj
?????文件???????2016??2012-12-25?10:10??opengl_mash\opengl_mash\opengl_mash.vcxproj.filters
?????文件????????143??2012-12-25?10:10??opengl_mash\opengl_mash\opengl_mash.vcxproj.user
?????文件??????17381??2012-12-25?11:50??opengl_mash\opengl_mash\opengl_mashDlg.cpp
?????文件???????1841??2012-12-25?11:15??opengl_mash\opengl_mash\opengl_mashDlg.h
?????文件???????3217??2012-12-25?10:10??opengl_mash\opengl_mash\ReadMe.txt
????.......?????67777??2009-08-31?02:31??opengl_mash\opengl_mash\res\opengl_mash.ico
?????文件????????678??2012-12-25?10:10??opengl_mash\opengl_mash\res\opengl_mash.rc2
?????文件???????1460??2012-12-25?10:12??opengl_mash\opengl_mash\resource.h
?????文件????????144??2012-12-25?10:10??opengl_mash\opengl_mash\stdafx.cpp
?????文件???????1632??2012-12-25?10:10??opengl_mash\opengl_mash\stdafx.h
?????文件????????234??2012-12-25?10:10??opengl_mash\opengl_mash\targetver.h
?????文件????????900??2012-12-25?10:10??opengl_mash\opengl_mash.sln
????..A..H.?????13824??2012-12-25?11:50??opengl_mash\opengl_mash.suo
?????目錄??????????0??2012-12-25?10:10??opengl_mash\opengl_mash\res
?????目錄??????????0??2012-12-25?11:50??opengl_mash\opengl_mash
?????目錄??????????0??2012-12-25?11:50??opengl_mash
-----------?---------??----------?-----??----
???????????????235194????????????????????21
- 上一篇:VTK源碼,讀取obj、stl點云,生成重建圖并保存
- 下一篇:zlib庫文件
評論
共有 條評論