-
Notifications
You must be signed in to change notification settings - Fork 2
Convex Hull algorithm coded in python with pygame visual interface. Click anywhere to create a point to include in the calculations. The program will show the calculated hull as well as print out a list of the points that make up the hull
License
quillyBeans/VisualConvexHull
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Visual Convex Hull A simulation environment for 2d convex hull analysis 0 - REQUIREMENTS 1 - OVERVIEW 2 - USAGE 3 - TODO 0 - REQUIREMENTS Python 2.7.3 or higher Pygame 1 - OVERVIEW The convex hull is the smallest convex set of points that contains all points. The easiest way to think of it is like a rubber band stretched over a peg board. This application visually shows how the convex hull is calculated, currently implemented using Andrew's monotone chain algorithm O(n log n). The source code for this implementation is included in the file convexHull.py. 2 - USAGE Open the command line (unix) or command prompt (windows). Navigate to the launch.py file and enter the command 'python launch.py'. A graphical environment is shown and accepts mouse clicks to make points to calculate the convex hull on. At any point in time, if 'Get Hull' is clicked then the points that constitute the convex hull are colored red as well as the edges connecting them. 3 - TODO -Interactive environment, where each step of the convex hull is shown visually -Implement other Convex Hull algorithms to analyse
About
Convex Hull algorithm coded in python with pygame visual interface. Click anywhere to create a point to include in the calculations. The program will show the calculated hull as well as print out a list of the points that make up the hull
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published