Skip to content

Commit

Permalink
updates docs (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: TANG ZHIXIONG <[email protected]>
  • Loading branch information
district10 and TANG ZHIXIONG authored Nov 4, 2022
1 parent c8e900a commit 8bb8a13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

A very fast 2D concave hull algorithm.

![](hull.png)

Credits goes to:

- https://github.com/mapbox/concaveman
Expand Down
Binary file added hull.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

plt.plot(points[:, 0], points[:, 1], "o")
for simplex in convex_hull.simplices:
plt.plot(points[simplex, 0], points[simplex, 1], "k-")
plt.plot(points[simplex, 0], points[simplex, 1], "g-", alpha=0.5)

idxes = concave_hull_indexes(
points[:, :2],
Expand All @@ -31,5 +31,5 @@

for f, t in zip(idxes[:-1], idxes[1:]):
seg = points[[f, t]]
plt.plot(seg[:, 0], seg[:, 1], "k-")
plt.plot(seg[:, 0], seg[:, 1], "r-", alpha=0.5)
plt.show()

0 comments on commit 8bb8a13

Please sign in to comment.