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

📄 tessbeginpolygon.html

📁 计算机图形学~想必是很多人需要的~在此共享一下
💻 HTML
字号:
<HTML><BODY><PRE>     <STRONG>NAME</STRONG>	  <STRONG>gluTessBeginPolygon</STRONG> -	delimit	a polygon description     <STRONG>C</STRONG> <STRONG>SPECIFICATION</STRONG>	  void <STRONG>gluTessBeginPolygon</STRONG>( GLUtesselator* <EM>tess</EM>,				    GLvoid* <EM>data</EM> )     <STRONG>PARAMETERS</STRONG>	  <EM>tess</EM>	Specifies the tessellation object (created with		<STRONG>gluNewTess</STRONG>).	  <EM>data</EM>	Specifies a pointer to user polygon data.     <STRONG>DESCRIPTION</STRONG>	  <STRONG>gluTessBeginPolygon</STRONG> and <STRONG>gluTessEndPolygon</STRONG> delimit the	  definition of	a convex, concave or self-intersecting	  polygon. Within each <STRONG>gluTessBeginPolygon</STRONG>/<STRONG>gluTessEndPolygon</STRONG>	  pair,	there must be one or more calls	to	  <STRONG>gluTessBeginContour</STRONG>/<STRONG>gluTessEndContour</STRONG>. Within	each contour,	  there	are zero or more calls to <STRONG>gluTessVertex</STRONG>. The vertices	  specify a closed contour (the	last vertex of each contour is	  automatically	linked to the first). See the <STRONG>gluTessVertex</STRONG>,	  <STRONG>gluTessBeginContour</STRONG>, and <STRONG>gluTessEndContour</STRONG> reference pages	  for more details.	  <EM>data</EM> is a pointer to a user-defined data structure. If the	  appropriate callback(s) are specified	(see <STRONG>gluTessCallback</STRONG>),	  then this pointer is returned	to the callback	function(s).	  Thus,	it is a	convenient way to store	per-polygon	  information.	  Once <STRONG>gluTessEndPolygon</STRONG> is called, the	polygon	is	  tessellated, and the resulting triangles are described	  through callbacks.  See <STRONG>gluTessCallback</STRONG> for descriptions of	  the callback functions.     <STRONG>EXAMPLE</STRONG>	  A quadrilateral with a triangular hole in it can be	  described as follows:	  gluTessBeginPolygon(tobj, NULL);	   gluTessBeginContour(tobj);	     gluTessVertex(tobj, v1, v1);	     gluTessVertex(tobj, v2, v2);	     gluTessVertex(tobj, v3, v3);	     gluTessVertex(tobj, v4, v4);	   gluTessEndContour(tobj);	   gluTessBeginContour(tobj);	     gluTessVertex(tobj, v5, v5);	     gluTessVertex(tobj, v6, v6);	     gluTessVertex(tobj, v7, v7);	   gluTessEndContour(tobj); gluTessEndPolygon(tobj);     <STRONG>SEE</STRONG> <STRONG>ALSO</STRONG>	  <STRONG>gluNewTess</STRONG>, <STRONG>gluTessBeginContour</STRONG>, <STRONG>gluTessVertex</STRONG>,	  <STRONG>gluTessCallback</STRONG>, <STRONG>gluTessProperty</STRONG>, <STRONG>gluTessNormal</STRONG>,	  <STRONG>gluTessEndPolygon</STRONG></PRE></BODY></HTML>

⌨️ 快捷键说明

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