3D数学库对于Python

3D数学库对于Python

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

问题描述

我在找的蟒蛇或Python绑定一个三维数学库。

i'm looking for a 3d math library in python or with python bindings.

它需要处理旋转,平移,透视投影,一切基本上是这样。

it needs to handle rotation, translation, perspective projection, everything basically.

什么我不是寻找的是一个旨在绘制在屏幕上,使用Google不仅导致3D库时库一心渲染的东西到屏幕上。我不希望任何任何可视化,所有我需要的是能进料出库X,Y,Z坐标和接受她的X,Y屏幕坐标。

what im NOT looking for is a library aimed at drawing on the screen, googling for hours only led to 3d libraries bent on rendering something to the screen. i dont want any visualization whatsoever, all i need is to be able feed a library x,y,z coordinates and recieve the x,y screen coordinates.

我不介意,如果它是一个可视化库,只要它可以在不使任何画面中使用。

i dont mind if its a visualization library, as long as it can be used without rendering anything to the screen.

有没有这样的事对于蟒蛇?

is there anything like this for python?

编辑:请不要推荐SciPy的/ numpy的因为他们不是针对3D数学,但在数学一般,他们看起来像伟大的工具,如果我想建库我自己,我不。谢谢。

please dont recommend scipy/numpy as they arent aimed at 3d math but at math in general, they look like great tools if i wanted to build the library myself, which i dont. thanks.

推荐答案

尝试 gameobjects - 这是一个数学库,包括Python类的矩阵和向量,以及用于转换的方法。我认为这将提供大部分(如果不是全部),你需要的东西,再加上它的纯Python这样你就可以修改它,如果你需要。

Try gameobjects -- it's a math library that includes Python classes for matrices and vectors, along with methods for transformations. I think it will provide most (if not all) of what you need, plus it's pure Python so you can modify it if you need to.

这篇关于3D数学库对于Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!