用于表示 3D 多面体的库 [英] library for representing 3D polyhedra

查看:18
本文介绍了用于表示 3D 多面体的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有提供 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!

理想情况下,这个库应该:

Ideally this library would:

  • 已有整洁的 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 绑定是这里,我相信唯一的大"依赖是 Boost Python(用于绑定).

The Python bindings are here and I believe the only "big" dependency is Boost Python (used for the bindings).

这篇关于用于表示 3D 多面体的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆