WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 09-04-2009, 05:54 AM
lilio lilio is offline
Member
 
Join Date: May 2009
Posts: 11
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!
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Draw line with a triangle at the end Chrissy2009 Vizard 9 08-24-2009 11:12 AM


All times are GMT -7. The time now is 07:20 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC