1

如何使轴 x,y,z 看起来像

在此处输入图像描述

from visual import *

f = frame()

# Axis
pointer_x = arrow(frame=f, pos=(0,0,0), axis=(40,0,0), shaftwidth=1, color = color.red)
pointer_y = arrow(frame=f, pos=(0,0,0), axis=(0,40,0), shaftwidth=1, color = color.blue)
pointer_z = arrow(frame=f, pos=(0,0,0), axis=(0,0,40), shaftwidth=1, color = color.green)

# Show X,Y,Z labels
label(frame=f,pos=(40,0,0), text='X')
label(frame=f,pos=(0,40,0), text='Y')
label(frame=f,pos=(0,0,40), text='Z')
4

1 回答 1

1

这段代码解决了它,如果有更好的方法评论它。

# Show it like ECEF
f.rotate(angle=radians(-90),axis=(1,0,0),origin=(0,0,0))
f.rotate(angle=radians(180),axis=(0,1,0),origin=(0,0,0))
于 2014-02-13T09:57:34.660 回答