91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 17.33MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2024-01-28
  • 語言: 其他
  • 標(biāo)簽: 曲線擬合??

資源簡介

圖形學(xué)完整課件,包括光柵圖形學(xué),圖形裁剪,基本幾何,二維幾何,圖形變換,三維幾何,幾何造型,光照模型,曲線與曲面,曲線擬合與雙圓弧逼近,交互技術(shù)等

資源截圖

代碼片段和文件信息

#include?“StdAfx.h“
#include?“C2DSection.h“
#include?“SenceManager.h“
#include?

C2DSection::C2DSection(void)
{
SECTIONTAG?sg;
sg.diff?=?40.1;
sg.ep.x?=?50;
sg.ep.y?=?50;

sg.sp.x?=?100;
sg.sp.y?=?100;

m_sectiontaglist.push_back(sg);

sg.diff?=?40.2;

sg.sp.x?=?150;
sg.sp.y?=?250;

sg.ep.x?=?150;
sg.ep.y?=?300;
m_sectiontaglist.push_back(sg);

sg.diff?=?-48.2;

sg.sp.x?=?150;
sg.sp.y?=?250;

sg.ep.x?=?200;
sg.ep.y?=?250;
m_sectiontaglist.push_back(sg);

sg.diff?=?40.8;

sg.sp.x?=?150;
sg.sp.y?=?250;

sg.ep.x?=?200;
sg.ep.y?=?300;
m_sectiontaglist.push_back(sg);


FPOINT?fpt;
fpt.x?=?0;
fpt.y?=?0;

m_dessectionvertexlist.push_back(fpt);

fpt.x?=?400;
fpt.y?=?0;

m_dessectionvertexlist.push_back(fpt);

fpt.x?=?200;
fpt.y?=?400;
m_dessectionvertexlist.push_back(fpt);

fpt.x?=?0;
fpt.y?=?100;

m_messectionvertexlist.push_back(fpt);

fpt.x?=?400;
fpt.y?=?100;

m_messectionvertexlist.push_back(fpt);

fpt.x?=?200;
fpt.y?=?500;
m_messectionvertexlist.push_back(fpt);

graphicsmem?=?NULL;

}

C2DSection::~C2DSection(void)
{
}

void?C2DSection::Draw(HDC?hDC)
{
Bitmap?bitmap(pSM->m_widthpSM->m_height);
graphicsmem?=?Graphics::FromImage(&bitmap);

if?(graphicsmem?==?NULL)
{
return?;
}

Graphics?graphics(hDC);
graphicsmem->Clear(Color(255255255255));

graphicsmem->ResetTransform();//矩陣重置

graphicsmem->TranslateTransform(m_transvector.x-m_transvector.y*0.5);//Y方向略下移?隧道下平上拱

DrawDesLine();
DrawMesLine();
DrawTag();

graphics.DrawImage(&bitmap00);
delete?graphicsmem;
graphicsmem?=?NULL;

}
void?C2DSection::DrawDesLine()
{
if?(m_dessectionvertexlist.size()?==?0)
{
return;
}
Pen?pen(Color(25501280)2);//顏色?寬度

//坐標(biāo)軸
Pen?pen1(Color(2550128128)2);//顏色?寬度
graphicsmem->DrawLine(&pen10pSM->m_height0-pSM->m_height); //Y
graphicsmem->DrawLine(&pen1-pSM->m_widthpSM->m_heightpSM->m_widthpSM->m_height);//X

for?(DWORD?i?=0;i {
FPOINT?pts?=?m_dessectionvertexlist[i];
FPOINT?pte?=?m_dessectionvertexlist[i+1];

pts.y?=?pSM->m_height-pts.y;//坐標(biāo)系轉(zhuǎn)換
pte.y?=?pSM->m_height-pte.y;

graphicsmem->DrawLine(&pen(REAL)pts.x(REAL)pts.y(REAL)pte.x(REAL)pte.y);

}

if?(m_dessectionvertexlist.size()>2)
{
FPOINT?pts?=?m_dessectionvertexlist[0];
FPOINT?pte?=?m_dessectionvertexlist[m_dessectionvertexlist.size()-1];

pts.y?=?pSM->m_height-pts.y;//坐標(biāo)系轉(zhuǎn)換
pte.y?=?pSM->m_height-pte.y;
graphicsmem->DrawLine(&pen(REAL)pts.x(REAL)pts.y(REAL)pte.x(REAL)pte.y);
}





}
void?C2DSection::DrawMesLine()
{
if?(m_messectionvertexlist.size()?==?0)
{
return;
}

Pen?pen(Color(25500128)2);//顏色?寬度

for?(DWORD?i?=0;i {
FPOINT?pts?=?m_messectionvertexlist[i];
FPOINT?pte?=?m_messectionvertexlist[i+1];

pts.y?=?pSM->m_he

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1083??2009-02-09?10:09??TMO3D\debug\TMO3D.exp

?????文件????3280328??2009-02-09?10:13??TMO3D\debug\TMO3D.ilk

?????文件???????1510??2009-02-09?10:09??TMO3D\debug\TMO3D.lib

?????文件?????761856??2009-02-09?10:13??TMO3D\debug\TMO3D.ocx

?????文件????6482944??2009-02-09?10:13??TMO3D\debug\TMO3D.pdb

?????文件?????????41??2009-02-06?18:18??TMO3D\debug\zx.txt

?????文件???????1287??2009-01-21?08:46??TMO3D\DesSection.h

?????文件????????149??2009-02-06?18:32??TMO3D\mssccprj.scc

?????文件???????1087??2009-02-10?09:23??TMO3D\release\TMO3D.exp

?????文件???????1510??2009-02-10?09:23??TMO3D\release\TMO3D.lib

?????文件?????208896??2009-02-10?09:23??TMO3D\release\TMO3D.ocx

?????文件????3959808??2009-02-03?14:19??TMO3D\release\TMO3D.pdb

?????文件???????8255??2009-02-03?14:22??TMO3D\TMO3D\C2DSection.cpp

?????文件????????823??2009-01-19?16:32??TMO3D\TMO3D\C2DSection.h

?????文件?????112640??2009-01-22?10:53??TMO3D\TMO3D\Database\DataDemo.DB

?????文件???????6144??2009-01-06?10:36??TMO3D\TMO3D\Database\Data南后隧道左洞.DB

?????文件???????2048??2008-09-03?12:04??TMO3D\TMO3D\Database\Data水西右洞.DB

?????文件???????2048??2008-09-03?12:02??TMO3D\TMO3D\Database\Data水西左洞.DB

?????文件???????6144??2008-12-13?16:21??TMO3D\TMO3D\Database\Data永漿橫洞.DB

?????文件?????417792??2009-01-21?14:41??TMO3D\TMO3D\Database\Data永漿隧道右洞.DB

?????文件?????190464??2009-02-03?13:48??TMO3D\TMO3D\Database\Data永漿隧道左洞.DB

?????文件????????423??2009-02-05?14:09??TMO3D\TMO3D\Database\Data永漿隧道左洞.FAM

?????文件???????4211??2009-02-05?14:09??TMO3D\TMO3D\Database\Data永漿隧道左洞.TV

?????文件???????8192??2008-12-13?16:20??TMO3D\TMO3D\Database\Data馬洪右洞.DB

?????文件??????12288??2008-09-10?10:27??TMO3D\TMO3D\Database\Data馬洪左洞.DB

?????文件???????2048??2008-08-02?20:15??TMO3D\TMO3D\Database\Data馬洪隧道左洞開挖.DB

?????文件??????90112??2009-02-03?18:02??TMO3D\TMO3D\Database\Design_Section.DB

?????文件????????423??2009-02-03?18:02??TMO3D\TMO3D\Database\Design_Section.FAM

?????文件???????3991??2009-02-03?18:02??TMO3D\TMO3D\Database\Design_Section.TV

?????文件??????43008??2008-09-26?17:11??TMO3D\TMO3D\Database\Plane_Parameter.DB

............此處省略142個文件信息

評論

共有 條評論