Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 481 Bytes

File metadata and controls

10 lines (7 loc) · 481 Bytes

Polygon-Computation-and-Triangulation

Marching Squares algorithm for polygon reconstruction. Ear Clipping for Polygon Triangulation. Ray Casting for finding distance to the Polygon from a Point

Run Instructions (Must Use Python3 as Enums are used):

  1. "python3 reconstruction.py expressionfile"
  2. "python3 pmc.py polygonfile pointsfile"
  3. "python3 triangulation.py expressionfile"

expression file and points file have been attached. Change the numbers for your requirement.