0

I'm using the alphashape toolbox (alphashape 1.3.1) to calculate a concave hull polygon for a set of points and I'm getting one convex polygon when alpha=6 and two polygons when alpha=7.

xy_p = [(0.2, 0.1), (0.3, 0.1), (0.4, 0.1), (0.4, 0.2), (0.4, 0.3), (0.4, 0.4), (0.4, 0.5), (0.4, 0.6), (0.3, 0.6), (0.2, 0.6), (0.2, 0.5), (0.3, 0.5), (0.4, 0.4), (0.4, 0.3), (0.3, 0.2), (0.2, 0.2)]

alpha_shape = alphashape.alphashape(xy_p, 6)

enter image description here

when alpha=7:

alpha_shape = alphashape.alphashape(xy_p, 7)

enter image description here

What should I do get one concave polygon like this: enter image description here

0 Answers0