Oct-25-2016, 07:59 PM
(This post was last modified: Oct-25-2016, 08:00 PM by Scientifix.)
Hello everyone,
I have been working on a projet 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 ?
I realy need your help,
Thanks a lot,
Scientifix
I would like to get something like this :
I have been working on a projet 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 ?
I realy need your help,
Thanks a lot,
Scientifix
I would like to get something like this :
![[Image: demoOnionPeeling_03.png]](https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/7844/versions/22/previews/geom2d/demos/polygons2d/demoOnionPeeling/html/demoOnionPeeling_03.png)