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.

Round rectangles are everywhere

74 pointsby omarfarooqover 3 years ago

9 comments

jmiskovicover 3 years ago
I recently got tip on a 3D version of round rectangles, called octasphere: <a href="https:&#x2F;&#x2F;prideout.net&#x2F;blog&#x2F;octasphere&#x2F;" rel="nofollow">https:&#x2F;&#x2F;prideout.net&#x2F;blog&#x2F;octasphere&#x2F;</a><p>It&#x27;s not a direct-to-screen rendering technique like the article, rather a way to procedurally construct the 3D mesh based on few parameters (W,H,D, radius, # of subdivisions). Just like rectangles in 2D, boxes in 3D are too simple and have harsh sharp edges. Adding rounded edges makes them nicer to look at. Additionally, the octasphere method gives you capsules and spheres and everything in-between.<p>Edit: Oh look - there&#x27;s a front page article that talks about this in-depth: <a href="https:&#x2F;&#x2F;wwwtyro.net&#x2F;2021&#x2F;09&#x2F;24&#x2F;rounded-box.html" rel="nofollow">https:&#x2F;&#x2F;wwwtyro.net&#x2F;2021&#x2F;09&#x2F;24&#x2F;rounded-box.html</a>
ThePhysicistover 3 years ago
Windows 11 just re-introduced rounded rectangles for window borders, and I kind of like it. Also seems we&#x27;re leaving flat surfaces behind for something more skeuomorphic again.
评论 #28680008 未加载
potiuperover 3 years ago
Article &amp; Source Code: <a href="http:&#x2F;&#x2F;wg20.criticalcodestudies.com&#x2F;index.php?p=&#x2F;discussion&#x2F;80&#x2F;code-critique-roundrects-apple-quickdraw-source-code" rel="nofollow">http:&#x2F;&#x2F;wg20.criticalcodestudies.com&#x2F;index.php?p=&#x2F;discussion&#x2F;...</a>
guzikover 3 years ago
It is amazing that in those days, interface design belonged more to R&amp;D departments (having people from academia) than marketing and design. For example, professors, PHDs and their students (Jef Raskin, Bill Atkinson) worked on Macintosh design. Similarly at Xerox Park.
评论 #28680178 未加载
dangover 3 years ago
Related ongoing thread:<p><i>Procedurally generating a rounded box mesh</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28677064" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28677064</a> - Sept 2021 (21 comments, particularly <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28677781" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28677781</a>)<p>Past submissions of the folklore.org article:<p><i>History of Rounded Corners</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7062706" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7062706</a> - Jan 2014 (1 comment)<p><i>Steve Jobs and Rounded Corners</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3096927" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3096927</a> - Oct 2011 (1 comment)<p><i>The story of round rectangles</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1636358" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=1636358</a> - Aug 2010 (77 comments)
bjarnehover 3 years ago
Very interesting story. All the stories about Jobs it seems he got more &quot;intense&quot; if he didn&#x27;t get his way.
评论 #28680297 未加载
bonziniover 3 years ago
I am curious why the rounded rectangle would be hard to draw. The circle primitive is already going to exploit symmetry and draw four (or eight) symmetric points at a time, computing them centered at (0,0) and shifting them to the center of the circle. Why would it be hard to shift those four pixels by four different centers (the four corners of the rectangle plus&#x2F;minus the radius)? Filling them would not be any harder, either, and drawing thick lines would be harder but---again---just as hard as drawing a circle with thick lines.
评论 #28680180 未加载
评论 #28680078 未加载
评论 #28680217 未加载
bryanrasmussenover 3 years ago
this made me think, what&#x27;s the math for a rounded rectangle then <a href="https:&#x2F;&#x2F;math.stackexchange.com&#x2F;questions&#x2F;1649714&#x2F;whats-the-equation-for-a-rectircle-perfect-rounded-corner-rectangle-without-s" rel="nofollow">https:&#x2F;&#x2F;math.stackexchange.com&#x2F;questions&#x2F;1649714&#x2F;whats-the-e...</a>
评论 #28680119 未加载
spoonjimover 3 years ago
I don’t think the Valley will ever see a PM&#x2F;product marketer as great as Jobs.
评论 #28679855 未加载
评论 #28679832 未加载