Пример #1
0
def convexHull_boundaryFind(ar_boundary):
    '''
    For a given np array <ar_boundary>, deterime the convex hull
    (implicitly assuming 2D spaces).

    Basically, this builds a polygon, finds the convex hull, and
    translates back to an np.array.
    '''
    return np.asarray( sgPolygon(ar_boundary).convex_hull.exterior )