From 19afc91cf276c3feab2939b5d45a79e346f9fec1 Mon Sep 17 00:00:00 2001 From: gumyr Date: Wed, 20 Mar 2024 14:28:10 -0400 Subject: [PATCH] Removing numpy warning --- src/build123d/objects_curve.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build123d/objects_curve.py b/src/build123d/objects_curve.py index ae1e345e..d4383b3e 100644 --- a/src/build123d/objects_curve.py +++ b/src/build123d/objects_curve.py @@ -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)