结合多个矢量形状,减少空间浪费
我有一个用 Python 编写的算法,可以创建并输出大量矢量形状。这些形状都大致呈三角形。目前,每个文件都保存为单独的 dxf 文件。我现在想用激光切割它们,并且希望尽可能减少浪费。
我正在寻找一种将它们组合起来而又不会浪费大量空间的方法。产生最有效结果的算法也很好,但这当然不是必要的。
I have an algorithm written in Python that creates and outputs a large amount of vector shapes. These shapes are all roughly triangular. Currently each is saved as a separate dxf file. I now want to laser-cut them and I'd like to do it with minimal waste.
What I'm looking for is a way to combine them without an unreasonable amount of wasted space. An algorithm that produces the most efficient possible result would also be nice, but it certainly isn't necessary.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
切割片材的最佳二维形状布局是一个难题,需要积极研究。 “面板切割”问题假设为矩形。非矩形形状要困难得多。
尝试搜索“形状嵌套算法”。
Optimal 2d shape layout for cutting sheet goods is a hard problem, with active research. The "panel cutting" problem assumes rectangular shapes. Non-rectangular shapes are much harder.
Try searching for "shape nesting algorithms".