Skip to content

Commit

Permalink
Removing numpy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gumyr committed Mar 20, 2024
1 parent 5c9966c commit 19afc91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build123d/objects_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ def __init__(
# Protect against massive circles that are effectively straight lines
max_size = 2 * other.bounding_box().add(arc_pt).diagonal

# Function to be minimized
# Function to be minimized - note radius is a numpy array
def func(radius, perpendicular_bisector):
center = arc_pt + perpendicular_bisector * radius
center = arc_pt + perpendicular_bisector * radius[0]
separation = other.distance_to(center)
return abs(separation - radius)

Expand Down

0 comments on commit 19afc91

Please sign in to comment.