python中的好几何库? [英] Good geometry library in python?
本文介绍了python中的好几何库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
- 评估两个交点之间的交点2D和3D线(如果存在)
- 评估平面和线之间的交点或两个平面之间的交线
- 评估线和点之间的最小距离
- 找到穿过点的平面的正交坐标
- 旋转,平移,镜像一组
- 找到由四个点定义的二面角
/ b>
我有一本指南所有这些操作,我都可以实现,但不幸的是我没有时间,所以我会喜欢一个图书馆。大多数操作对于游戏目的都很有用,所以我确信这些功能中的一部分可以在游戏库中找到,但我不希望包含我不需要的功能(如图形)。
有什么建议吗?感谢
解决方案也许看看 SymPy 。
I am looking for a good and well developed library for geometrical manipulations and evaluations in python, like:
- evaluate the intersection between two lines in 2D and 3D (if present)
- evaluate the point of intersection between a plane and a line, or the line of intersection between two planes
- evaluate the minimum distance between a line and a point
- find the orthonormal to a plane passing through a point
- rotate, translate, mirror a set of points
- find the dihedral angle defined by four points
I have a compendium book for all these operations, and I could implement it but unfortunately I have no time, so I would enjoy a library that does it. Most operations are useful for gaming purposes, so I am sure that some of these functionalities can be found in gaming libraries, but I would prefer not to include functionalities (such as graphics) I don't need.
Any suggestions ? Thanks
解决方案Perhaps take a look at SymPy.
这篇关于python中的好几何库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文