Skip to content

Commit

Permalink
typo in polyutils
Browse files Browse the repository at this point in the history
  • Loading branch information
worbit committed Mar 26, 2019
1 parent f2b606c commit dd7333b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions polyUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ def normalVertex2D(vprev,v,vnext):
vec1=vec.subtract(v,vprev)
vec1=vec.unitize(vec1)
vec2=vec.subtract(vnext,v)
vec2=vec.unitize(vec1)
vec2=vec.unitize(vec2)
n=vec.add(vec1,vec2)
n=vec.scale(n,0.5)
t=n.x
n.x=-n.y
n.y=t
n = vec.rot2D90(n)
#t=n.x
#n.x=-n.y
#n.y=t
return n

def constructCircle(radius,segments,z=0):
Expand Down

0 comments on commit dd7333b

Please sign in to comment.