库重新presenting三维多面体 [英] library for representing 3D polyhedra
问题描述
是否有提供3D多面体任何库,并支持计算两个多面体的交集?
Are there any libraries that provide 3D polyhedra, and support calculating the intersection of two polyhedra?
如果它的确与众不同,我想模拟没有洞在其中的多面体。
If it makes a difference, the polyhedra I want to model do not have 'holes' in them.
的重点将放在第一的正确性和速度紧随其后!
The focus would be on correctness first and speed a close second!
理论上讲,该库将:
- 在已经存在的整洁Python绑定
- 是自由站立或有合理的和小的依赖性
- 支持计算多面体的轮廓时,认为从任何角度
推荐答案
CGAL 提供,而比你多再次询问,但不会特别包括多面体和布尔般对他们的操作(我不知道的观点从任何角度作为一种原始的,但 - 我记得它不存在,当我最后用它,但是这是前一阵子 - 你可能要重复投射在适当的平面上的篱笆)
CGAL offers rather more than you're asking for, but does in particular include polyhedra and "boolean"-like operations on them (I'm not sure about "view from any angle" as a primitive, though -- as I recall it wasn't there when I last used it, but that was a while ago -- you may have to iterate projecting the hedges on the appropriate plane).
Python绑定这里,我相信只有大的依赖是升压的Python (用于绑定)。
The Python bindings are here and I believe the only "big" dependency is Boost Python (used for the bindings).
这篇关于库重新presenting三维多面体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!