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

📄 fglusphere.html

📁 计算机图形学~想必是很多人需要的~在此共享一下
💻 HTML
字号:
<HTML><BODY><PRE>     <STRONG>NAME</STRONG>	  <STRONG>fgluSphere</STRONG> - draw a sphere     <STRONG>FORTRAN</STRONG> <STRONG>SPECIFICATION</STRONG>	  SUBROUTINE <STRONG>fgluSphere</STRONG>( CHARACTER*8 <EM>quad</EM>,				 REAL*8	<EM>radius</EM>,				 INTEGER*4 <EM>slices</EM>,				 INTEGER*4 <EM>stacks</EM> )     <STRONG>PARAMETERS</STRONG>	  <EM>quad</EM>	  Specifies the	quadrics object	(created with		  <STRONG>fgluNewQuadric</STRONG>).	  <EM>radius</EM>  Specifies the	radius of the sphere.	  <EM>slices</EM>  Specifies the	number of subdivisions around the <EM>z</EM>		  axis (similar	to lines of longitude).	  <EM>stacks</EM>  Specifies the	number of subdivisions along the <EM>z</EM>		  axis (similar	to lines of latitude).     <STRONG>DESCRIPTION</STRONG>	  <STRONG>fgluSphere</STRONG> draws a sphere of the given radius	centered	  around the origin. The sphere	is subdivided around the <EM>z</EM>	  axis into slices and along the <EM>z</EM> axis	into stacks (similar	  to lines of longitude	and latitude).	  If the orientation is	set to <STRONG>GLU_OUTSIDE</STRONG> (with	  <STRONG>fgluQuadricOrientation</STRONG>), then	any normals generated point	  away from the	center of the sphere.  Otherwise, they point	  toward the center of the sphere.	  If texturing is turned on (with <STRONG>fgluQuadricTexture</STRONG>), then	  texture coordinates are generated so that <EM>t</EM> ranges from 0.0	  at z=-radius to 1.0 at z=radius (<EM>t</EM> increases linearly	along	  longitudinal lines), and <EM>s</EM> ranges from 0.0 at	the +<EM>y</EM> axis,	  to 0.25 at the +<EM>x</EM> axis, to 0.5 at the	-<EM>y</EM> axis, to 0.75 at	  the -<EM>x</EM> axis, and back	to 1.0 at the +<EM>y</EM> axis.     <STRONG>SEE</STRONG> <STRONG>ALSO</STRONG>	  <STRONG>fgluCylinder</STRONG>,	<STRONG>fgluDisk</STRONG>, <STRONG>fgluNewQuadric</STRONG>, <STRONG>fgluPartialDisk</STRONG>,	  <STRONG>fgluQuadricOrientation</STRONG>, <STRONG>fgluQuadricTexture</STRONG></PRE></BODY></HTML>

⌨️ 快捷键说明

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