Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convex hull python

from scipy.spatial import ConvexHull

# ... generate 'points', a 2D numpy array 

hull = ConvexHull(points)

# to plot the hull
vertices = hull.vertices
plt.plot(points[vertices,0], points[vertices,1], 'r', lw = 2)
Source by docs.scipy.org #
 
PREVIOUS NEXT
Tagged: #convex #hull #python
ADD COMMENT
Topic
Name
9+9 =