Replies: 2 comments 5 replies
-
I tried to get these angles using a simple example, but ran into an error. Let me get back to you in the beginning of next month with a suggestion. I hope it is ok for you. |
Beta Was this translation helpful? Give feedback.
3 replies
-
If the wing has positionings defined, you can get them using TiXI: # Create a handle to the tixi document
tixi_handle = tixi3wrapper.Tixi3()
tixi_handle.open("simpletest.cpacs.xml")
# get dihedral using TiXI
xpath = '/cpacs/vehicles/aircraft/model/wings/wing[1]/positionings/positioning[1]/dihedralAngle'
print(tixi_handle.getDoubleElement(xpath)) Without a positionings definition, you would have to calculate the angles from cartesian coordinates as you mentioned in your question. In theory, you should be able to get the angles using TiGLs internal Python API instead of TiXI, but as of now, the class |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to get the sweep- or dihedral angle between two sections using python interface?
Beta Was this translation helpful? Give feedback.
All reactions