
使用Arrow语句绘制矢量箭头:



from draw3d import *
draw3d()
point1 = (2,2,2)
point2 = (5,-2,-2)
draw3d(
Points3D(point1,point2),
Arrow3D(point1,color=red),
Arrow3D(point2,color=red),
Segment3D(point1,point2,color=blue)
)
point1 = (2,2,2)
point2 = (5,-2,-2)
draw3d(
Points3D(point1,point2),
Arrow3D(point1,color=red),
Arrow3D(point2,color=red),
Segment3D(point1,point2,color=blue),
Box3D(2,2,2),
Box3D(5,-2,-2)
)
draw3d(
Points3D((2,2,2)),
Arrow3D((2,2,2),color=red),
Box3D(2,2,2),
)
文章转载自那年彷徨,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




