From f1d5d6e4729d6baa196cf7e0e3b57616b3ed570a Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 29 May 2022 11:28:48 +0800 Subject: [PATCH] use norm --- examples/differential_line_growth_bowl.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/differential_line_growth_bowl.scad b/examples/differential_line_growth_bowl.scad index d2a7944a..5d31e9c7 100644 --- a/examples/differential_line_growth_bowl.scad +++ b/examples/differential_line_growth_bowl.scad @@ -23,6 +23,6 @@ init_shape = shape_circle(r); poly = differential_line_growth(init_shape, node_option, times); smoothed = smooth ? midpt_smooth(poly, smooth_times, true) : poly; -sphere_r = max(max(smoothed)); +sphere_r = norm(max(smoothed)); polyline_join([for(p = [each smoothed, smoothed[0]]) ptf_c2sphere(p, sphere_r)]) icosahedron(line_r);