Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

triangulation between points for openFrameworks

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 example-opencv
Octocat-spinner-32 example-simple
Octocat-spinner-32 include
Octocat-spinner-32 lib
Octocat-spinner-32 src
Octocat-spinner-32 README.md
README.md

ofxTriangle

  • Given a set of points from a complex polygon, triangulates the points of the smallest number of triangles required to fill that polygon.

  • Particularly useful for breaking down concave shapes (which can't be drawn natively by OpenGL) into triangles (which OpenGL is happy with)

  • An example is here: http://forum.openframeworks.cc/index.php/topic,10582.0.html

Credits

  • Uses the Triangle library, a 'Two-Dimensional Quality Mesh Generator and Delaunay Triangulator', by Jonathan Richard Shewchuk.

  • Uses the 'point inside polygon' algorithm by Theo Watson.

Examples

  • example-opencv by James George - requires ofxOpenCv - builds polygons based on frame differencing from your webcam

  • example-simple by Andrew McWilliams - requires no addons - just demonstrates a concave polygon

Something went wrong with that request. Please try again.