Hey,
I've got another idea, to solve my problem. But therefore I should know, how to get the euler of my line.
So I draw a line like this:
Code:
begin = [0,0,0]
end = [2,1,2]
viz.startlayer(viz.LINES)
viz.linewidth(2)
viz.vertexcolor(viz.RED)
viz.vertex(begin)
viz.vertex(end)
viz.startlayer(viz.POINTS)
viz.pointsize(3)
viz.vertex(begin)
viz.vertex(end)
dr = viz.endlayer()
And now I want to get the euler of this line.
But If I make
Code:
print dr.getEuler()
it is always [0, 0, 0].
Is it possible to get the euler of a drawn line?
Or the angles between the axes and my line.
Thanks a lot for all your help!