Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 809 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 809 Bytes

EarClippingTriangulation Implementation in C# with MonoGame

This project is an implementation of the Ear Clipping Triangulation algorithm in C# with MonoGame. The Ear Clipping Triangulation algorithm is used to decompose a polygon into triangles. This implementation also includes a graphical display of the polygons and the triangles.

Installation

  • Install the latest version of Visual Studio
  • Install the latest version of MonoGame
  • Clone the repository
  • Open the project in Visual Studio
  • Build and run the project

Usage

  • Left click to add a point to the polygon
  • Right click to delete the last point from the polygon
  • Press the spacebar to triangulate the polygon
  • Press the "C" key to clear the polygon and triangles
  • Press the "Esc" key to exit the application