围绕ncollide rust库子集的python包装器
ncollpyde的Python项目详细描述
在========= ncollpyde公司
。。图片::https://img.shields.io/pypi/v/ncollpyde.svg :目标:https://pypi.python.org/pypi/ncollpyde
。。图片::https://github.com/clbarnes/ncollpyde/workflows/.github/workflows/ci.yml/badge.svg :目标:https://github.com/clbarnes/ncollpyde/actions :alt:操作状态
。。图片::https://readthedocs.org/projects/ncollpyde/badge/?version=latest :目标:https://ncollpyde.readthedocs.io/en/latest/?badge=latest :alt:文档状态
。。图片::https://img.shields.io/badge/code%20style-black-000000.svg :目标:https://github.com/ambv/black
围绕ncollide rust库子集的python包装器
- 免费软件:麻省理工学院许可证
- 文档:https://ncollpyde.readthedocs.io。在
安装
pip install ncollpyde
预构建的控制盘可用于Linux、MacOS和Windows。 如果您有一个稳定的rust编译器,您也应该能够从源代码安装。在
特点
- 检查点是否位于由三角形网格定义的体积内
- 检查线段与网格的交点
使用
。。代码块::python
# get an array of vertices and triangles which refer to those points
import meshio
mesh = meshio.read("tests/teapot.stl")
vertices = mesh.points
triangles = mesh.cells_dict["triangle"]
# use this library
from ncollpyde import Volume
volume = Volume(vertices, triangles)
安全壳检查:
。。代码块::python
^{pr2}$注意,v0.11是最后一个支持meshio < 4.0
。在
已知问题
- 多线程查询的性能提高并不令人满意,尤其是对于光线相交:请参见
this issue <https://github.com/clbarnes/ncollpyde/issues/12>
- 非常罕见的遏制假阳性
- 由于
bug in the underlying library <https://github.com/rustsim/ncollide/issues/335>
- 仅当点位于网格外部并发射一条接触网格的单条边或顶点的光线时才会发生。在
- 也会影响光线相交检查的
is_backface
结果
- 由于
- 项目
标签: