mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 09:44:16 +02:00
use norm
This commit is contained in:
@@ -23,6 +23,6 @@ init_shape = shape_circle(r);
|
|||||||
poly = differential_line_growth(init_shape, node_option, times);
|
poly = differential_line_growth(init_shape, node_option, times);
|
||||||
smoothed = smooth ? midpt_smooth(poly, smooth_times, true) : poly;
|
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)])
|
polyline_join([for(p = [each smoothed, smoothed[0]]) ptf_c2sphere(p, sphere_r)])
|
||||||
icosahedron(line_r);
|
icosahedron(line_r);
|
||||||
|
Reference in New Issue
Block a user