points_to_polygon#
- pyxem.utils.vectors.points_to_polygon(points, num_points=50)[source]#
Convert a set of points to a polygon by creating a polygon. The method takes the points given and finds the outermost points to create the polygon. The number of points in the polygon defines the resolution of the polygon.
- Parameters:
points (numpy.ndarray) – The points to be used to create the polygon (N x 2)
num_points – The number of points on each side (top, bottom, left, right) of the polygon used to create the edges of the polygon.
- Returns:
The vertices of the polygon
- Return type: