<DIV>Hi, </DIV> <DIV> I am again asking the question.If anyone has any idea please help me.Suppose I have a X-section whose normal n1 =(-0.25,0.75,0.3).I want to align it along n2=(0,1,0).So if I want to use vtkTransform,then to rotate along n2,I need to use RotateX,RotateY,RotateZ.That is what I asking about how can I get X,Y and Z angle.</DIV> <DIV> </DIV> <DIV>Best regards,</DIV> <DIV> </DIV> <DIV>A.N.<BR><BR><BR></DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <DIV><B><I>Aina Nagma <aina_nagma@yahoo.com></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <DIV>Hi Venu,</DIV> <DIV> Thanks for your suggestion.But I am asking for something else.Suppose I have a X-section whose normal n1 =(-0.25,0.75,0.3).I want to align it along n2=(0,1,0).So
if I want to use vtkTransform,then to rotate along n2,I need to use RotateX,RotateY,RotateZ.That is what I asking about how can I get X,Y and Z angle.</DIV> <DIV> </DIV> <DIV>Best regards,</DIV> <DIV> </DIV> <DIV>A. N.<BR><BR><B><I>venugopal gudimetla <gudimetlav@gmail.com></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <DIV>Are you trying to find the angle between two planes? I guess you can find the cosines in each direction.</DIV> <DIV> </DIV> <DIV>in each direction :</DIV> <DIV>v1•v2 = |v1||v2| cos(angle)</DIV> <DIV>therefore cos(angle)xy = v1•v2 /|v1||v2|</DIV> <DIV>repeat this for other two directions.</DIV> <DIV> <DIV>v1•v3 = |v1||v3| cos(angle)</DIV> <DIV>therefore cos(angle)xz = v1•v3 /|v1||v3|</DIV> <DIV> </DIV> <DIV>Thanks</DIV> <DIV>Venu</DIV><BR><BR> </DIV> <DIV><SPAN class=gmail_quote>On 1/22/07, <B class=gmail_sendername>Aina Nagma</B>
<<A href="mailto:aina_nagma@yahoo.com">aina_nagma@yahoo.com</A>> wrote:</SPAN> <BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> <DIV>Hi,</DIV> <DIV> I have a simple newbie question.I have two normals n1 = (-0.75,-0.5,0.25) and n2 = ( 0.5,-0.6,0.0).I want to know the angles between them separately in X,Y and Z direction.</DIV> <DIV>Can any body help me regarding this?</DIV> <DIV>Thanks in advance.</DIV><SPAN class=sg> <DIV> </DIV> <DIV>A. N.</DIV></SPAN><SPAN class=ad> <DIV> <HR SIZE=1> Everyone is raving about <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://us.rd.yahoo.com/evt=42297/*http://advision.webevents.yahoo.com/mailbeta" target=_blank>the all-new Yahoo! Mail beta.</A> <DIV></DIV> <DIV></DIV></SPAN><BR>_______________________________________________<BR>This is the private VTK discussion list.<BR>Please keep messages on-topic. Check
the FAQ at: <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>Follow this link to subscribe/unsubscribe:<BR><A onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers </A><BR><BR><BR></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE><BR> <DIV> <HR SIZE=1> Looking for earth-friendly autos? <BR><A href="http://autos.yahoo.com/green_center/;_ylc=X3oDMTE4MGw4Z2hlBF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDZ3JlZW5jZW50ZXI-">Browse Top Cars by "Green Rating"</A> at Yahoo! Autos' Green Center. _______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to
subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></DIV></BLOCKQUOTE><BR> <div> <HR SIZE=1> Don't be flakey. <A href="http://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mail">Get Yahoo! Mail for Mobile</A> and <BR><A href="http://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mail">always stay connected</A> to friends.</BLOCKQUOTE><BR><p> 
<hr size=1>It's here! Your new message!<br>Get
<a href="http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/"> new email alerts</a> with the free <a href="
http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/">Yahoo! Toolbar.</a>