Skip to content

Commit

Permalink
Fix rendering round joining
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-ulyanov committed Oct 4, 2014
1 parent 02508a0 commit 5a8d494
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions glsvg/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def _process_joint(ln, pln, miter_limit, rounded=False):

start_angle = av.angle()
target_angle = bv.angle()
if start_angle > target_angle:
start_angle -= 2.0 * math.pi

theta = start_angle
pln.lower_v.append(pln.lower_join)
Expand Down Expand Up @@ -121,6 +123,8 @@ def _process_joint(ln, pln, miter_limit, rounded=False):

start_angle = av.angle()
target_angle = bv.angle()
if start_angle < target_angle:
start_angle += 2.0 * math.pi

theta = start_angle
pln.upper_v.append(ln.upper_join)
Expand Down

0 comments on commit 5a8d494

Please sign in to comment.