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

📄 readme

📁 [Game.Programming].Academic - Graphics Gems (6 books source code)
💻
字号:
	This program is an implementation of a fast polygontriangulation algorithm based on the paper "A simple and fastincremental randomized algorithm for computing trapezoidaldecompositions and for triangulating polygons" by Raimund Seidel.	The input is specified as a list of points (x, y). If thepolygon has n distinct vertices (the n+1 th vertex being the same asthe 1st vertex), then the file should contain only the n distinctvertices in ANTI-CLOCKWISE order. Also, the polygon should be simple(i.e. non self-intersecting) with NO HOLES. A sample data file isincluded in the package (Notice the no point is repeated).	Triangulation should produce (n - 2) triangles as the output.(i.e. no additional vertices are introduced). The result is availablein the array triangles[][3], where each of triangles[0] totriangles[n-3] contain the 3 vertices forming the triangle (thevertices are numbered 1..n accoring to the input). The vertices ofeach triangle are output in anti-clockwise order.		Use gmake to create the executable. (There sould not beany compilation problem. If log2() is not defined in your mathlibrary, you will have to supply the definition)	USAGE:	triangulate <filename>Bibliography:(Seidel 1991) R. Seidel. A simple and fast incremental randomizedalgorithm for computing trapezoidal decompositions for triangulatingpolygons. Computational Geometry: Theory and applications,1(1991):51-64. (Fournier et al. 84) A. Fournier and D.Y. Montuno, Triangulatingsimple polygons and equivalent problems, ACM Trans. on Graphics 3(1984) 153-174.Implementation report: Narkhede A. and Manocha D., Fast polygon triangulation algorithm based on Seidel's Algorithm, UNC-CH, 1994.-------------------------------------------------------------------This code is in the public domain. Specifically, we give to the publicdomain all rights for future licensing of the source code, all resalerights, and all publishing rights.UNC-CH GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE SOFTWAREAND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION, WARRANTYOF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE.				- Atul Narkhede (narkhede@cs.unc.edu)

⌨️ 快捷键说明

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