mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-14 10:44:48 +02:00
rename
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
15
examples/twice_ring_extrude.scad
Normal file
15
examples/twice_ring_extrude.scad
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user