Python Forum
Need help in solving Oignon convex hull - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: Need help in solving Oignon convex hull (/thread-33470.html)



Need help in solving Oignon convex hull - petermarsi - Apr-27-2021

Hello there,
I was working on a project for a while now and I don't get my code to work
The problem looks quite simple:

Given a set of points : [[x1,y1],[x2,y2],...,[xn,yn]]
I want to calculate and plot the consecutive convex hulls of the set until the last one containes less than 3 points.


I have been trying to use scipyand the ConvexHull geometry module but I can't remove the points from the current oignon layer to compute the next one and codes like the one from Tom switzer don't seem to work ...
Can you help me and give me advises please ?
regard:
Peter


RE: Need help in solving Oignon convex hull - Larz60+ - Apr-28-2021

Please show the old code that's not working for you.