Need help with hxGeomAlgo?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

134 Stars 11 Forks Other 232 Commits 2 Opened issues


Small collection of computational geometry algorithms in Haxe.

Services available


Need anything else?

Contributors list

# 321,764
226 commits
# 472,339
1 commit


Small collection of computational geometry algorithms in Haxe.

swf demo | js demo

Marching Squares (Contour Tracing)

Based on:

  • (C# - by Phil Spiess)
  • (Java - by Tom Gibara)

Ramer-Douglas-Peucker (Polyline Simplification)

Based on:

  • (JS - by Marius Karthaus)
  • (JS - by Grumdrig)

Ear Clipping (Triangulation and Poly Decomposition w/ Hole Support)

Based on:

  • (JS - by Vladimir Agafonkin)
  • (Java - by Eric Jordan)

Bayazit (Poly Decomposition)

Based on:

  • (C - by Mark Bayazit)
  • (Java - by William Bittle)

Visibility Polygon and Homogeneous Coords (2D)

Based on:

  • (Java - by Jack Snoeyink)

Snoeyink-Keil (Minimum Convex Decomposition)

Based on:

Connected Components Labeling and Contour Tracing (w/ Hole Support)

Based on:

Visvalingam-Whyatt (Polyline Simplification)

Based on:

Tess2 (Tesselation to Triangles and Convex Polygons, Poly Boolean Ops)

Based on:

  • GLU Libtess (by Eric Veach, July 1994)
  • tess2.js (JS - by Mikko Mononen, Aug 2013)

IsoContours (Contour Tracing)

Based on:

  • (Haxe - by Luca Deltodesco)
  • (Python - by scikit-image team)

Hertel-Mehlhorn (Convex Polygons from Arbitrary Triangulation)

Based on:

  • (CPP - by Ivan Fratric)
  • (by Phil Porvaznik)

Chaikin (Recursive Curve Smoothing)

Based on:

Wu-Yong-Zhang-Zhang (Multi-step Chaikin Curve Smoothing)

Based on:


The only dependency is hxPixels, and only for the algorithms needing access to pixels.


Code is extensively doc-commented, and I tried my best to make it easy/intuitive to use. You can also take a look at the demo for a quick overview on how to use the different classes.


hxGeomAlgo is based on the work of many developers and it wouldn't exist if it weren't for them. See the CREDITS file for details.


hxGeomAlgo is developed by Giuseppe Di Mauro (azrafe7) and released under the MIT license (except for

, which is licensed under SGI B 2.0). See the LICENSE file for details.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.