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

📄 fglunextcontour.html

📁 计算机图形学~想必是很多人需要的~在此共享一下
💻 HTML
字号:
<HTML><BODY><PRE>     <STRONG>NAME</STRONG>	  <STRONG>fgluNextContour</STRONG> - mark the beginning of another contour     <STRONG>FORTRAN</STRONG> <STRONG>SPECIFICATION</STRONG>	  SUBROUTINE <STRONG>fgluNextContour</STRONG>( CHARACTER*8 <EM>tess</EM>,				      INTEGER*4	<EM>type</EM> )     <STRONG>PARAMETERS</STRONG>	  <EM>tess</EM>	Specifies the tessellation object (created with		<STRONG>fgluNewTess</STRONG>).	  <EM>type</EM>	Specifies the type of the contour being	defined. Valid		values are <STRONG>GLU_EXTERIOR</STRONG>, <STRONG>GLU_INTERIOR</STRONG>, <STRONG>GLU_UNKNOWN</STRONG>,		<STRONG>GLU_CCW</STRONG>, and <STRONG>GLU_CW</STRONG>.     <STRONG>DESCRIPTION</STRONG>	  <STRONG>fgluNextContour</STRONG> is used in describing	polygons with multiple	  contours. After the first contour has	been described through	  a series of <STRONG>fgluTessVertex</STRONG> calls, a <STRONG>fgluNextContour</STRONG> call	  indicates that the previous contour is complete and that the	  next contour is about	to begin.  Another series of	  <STRONG>fgluTessVertex</STRONG> calls is then used to describe	the new	  contour. This	process	can be repeated	until all contours	  have been described.	  <EM>type</EM> defines what type of contour follows.  The legal	  contour types	are as follows:	  <STRONG>GLU_EXTERIOR</STRONG>	    An exterior	contour	defines	an exterior			    boundary of	the polygon.	  <STRONG>GLU_INTERIOR</STRONG>	    An interior	contour	defines	an interior			    boundary of	the polygon (such as a hole).	  <STRONG>GLU_UNKNOWN</STRONG>	    An unknown contour is analyzed by the			    library to determine if it is interior or			    exterior.	  <STRONG>GLU_CCW</STRONG>,	  <STRONG>GLU_CW</STRONG>	    The	first <STRONG>GLU_CCW</STRONG> or <STRONG>GLU_CW</STRONG>	contour			    defined is considered to be	exterior. All			    other contours are considered to be			    exterior if	they are oriented in the same			    direction (clockwise or counterclockwise)			    as the first contour, and interior if they			    are	not.	  If one contour is of type <STRONG>GLU_CCW</STRONG> or <STRONG>GLU_CW</STRONG>, then all	  contours must	be of the same type (if	they are not, then all	  <STRONG>GLU_CCW</STRONG> and <STRONG>GLU_CW</STRONG> contours will be changed to <STRONG>GLU_UNKNOWN</STRONG>).	  Note that there is no	real difference	between	the <STRONG>GLU_CCW</STRONG>	  and <STRONG>GLU_CW</STRONG> contour types.	  Before the first contour is described, <STRONG>fgluNextContour</STRONG> can	  be called to define the type of the first contour.  If	  <STRONG>fgluNextContour</STRONG> is not called	before the first contour, then	  the first contour is marked <STRONG>GLU_EXTERIOR</STRONG>.	  This command is obsolete and is provided for backward	  compatibility	only. Calls to <STRONG>fgluNextContour</STRONG> are mapped to	  <STRONG>fgluTessEndContour</STRONG> followed by <STRONG>fgluTessBeginContour</STRONG>.     <STRONG>EXAMPLE</STRONG>	  A quadrilateral with a triangular hole in it can be	  described as follows:	  gluBeginPolygon(tobj);	     gluTessVertex(tobj, v1, v1);	     gluTessVertex(tobj, v2, v2);	     gluTessVertex(tobj, v3, v3);	     gluTessVertex(tobj, v4, v4); gluNextContour(tobj,	  GLU_INTERIOR);	     gluTessVertex(tobj, v5, v5);	     gluTessVertex(tobj, v6, v6);	     gluTessVertex(tobj, v7, v7); gluEndPolygon(tobj);     <STRONG>SEE</STRONG> <STRONG>ALSO</STRONG>	  <STRONG>fgluBeginPolygon</STRONG>, <STRONG>fgluNewTess</STRONG>, <STRONG>fgluTessCallback</STRONG>,	  <STRONG>fgluTessVertex</STRONG>, <STRONG>fgluTessBeginContour</STRONG></PRE></BODY></HTML>

⌨️ 快捷键说明

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