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.

SVGnest: Efficient packing of irregular shapes with JavaScript

108 pointsby ireflectover 9 years ago

7 comments

Jack000over 9 years ago
OP here. I&#x27;m a pretty big CNC enthusiast and part nesting is a problem I face regularly. The software that does this is all pretty expensive and I couldn&#x27;t find an open source implementation, so I decided to write it myself.<p>Try it out and let me know if you have any feedback
评论 #10915310 未加载
评论 #10935338 未加载
评论 #10914209 未加载
评论 #10914919 未加载
评论 #10914884 未加载
评论 #10915545 未加载
评论 #10915657 未加载
评论 #10914994 未加载
lotyrinover 9 years ago
I&#x27;d think you&#x27;d get a better result from simulated annealing over GA here.
epmatswover 9 years ago
This is an impressively cool thing that I&#x27;ve never even thought about. Really neat that a hobbyist result is comparable (better in the example!) than the commercial product.
gavinballardover 9 years ago
This is awesome, thanks for sharing!<p>I&#x27;ll dive into the implementation a little more shortly, but just wondering how easy it is to add additional constraints (for example, that pieces need particular orientations)?<p>Edit: Oh, I see there&#x27;s a &quot;Part Rotations&quot; parameter. Excellent!
ameliusover 9 years ago
Finally a github repo with a decent description of the algorithms used!<p>Very nice work. Thanks for sharing!
geoffbrown2014over 9 years ago
Love it, great job! How long did it take you to get it up and running?
评论 #10915062 未加载
mrcactu5over 9 years ago
would this include Letters? this might be a great tool for making word clouds
评论 #10915334 未加载