mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-31 21:11:55 +02:00
Added lcm() and gcd() and is_integer() to math.scad. Added a couple
3d examples for supershape() that I snagged from list-comprehension-demo. Added repeat_entries to array.scad. Note dependence on _sum_preserving_round which is in paths.scad. Also note it's possible _force_list (added to math.scad) should be exposed, or placed elsewhere.
This commit is contained in:
@@ -645,6 +645,9 @@ function _superformula(theta,m1,m2,n1,n2=1,n3=1,a=1,b=1) =
|
||||
// for(i=[-1.5:3:1.5]) right(i*1.5) supershape(m1=2,m2=10,n1=i,n2=1);
|
||||
// for(i=[1:3],j=[-1,1]) translate([3.5*i,1.5*j])supershape(m1=4,m2=6,n1=i*j,n2=1);
|
||||
// for(i=[1:3]) right(2.5*i)supershape(step=.5,m1=88, m2=64, n1=-i*i,n2=1,r=1);
|
||||
// Examples:
|
||||
// linear_extrude(height=0.3, scale=0) supershape(step=1, m1=6, n1=0.4, n2=0, n3=6);
|
||||
// linear_extrude(height=5, scale=0) supershape(step=1, b=3, m1=6, n1=3.8, n2=16, n3=10);
|
||||
function supershape(step=0.5,m1=4,m2=undef,n1=1,n2=undef,n3=undef,a=1,b=undef,r=undef,d=undef,anchor=CENTER, spin=0) =
|
||||
let(
|
||||
r = get_radius(r=r, d=d, dflt=undef),
|
||||
|
Reference in New Issue
Block a user