At the moment I am implementing an algorithm to compute the Newton-Polygon in Python.
In Scipy there is already a function to compute the convex hull of a given set of points, but I am not understanding how to take its lower boundary, does someone have an idea?
I already applied the ConvexHull function from Scipy and tried only taking the first few entries up until the point on the right, but it sometimes it resulted in the upper convex hull.
I would solve this by finding the extreme x values, and getting the points between the two. SciPy is guaranteed to emit coordinates for the convex hull of a set of 2D points in counter-clockwise order, so you can read from the position of the minimum x value to the position of the maximum x value, and get the lower convex hull.
Code:
Example of how to use this: