Skip to content

Commit

Permalink
Fixed invalid vector in distance calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
rostskadat committed Feb 13, 2024
1 parent c4d60a9 commit 3891c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Draft/draftgeoutils/circles.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def circleFrom2PointsRadius(p1, p2, radius):
return None

p1_p2 = Part.LineSegment(p1, p2).toShape()
dist_p1p2 = DraftVecUtils.dist(p1, p1)
dist_p1p2 = DraftVecUtils.dist(p1, p2)
mid = findMidpoint(p1_p2)

if dist_p1p2 == 2*radius:
Expand Down

0 comments on commit 3891c50

Please sign in to comment.