Polygon Geometry
A study of 2D polygon geometry for games: live tests for point-in-polygon, intersections, winding, triangulation and offset.

A study of 2D polygon geometry for games. Each scene is one live test: points inside a shape, a point exactly on the outline, a polygon inside a polygon, segments against an outline with a hole, segment intersections, edges facing a point, winding order, centroids, triangulation and polygon offset.
The shapes move on their own. Fill and outline turn green when the test passes and red when it fails, with a chime on every change. Triangulation shows each triangle in its own colour.
The original project is from 2019 (Unity 2018.3); I ported it to Unity 6 in 2026 and added the live visual layer. Credit: built on the open-source libraries eppz! Geometry by Geri Borbas (MIT), Triangle.NET and Clipper.
My role
Team
Platforms
- Windows
Stack
- Unity 6
- C#
- eppz! Geometry
- Triangle.NET
- Clipper
Solo developer
What I did
- 01Everything start to end: the geometry test scenes, the Unity 6 port, the film and its edit. This is a pet project, not Siligin work.
- 02The live visual layer: filled shapes that change colour with each test answer, glow lines, a grid and triangle colouring
- 03A chime on every pass or fail change; music and sound synthesised for the film
What stands out
- 01Ten live tests, from point-in-polygon to polygon offset
- 02Pass and fail shown at once: green or red fill and outline
- 03Built on MIT and open-source geometry libraries, credited on the page
See it in action
Footage is in the films above.
