1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-19 13:01:37 +02:00

update demo

This commit is contained in:
Justin Lin
2020-03-01 17:07:36 +08:00
parent 22664ba0f8
commit a569a9bbfb

View File

@@ -1,13 +1,31 @@
use <shape_starburst.scad>;
use <circle_path.scad>;
use <rotate_p.scad>;
use <util/reverse.scad>;
use <experimental/loft.scad>;
sects = [
for(i = [4:10])
reverse([
for(i = 10; i >= 4; i = i - 1)
[
for(p = shape_starburst(15, 12, i % 2 == 1 ? i : i - 1)) rotate_p([p[0], p[1], 5 * (i - 4)], i * 10)
])
]
];
loft(sects, slices = 3);
translate([30, 0, 0])
difference() {
loft(
[
[for(p = circle_path(10, $fn = 3)) [p[0], p[1], 15]],
[for(p = circle_path(15, $fn = 24)) [p[0], p[1], 0]]
],
slices = 4
);
loft(
[
[for(p = circle_path(8, $fn = 3)) [p[0], p[1], 15.1]],
[for(p = circle_path(13, $fn = 24)) [p[0], p[1], -0.1]]
],
slices = 4
);
}