Skip to content

Ear clipping triangulation algorithm implementation for splitting a polygon into its triangles.

Notifications You must be signed in to change notification settings

LeonSteinbach/EarClippingTriangulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ear clipping triangulation algorithm implementation for splitting a polygon into its triangles.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages