Skip to content
Snippets Groups Projects
Commit d2b55436 authored by pinyili2's avatar pinyili2
Browse files

set angle to 180

parent 697ed191
No related branches found
No related tags found
No related merge requests found
......@@ -105,6 +105,7 @@ def get_helix_angle(part, helix_id, indices, index_offset=0, fwd=True):
twist_per_base = tpr*360./bpr
# angle = eulerZ - twist_per_base*indices + 0.5*mgroove + 180
angle = eulerZ - twist_per_base*indices - 0.5*mgroove
angle=angle*(np.pi/180)
cos,sin = (np.cos(angle), np.sin(angle))
R = np.zeros( (len(angle),3,3) )
R[:,0,0] = cos
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment