📄 3.3.3 三维图元的输出.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0058)http://www.ekany.com/wdg98/cg/contents/chapter3/les333.htm -->
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD><TITLE>3</TITLE>
<META http-equiv=Content-Type content="text/html; charset=GB2312">
<META content=FrontPage.Editor.Document name=ProgId>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<META content="Microsoft Word 9" name=Originator><LINK
href="les333.files/filelist.xml" rel=File-List><LINK
href="les333.files/editdata.mso" rel=Edit-Time-Data><LINK
href="les333.files/oledata.mso" rel=OLE-Object-Data><!--[if !mso]>
<STYLE>v\:* {
BEHAVIOR: url(#default#VML)
}
o\:* {
BEHAVIOR: url(#default#VML)
}
w\:* {
BEHAVIOR: url(#default#VML)
}
.shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><!--[if gte mso 9]><xml> <o:DocumentProperties> <o:Author>maojian</o:Author> <o:Template>Normal</o:Template> <o:LastAuthor>zlj</o:LastAuthor> <o:Revision>3</o:Revision> <o:TotalTime>3</o:TotalTime> <o:Created>2000-04-15T07:32:00Z</o:Created> <o:LastSaved>1999-04-16T03:32:00Z</o:LastSaved> <o:Pages>7</o:Pages> <o:Words>1008</o:Words> <o:Characters>5746</o:Characters> <o:Company>AI Institute</o:Company> <o:Lines>47</o:Lines> <o:Paragraphs>11</o:Paragraphs> <o:CharactersWithSpaces>7056</o:CharactersWithSpaces> <o:Version>9.2812</o:Version> </o:DocumentProperties></xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing> <w:Compatibility> <w:UseFELayout/> </w:Compatibility> </w:WordDocument></xml><![endif]-->
<STYLE>@font-face {
font-family: 宋体;
}
@font-face {
font-family: 黑体;
}
@font-face {
font-family: @宋体;
}
@font-face {
font-family: @黑体;
}
@page {mso-page-border-surround-header: no; mso-page-border-surround-footer: no; }
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin: 42.55pt; mso-footer-margin: 49.6pt; mso-paper-source: 0; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: 宋体
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: 宋体
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: 宋体
}
H1 {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 22pt; MARGIN: 17pt 0cm 16.5pt; LINE-HEIGHT: 28.9pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify; mso-pagination: lines-together; mso-style-next: 正文; mso-outline-level: 1; mso-layout-grid-align: none; mso-font-kerning: 22.0pt
}
H2 {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 16pt; MARGIN: 13pt 0cm; LINE-HEIGHT: 20.8pt; FONT-FAMILY: Arial; TEXT-ALIGN: justify; mso-pagination: lines-together; mso-fareast-font-family: 黑体; mso-style-next: 正文; mso-outline-level: 2; mso-layout-grid-align: none; mso-bidi-font-family: "Times New Roman"
}
H3 {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 16pt; MARGIN: 13pt 0cm; LINE-HEIGHT: 20.8pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify; mso-pagination: lines-together; mso-style-next: 正文; mso-outline-level: 3; mso-layout-grid-align: none
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
P.MsoDocumentMap {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; BACKGROUND: navy; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 15.6pt; FONT-FAMILY: 宋体; TEXT-ALIGN: justify; mso-hansi-font-family: "Times New Roman"; mso-pagination: none; mso-layout-grid-align: none; mso-bidi-font-family: "Times New Roman"
}
LI.MsoDocumentMap {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; BACKGROUND: navy; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 15.6pt; FONT-FAMILY: 宋体; TEXT-ALIGN: justify; mso-hansi-font-family: "Times New Roman"; mso-pagination: none; mso-layout-grid-align: none; mso-bidi-font-family: "Times New Roman"
}
DIV.MsoDocumentMap {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; BACKGROUND: navy; MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 15.6pt; FONT-FAMILY: 宋体; TEXT-ALIGN: justify; mso-hansi-font-family: "Times New Roman"; mso-pagination: none; mso-layout-grid-align: none; mso-bidi-font-family: "Times New Roman"
}
DIV.Section1 {
page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1036"/></xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1"/> </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=ZH-CN style="tab-interval: 36.0pt" vLink=purple link=blue>
<H3><FONT face=楷体_GB2312 size=4><SPAN lang=EN-US>3.3.3 </SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">三维图元的输出</SPAN></FONT></H3>
<P class=MsoNormal> <FONT face=楷体_GB2312 size=4> </FONT><FONT
face=楷体_GB2312 size=4><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">从命令形式上看,在很多图形软件中,三维图元的输出只是在原来二维图元输出命令的基础上增加一个后缀</SPAN><SPAN
lang=EN-US>3</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,如</SPAN><SPAN
lang=EN-US>move</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的</SPAN><SPAN
lang=EN-US>3</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">维形式的:</SPAN><SPAN
lang=EN-US>move-3(x,y,z)</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,</SPAN><SPAN
lang=EN-US>line</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的三维形式为:</SPAN><SPAN
lang=EN-US>dine-3(x,y,z)</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,</SPAN><SPAN
lang=EN-US>Polyline</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的三维形式为:</SPAN><SPAN
lang=EN-US>polyline-3(n,x-array,y_array,z_array)</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。实际上,要在图形输出设备上输出一个三维图元,必须进行投影变换,为与前面所提供的投影变换相一致。我们假定其视域坐标系统</SPAN><SPAN
lang=EN-US>(Viewig coordinate System</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">简称</SPAN><SPAN
lang=EN-US>VCS)</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">定义为:投影面与</SPAN><SPAN
lang=EN-US>xoy</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">坐标而重合;</SPAN><SPAN
lang=EN-US>z</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">轴正向指间要表达的物体;透视投影的中心位于</SPAN><SPAN
lang=EN-US>z</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">轴的负轴之上。</SPAN></FONT></P>
<P class=MsoNormal style="TEXT-INDENT: 21pt"><SPAN
style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman"><FONT
face=楷体_GB2312 size=4>要将三维图元输出到图形设备上,必须通过以下步骤:</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 1px 0px; TEXT-INDENT: 0px; LINE-HEIGHT: 150%"><SPAN
lang=EN-US><FONT face=楷体_GB2312 size=4>1 </FONT></SPAN><FONT
face=楷体_GB2312 size=4><SPAN
style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">定义一个视域坐标系统</SPAN><SPAN
lang=EN-US>VCS</SPAN><SPAN
style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">,为此需指定如下数:</SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 1px 0px; TEXT-INDENT: 0px; LINE-HEIGHT: 150%"><SPAN lang=EN-US
style="mso-spacerun: yes"><FONT face=楷体_GB2312 size=4>
</FONT></SPAN><FONT face=楷体_GB2312 size=4><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">·</SPAN><SPAN
lang=EN-US>VCS</SPAN><SPAN
style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">坐标原点,也称</SPAN><SPAN
lang=EN-US>View reference pont;</SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 1px 0px; TEXT-INDENT: 0px; LINE-HEIGHT: 150%"><SPAN lang=EN-US
style="mso-spacerun: yes"><FONT face=楷体_GB2312 size=4>
</FONT></SPAN><FONT face=楷体_GB2312 size=4><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">·</SPAN><SPAN
lang=EN-US>VCS</SPAN><SPAN
style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">的</SPAN><SPAN
lang=EN-US>z</SPAN><SPAN
style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">轴方向,也称</SPAN><SPAN
lang=EN-US>view plane normal, xoy</SPAN><SPAN
style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">平面称为</SPAN><SPAN
lang=EN-US>vierpin</SPAN><SPAN
style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">。</SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 1px 0px; TEXT-INDENT: 0px; LINE-HEIGHT: 150%"><SPAN lang=EN-US
style="mso-spacerun: yes"><FONT face=楷体_GB2312 size=4>
</FONT></SPAN><FONT face=楷体_GB2312 size=4><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">·</SPAN><SPAN
lang=EN-US>VCS</SPAN><SPAN
style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">的</SPAN><SPAN
lang=EN-US>y</SPAN><SPAN
style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">轴方向,又称</SPAN><SPAN
lang=EN-US>view up vector</SPAN><SPAN
style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">。</SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 1px 0px; TEXT-INDENT: 0px; LINE-HEIGHT: 150%"><SPAN
lang=EN-US><FONT face=楷体_GB2312 size=4>2</FONT></SPAN><FONT face=楷体_GB2312
size=4><SPAN
style="mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -