Convex hull builder
Find and plot the outer boundary of a point cloud.
A clear answer. Here’s how.
Uses Andrew’s monotone-chain hull after sorting and removing exact duplicate coordinates. Supports 2–1,000 points within ±1 billion. Collinear interior points are omitted; a collinear cloud returns its two extreme endpoints and zero area. Exported vertices are counter-clockwise for a non-degenerate hull, with implicit closure. A coordinate plot accompanies the table; floating-point orientation tests can be sensitive for nearly collinear points.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- Point CSV
X,Y 0,0 4,0 4,3 0,3 2,1
Example result
| Vertex | X | Y |
|---|---|---|
| 1 | 0 | 0 |
| 2 | 4 | 0 |
| 3 | 4 | 3 |
| 4 | 0 | 3 |
4 boundary vertices; area 12. Collinear interior points and duplicate coordinates are omitted. The hull closes from its last vertex to its first.