1

我正在尝试使用 numpy-stl 库来旋转三角形网格,但该过程一直失败。作为参考,这是我正在运行的代码:

from stl import mesh
import math

sphere = mesh.Mesh.from_file('bones.stl')
sphere.rotate([0.0, 1, 0.0], math.radians(90), [0,0,0])
print(sphere.points[0])

但它永远不会打印结果。相反,它发出以下消息:

Process finished with exit code -1066598274 (0xC06D007E)

为什么是这样?我无法在网上找到任何类似的问题,并且我尝试加载不同的文件无济于事。

4

0 回答 0