Skip to content

Instantly share code, notes, and snippets.

@rnagasam
Created June 22, 2018 19:32
Show Gist options
  • Save rnagasam/2dafd2719e32106c0c1e14ea88ef539a to your computer and use it in GitHub Desktop.
Save rnagasam/2dafd2719e32106c0c1e14ea88ef539a to your computer and use it in GitHub Desktop.
Find angle between faces
## 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