📄 fglutessendpolygon.html
字号:
<HTML><BODY><PRE> <STRONG>NAME</STRONG> <STRONG>fgluTessEndPolygon</STRONG> - delimit a polygon description <STRONG>FORTRAN</STRONG> <STRONG>SPECIFICATION</STRONG> SUBROUTINE <STRONG>fgluTessEndPolygon</STRONG>( CHARACTER*8 <EM>tess</EM> ) <STRONG>PARAMETERS</STRONG> <EM>tess</EM> Specifies the tessellation object (created with <STRONG>fgluNewTess</STRONG>). <STRONG>DESCRIPTION</STRONG> <STRONG>fgluTessBeginPolygon</STRONG> and <STRONG>fgluTessEndPolygon</STRONG> delimit the definition of a convex, concave or self-intersecting polygon. Within each <STRONG>fgluTessBeginPolygon</STRONG>/<STRONG>fgluTessEndPolygon</STRONG> pair, there must be one or more calls to <STRONG>fgluTessBeginContour</STRONG>/<STRONG>fgluTessEndContour</STRONG>. Within each contour, there are zero or more calls to <STRONG>fgluTessVertex</STRONG>. The vertices specify a closed contour (the last vertex of each contour is automatically linked to the first). See the <STRONG>fgluTessVertex</STRONG>, <STRONG>fgluTessBeginContour</STRONG> and <STRONG>fgluTessEndContour</STRONG> reference pages for more details. Once <STRONG>fgluTessEndPolygon</STRONG> is called, the polygon is tessellated, and the resulting triangles are described through callbacks. See <STRONG>fgluTessCallback</STRONG> for descriptions of the callback functions. <STRONG>EXAMPLE</STRONG> A quadrilateral with a triangular hole in it can be described like this: 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); In the above example the pointers, v1 through v7, should point to different addresses, since the values stored at these addresses will not be read by the tesselator until <STRONG>fgluTessEndPolygon</STRONG> is called. <STRONG>SEE</STRONG> <STRONG>ALSO</STRONG> <STRONG>fgluNewTess</STRONG>, <STRONG>fgluTessBeginContour</STRONG>, <STRONG>fgluTessVertex</STRONG>, <STRONG>fgluTessCallback</STRONG>, <STRONG>fgluTessProperty</STRONG>, <STRONG>fgluTessNormal</STRONG>, <STRONG>fgluTessBeginPolygon</STRONG></PRE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -