Skip to content

Commit

Permalink
Merge 62d2a4c into 665815b
Browse files Browse the repository at this point in the history
  • Loading branch information
voneiden authored Jun 17, 2023
2 parents 665815b + 62d2a4c commit 04d4571
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cadquery/occ_impl/sketch_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def arc_point(x, val):

def line_point(x, val):

return x[:2] + val * x[2:]
return x[:2] + val * (x[2:] - x[:2])


def arc_first_tangent(x):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sketch.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def test_constraint_solver():

midpoint = (seg2.startPoint() + seg2.endPoint()) / 2

(midpoint - seg1.startPoint()).Length == approx(2)
assert (midpoint - seg1.startPoint()).Length == approx(2)

s5 = (
Sketch()
Expand Down

0 comments on commit 04d4571

Please sign in to comment.