Go Back   AC3D Forums > General > AC3D General
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 25th May 2014, 05:43 PM   #11
fabrizio fracaroli
Junior Member
Member
 
Join Date: Apr 2010
Location: Brazil
Posts: 21
Default Re: Getting the angle vectors ?

Hi thanks for quick reply.
Should I post a new thread about it?
In the ac3d, when I select two vertices, I have a measure of distance.
How about to have a feature like this:
When selecting three vertices, the UI shows the angle.
Regards Fabrizio
fabrizio fracaroli is offline   Reply With Quote
Old 26th May 2014, 02:34 PM   #12
jentron
Senior Member
Professional user
 
Join Date: Nov 2007
Posts: 139
Default Re: Getting the angle vectors ?

Quote:
Originally Posted by Stiglr View Post
I've done the edit, but I'm not sure I'm getting the right results (or what I'm expecting to see).

0.995928 0.00242298 -0.0901201 (I'm assuming this is in X,Y,Z order)

None of these values is anywhere near 5 degrees (presumably this should be in the Y (nose to tail axis). The first value is basically one degree, the others are very close to "straight", as is indicated by the position of the part.
Haven't read the thread too deeply, but what you're seeing here is:

x = cos(-5 degrees) = 0.996
y ignored since this is the axis you want. If it were large we'd have to set it to zero and re-normalize the vector.
z = sin(-5 degrees) =-0.087

Ron
jentron is offline   Reply With Quote
Old 26th May 2014, 02:40 PM   #13
jentron
Senior Member
Professional user
 
Join Date: Nov 2007
Posts: 139
Default Re: Getting the angle vectors ?

Quote:
Originally Posted by fabrizio fracaroli View Post
Hi thanks for quick reply.
Should I post a new thread about it?
In the ac3d, when I select two vertices, I have a measure of distance.
How about to have a feature like this:
When selecting three vertices, the UI shows the angle.
Regards Fabrizio
Hmm, the angle would depend on the order you selected the vertices in.

Math-wise, if your vertices were v1, v2 and v3 you could calculate the angle by letting vectorA = v1-v2 and vectorB = v3-v2 then take:

acos( vectorA dot vectorB )/(||vectorA|| ||vectorB||)

Not sure right now how to wrap that into a neat UI function...

Ron
jentron is offline   Reply With Quote
Old 26th May 2014, 07:01 PM   #14
fabrizio fracaroli
Junior Member
Member
 
Join Date: Apr 2010
Location: Brazil
Posts: 21
Talking Re: Getting the angle vectors ?

Quote:
Originally Posted by jentron View Post
Hmm, the angle would depend on the order you selected the vertices in.

Math-wise, if your vertices were v1, v2 and v3 you could calculate the angle by letting vectorA = v1-v2 and vectorB = v3-v2 then take:

acos( vectorA dot vectorB )/(||vectorA|| ||vectorB||)

Not sure right now how to wrap that into a neat UI function...

Ron
I am very embarrassed saying that... but I do not understand these maths. I was never good on "sen" cos" tang" etc, related to the geometric calculations...
not even wise on scripts languages.ops: ops:
Really appreciated the reply, even I did not understand.
Regards Fabrizio
fabrizio fracaroli is offline   Reply With Quote
Old 26th May 2014, 07:09 PM   #15
fabrizio fracaroli
Junior Member
Member
 
Join Date: Apr 2010
Location: Brazil
Posts: 21
Default Re: Getting the angle vectors ?

The UI showing the calculated angle would be nice. That is what I am needing.
I am starting making a homecockpit of the F16 Falcon at home.
It is only in the 3d model.
As I do not know how to get the measures and angles in another way, I thought if i get them from the 3d model, it will be the best for me.
So I started making "base textures" , It will be the base for me to build the pit in the future, as all the angles, and measures will be written on these textures, at the edges of the pit... Well, I hope I could explain better (at least a little).
(different language)
Regards Fabrizio
fabrizio fracaroli is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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



All times are GMT -4. The time now is 09:34 AM.


AC3D Forum
(C) Inivis Limited 2020