資源簡介
該資源用于顯示3D模型(網(wǎng)格數(shù)據(jù))
可用于旋轉,縮放,平移及復位。

代碼片段和文件信息
//*****************************************************************************
//
//??Geombase.cpp:??Geombase?Implementation?file
//
//*****************************************************************************
#include?“Geombase.h“
#include?“TVector3D.h“
#include?
#include?“StdAfx.h“
//////////???TPoint3D?class?implementation??///////////////////////////////////
//*****************************************************************************
//?TPoint3D:?methods
//*****************************************************************************
void?TPoint3D::SetValue(const?double?x?const?double?yconst?double?z)
{
_x?=?x;
_y?=?y;
_z?=?z;
}
void?TPoint3D::SetValue(const?double*?pt)
{
_x?=?pt[0];
_y?=?pt[1];
_z?=?pt[2];
}
void?TPoint3D::SetValue(const?TPoint3D?*pPt)
{
SetValue(pPt->x()pPt->y()pPt->z());
}
void?TPoint3D::SetValue(const?TPoint3D&?pt)
{
SetValue(pt.x()pt.y()pt.z());
}
//*****************************************************************************
//?TPoint3D:?operators
//*****************************************************************************
TPoint3D&?TPoint3D::operator?=(const?TPoint3D&?rpt)
{
_x?=?rpt.x();
_y?=?rpt.y();
_z?=?rpt.z();
return?*this;
}
bool?TPoint3D::operator?==(const?TPoint3D&?rpt)
{
return?(_x?==?rpt.x())?&&?(_y?==?rpt.y())?&&?(_z?==?rpt.z());
}
bool?TPoint3D::operator?!=(const?TPoint3D&?rpt)
{
return?!(*this?==?rpt);
}
TPoint3D&?TPoint3D::operator?+=(const?TVector3D&?vec)
{
this->_x?+=?vec.x();
this->_y?+=?vec.y();
this->_z?+=?vec.z();
return?*this;
}
TPoint3D?TPoint3D::operator?+(const?TVector3D&?vec)?const
{
return?(TPoint3D(*this)+=?vec);
}
TPoint3D&?TPoint3D::operator?-=(const?TVector3D&?vec)
{
this->_x?-=?vec.x();
this->_y?-=?vec.y();
this->_z?-=?vec.z();
return?*this;
}
TPoint3D?TPoint3D::operator?-(const?TVector3D&?vec)?const
{
return?(TPoint3D(*this)?-=?vec);
}
TVector3D?TPoint3D::operator?-(const?TPoint3D&?rpt)?const
{
return?TVector3D(_x?-?rpt.x()_y?-?rpt.y()_z?-?rpt.z());
}
//*****************************************************************************
//?TPoint3D::?Trace()?--?Debug?測試用
//*****************************************************************************
void?TPoint3D::Trace()
{
TRACE(“\n“);
TRACE(“**?TPoint3D?**\n“);
TRACE(“Address???:?%x\n“this);
TRACE(“Value?????:?(?%f\t%f\t%f\t)\n“this->x()this->y()this->z());
TRACE(“**?End?**\n“);
}
//////??end?TPoint????/////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//*****************************************************************************
//??TMatrix3D?class?Implementation
//*****************************************************************************
//?constructor?and?destructor
TMatrix3D::TMatrix3D()
{
?Reset();
}
TMatrix3D::TMatrix3D(const?TMatrix3D&?matrix)
{
Set
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????36899??2009-12-09?17:11??MeshPro_backup\Debug\Geomba
?????文件??????42980??2009-12-09?17:11??MeshPro_backup\Debug\MainFrm.obj
?????文件?????122945??2009-12-09?17:19??MeshPro_backup\Debug\MeshPro.exe
?????文件?????502176??2009-12-09?17:19??MeshPro_backup\Debug\MeshPro.ilk
?????文件??????48530??2009-12-09?17:11??MeshPro_backup\Debug\MeshPro.obj
?????文件?????226628??2009-12-09?17:11??MeshPro_backup\Debug\MeshPro.pch
?????文件?????458752??2009-12-09?17:11??MeshPro_backup\Debug\MeshPro.pchi
?????文件?????680960??2009-12-09?17:19??MeshPro_backup\Debug\MeshPro.pdb
?????文件???????7304??2009-12-09?17:19??MeshPro_backup\Debug\MeshPro.res
?????文件??????32241??2009-12-09?17:11??MeshPro_backup\Debug\MeshProDoc.obj
?????文件??????60022??2009-12-09?17:11??MeshPro_backup\Debug\MeshProView.obj
?????文件???????2017??2009-12-09?17:11??MeshPro_backup\Debug\StdAfx.obj
?????文件??????18635??2009-12-09?17:11??MeshPro_backup\Debug\TCamera.obj
?????文件??????34132??2009-12-09?17:11??MeshPro_backup\Debug\TOpenGLDC.obj
?????文件??????22496??2009-12-09?17:11??MeshPro_backup\Debug\TVector3d.obj
?????文件???????7411??2009-12-09?17:11??MeshPro_backup\Debug\utility.obj
?????文件?????222208??2010-03-04?16:04??MeshPro_backup\Debug\vc60.idb
?????文件??????86016??2009-12-09?17:11??MeshPro_backup\Debug\vc60.pdb
?????文件???????7923??2009-11-28?20:41??MeshPro_backup\Geomba
?????文件???????3236??2009-11-28?21:33??MeshPro_backup\Geomba
?????文件???????2508??2009-12-02?22:36??MeshPro_backup\MainFrm.cpp
?????文件???????1581??2009-11-27?21:18??MeshPro_backup\MainFrm.h
?????文件???????1970??2009-12-09?17:09??MeshPro_backup\MeshPro.clw
?????文件???????4279??2009-12-01?22:22??MeshPro_backup\MeshPro.cpp
?????文件???????5196??2009-12-09?17:13??MeshPro_backup\MeshPro.dsp
?????文件????????537??2009-12-09?17:09??MeshPro_backup\MeshPro.dsw
?????文件???????1367??2009-11-27?21:18??MeshPro_backup\MeshPro.h
?????文件?????156672??2010-03-04?16:04??MeshPro_backup\MeshPro.ncb
?????文件??????53760??2010-03-04?16:04??MeshPro_backup\MeshPro.opt
?????文件???????1085??2009-12-09?17:19??MeshPro_backup\MeshPro.plg
............此處省略27個文件信息
評論
共有 條評論