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 7th July 2008, 02:36 PM   #1
donamy
Senior Member
Professional user
 
Join Date: Feb 2006
Posts: 219
Default Getting the angle vectors ?

with the new "C" angle rotation, is there a way to get the vectors read out for use ?
donamy is offline   Reply With Quote
Old 8th July 2008, 11:43 AM   #2
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,563
Default Re: Getting the angle vectors ?

Here's a quick hack that will display the axis at the bottom of the main AC3D window (in the message area).

-no warranty-

With a text editor, edit tcl/ac3d.tcl and find:
Code:
 
 
proc set_custom_axis { var } {
after:

Code:
set cent [ac3d get_selection_centre]
(and before the next "}", insert a line:

Code:
display_message "axis: $axis"
If you would like the axis to appear in the console, use:

Code:
puts "axis: $axis"
instead

I'm not sure if this would be useful to others - why do you want this info?
Andy is offline   Reply With Quote
Old 9th July 2008, 12:34 PM   #3
donamy
Senior Member
Professional user
 
Join Date: Feb 2006
Posts: 219
Default Re: Getting the angle vectors ?

For finding rotation directions for attachment and docking points in Orbiter.
donamy is offline   Reply With Quote
Old 9th July 2008, 01:01 PM   #4
donamy
Senior Member
Professional user
 
Join Date: Feb 2006
Posts: 219
Default Re: Getting the angle vectors ?

It works great, but is there a way to be able to copy it into clipboard ?
donamy is offline   Reply With Quote
Old 9th July 2008, 03:28 PM   #5
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,563
Default Re: Getting the angle vectors ?

try this:

Code:
clipboard clear
clipboard append $axis
Andy is offline   Reply With Quote
Old 9th July 2008, 10:01 PM   #6
donamy
Senior Member
Professional user
 
Join Date: Feb 2006
Posts: 219
Default Re: Getting the angle vectors ?

Thanks Andy !!
donamy is offline   Reply With Quote
Old 30th September 2008, 01:49 PM   #7
Stiglr
Senior Member
Professional user
 
Stiglr's Avatar
 
Join Date: Feb 2004
Location: Portland, OR
Posts: 604
Default Re: Getting the angle vectors ?

I assume the clipboard lines go UNDER the axis code, and the whole shebang appears as:

Quote:
set cent [ac3d get_selection_centre]
puts "axis: $axis"
clipboard clear
clipboard append $axis
}
Is this how the file should read after editing?

Thanks in advance. If this works as I'm hoping, this will make a LOT of Targetware people VERY happy....
__________________
Flight Sim Project Contributor

My Gaming Rig:
i5 2500K Quad-Core CPU at 3.3GHz
MSI P67A-C43 mobo
4GB of PC12800 DDR3 memory
Windows 7
1GB Galaxy GeForce GTX550 Ti video card GeForce 270.61 drivers (4/2011)
Cougar joystick/throttle combo
CH Pedals
Stiglr is offline   Reply With Quote
Old 30th September 2008, 02:43 PM   #8
Stiglr
Senior Member
Professional user
 
Stiglr's Avatar
 
Join Date: Feb 2004
Location: Portland, OR
Posts: 604
Default Re: Getting the angle vectors ?

I've done the edit, but I'm not sure I'm getting the right results (or what I'm expecting to see).

For example, I have an aileron on an aircraft.



It's on a wing with a 5 degree dihedral (so this is known, and confirmed by actually rotating the part "flat" in AC3D from the vertice). But, if I select two leading top edges of the aileron (to use as the "hinge"), click Set axis, then cut and paste the results into a Notepad, I get:


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.

Also, when I click the Set Axis button, the message I get at the bottom of the screen is "Got axis from vertices OK". I'd much rather just see the numeric values... does this mean I don't want to use the code snippet for "copy and paste" onto the clipboard? What I'd like in the end is to see the values when I hit the Set Axis button, and then be able to copy-and-paste the results into a different application or a Wordpad document.
__________________
Flight Sim Project Contributor

My Gaming Rig:
i5 2500K Quad-Core CPU at 3.3GHz
MSI P67A-C43 mobo
4GB of PC12800 DDR3 memory
Windows 7
1GB Galaxy GeForce GTX550 Ti video card GeForce 270.61 drivers (4/2011)
Cougar joystick/throttle combo
CH Pedals
Stiglr is offline   Reply With Quote
Old 25th May 2014, 02:02 PM   #9
fabrizio fracaroli
Junior Member
Member
 
Join Date: Apr 2010
Location: Brazil
Posts: 21
Default Re: Getting the angle vectors ?

How can I get the angle from 3 selected vertices?
I am about to make a real cockpit (home cockpit) of the F16 at home. I have already the 3d model, but I would like to know the angles that the shapes are formed, in order to make the home cockpit closest to the 3d model, which is very nice drawn.
I will try to be more specific:
In a box, we know the angles of the sides are 90 degrees,
But there are too many "shapes" with too many different angles, that I need a tool to get them out.
I do not want to guesstimate the whole work.
Best regards
Fabrizio
fabrizio fracaroli is offline   Reply With Quote
Old 25th May 2014, 03:35 PM   #10
Stiglr
Senior Member
Professional user
 
Stiglr's Avatar
 
Join Date: Feb 2004
Location: Portland, OR
Posts: 604
Default Re: Getting the angle vectors ?

I think you need an answer from someone who is good at Trigonometry or Geometry. That would definitely *not* be me!!
__________________
Flight Sim Project Contributor

My Gaming Rig:
i5 2500K Quad-Core CPU at 3.3GHz
MSI P67A-C43 mobo
4GB of PC12800 DDR3 memory
Windows 7
1GB Galaxy GeForce GTX550 Ti video card GeForce 270.61 drivers (4/2011)
Cougar joystick/throttle combo
CH Pedals
Stiglr 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 05:55 AM.


AC3D Forum
(C) Inivis Limited 2020