Created
June 22, 2018 19:32
-
-
Save rnagasam/2dafd2719e32106c0c1e14ea88ef539a to your computer and use it in GitHub Desktop.
Find angle between faces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Finding the angle between two faces of a part. | |
s1 = doc.Geometry.Shape.Faces[0] | |
s2 = doc.Geometry.Shape.Faces[1] | |
vns1 = s1.normalAt(0,0) | |
vns2 = s2.normalAt(0,0) | |
alpha = math.degrees(vns1.getAngle(vns2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment