Skip to content

🔺 Fast and simple polygon triangulation library.

License

Notifications You must be signed in to change notification settings

tcoppex/polytri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polytri

PolyTri is a polygon triangulator for simple polygons based on Seidel's algorithm [1].

Quickstart

To build the static library and a simple command line tool, open a terminal and type :

$ mkdir build && cd build
$ cmake .. -G Makefile -DCMAKE_BUILD_TYPE=Release
$ make -j7

You can then run the command line tool by typing :

$ polytri-cli ../shape.data

Finally to display the result type :

firefox -new-window ../tools/polygon.html

References

  • [1] R. Seidel. A simple and fast incremental randomized algorithm for comput ing trapezoidal decompositions and for triangulating polygons. Comput. Geom. Theory Appl., 1:51–64, 1991.
  • [2] A. Narkhede and D. Manocha, Fast Polygon Triangulation Based on Seidel's Algorithm
  • [3] Fournier, Alain & Montuno, Delfin. (1984). Triangulating Simple Polygons and Equivalent Problems. ACM Trans. Graph.. 3. 153-174. 10.1145/357337.357341.
  • [4] M. de Berg, O. Cheong, M. van Kreveld, M. Overmars. Computational Geometry, Algorithms and Applications, Third Edition, Chap. 3 Polygon Triangulation, Springer, 2008.

Alternative

  • Triangle, A Two-Dimensional Quality Mesh Generator and Delaunay Triangulator.

License

PolyTri is released under the Unlicense.

About

🔺 Fast and simple polygon triangulation library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published