points_to_poly_collection#
- pyxem.utils.vectors.points_to_poly_collection(points, hull_index=(0, 1))[source]#
Convert a set of points to a polygon collection by creating a polygon. The method takes the points given and finds the outermost points to create the polygon.
- Parameters:
points (numpy.ndarray) – The points to be used to create the polygon (N x 2)
hull_index – The index of the points to be used to create the polygon. The default is (0, 1) which means that the first two columns of the points are used to create the polygon.