1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-14 02:34:12 +02:00
This commit is contained in:
Justin Lin
2021-07-15 11:26:33 +08:00
parent 9863b718a0
commit d3a51b280a
2 changed files with 15 additions and 17 deletions

View File

@@ -1,17 +0,0 @@
use <ring_extrude.scad>;
use <arc_path.scad>;
$fn = 96;
r = 20;
number_of_turns = 1;
shape = arc_path(radius = 15, angle = [0, 120]);
cutted_donut(shape, r, number_of_turns) ;
module cutted_donut(shape, inner_r, number_of_turns) {
t = 180 + 360 * number_of_turns;
for(s = [shape, shape * -1]) {
ring_extrude(s, radius = r, twist = t, angle = 360);
}
}

View File

@@ -0,0 +1,15 @@
use <ring_extrude.scad>;
use <arc_path.scad>;
$fn = 96;
r = 20;
shape_turns = 3;
shape = arc_path(radius = 15, angle = [0, 120]);
twice_ring_extrude(shape, r, shape_turns) ;
module twice_ring_extrude(shape, r, shape_turns) {
t = 360 * shape_turns;
ring_extrude(shape, radius = r, twist = t, angle = 720);
}