TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Building a Minimal Convex Hull

38 pointsby skazka16over 10 years ago

4 comments

nilknover 10 years ago
I became pretty interested in this topic not too long ago. Convex hulls are pretty well understood. I wanted to figure out a decent notion of &quot;concave hull&quot; (which is not a uniquely defined construct, unlike the convex hull). It turns out alpha shapes are pretty well suited to this:<p><a href="http://bl.ocks.org/zpconn/11387143" rel="nofollow">http:&#x2F;&#x2F;bl.ocks.org&#x2F;zpconn&#x2F;11387143</a>
chaoxuover 10 years ago
I have a hard time understanding why the author go out of his&#x2F;her way to rename standard definitions.<p>1. The definition of convex hull of a set S in the article, is the boundary of a convex set that contains all the points in S. The standard definition is the &quot;intersection of all convex sets that contains S&quot;. Edit: Yes, this is not a good definition for the article, but there is a equivalent for finite set of points in 2D which is much better suited: &quot;The smallest convex polygon contain all the points in S&quot;<p>2. The definition of minimal convex hull in the article, in the standard terminology, is the boundary of the convex hull.<p>The article links to wikipedia which clearly explains what is a convex hull, but still decides to come up with new terminology. As a warning, the &quot;convex hull&quot; in this article is not equivalent to the &quot;convex hull&quot; in wikipedia(or any other textbook definitions I have seen).
评论 #8742431 未加载
评论 #8742489 未加载
评论 #8742538 未加载
filereaperover 10 years ago
There&#x27;s also Chan&#x27;s algorithm (<a href="http://en.wikipedia.org/wiki/Chan%27s_algorithm" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Chan%27s_algorithm</a>)
评论 #8743376 未加载
nacsover 10 years ago
Another good source for convex hull code (I was using this recently): <a href="http://marknelson.us/2007/08/22/convex/" rel="nofollow">http:&#x2F;&#x2F;marknelson.us&#x2F;2007&#x2F;08&#x2F;22&#x2F;convex&#x2F;</a>