1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-23 17:15:05 +01:00
dotSCAD/examples/voronoi/voronoi_penholder.scad

21 lines
442 B
OpenSCAD
Raw Normal View History

2020-05-23 16:57:12 +08:00
use <voronoi/vrn2_space.scad>;
2020-02-28 20:30:59 +08:00
use <bend_extrude.scad>;
2020-04-09 14:31:08 +08:00
use <arc.scad>;
2020-02-28 20:30:59 +08:00
2020-04-09 14:31:08 +08:00
size = [300, 120];
grid_w = 30;
2020-02-28 20:30:59 +08:00
thickness = 2;
2020-04-09 14:31:08 +08:00
spacing = 3;
seed = 5;
$fn = 24;
2020-02-28 20:30:59 +08:00
2020-04-09 14:31:08 +08:00
color("black")
bend_extrude(size, thickness = thickness, angle = 360)
2020-05-23 16:57:12 +08:00
vrn2_space(size, grid_w, seed, spacing);
2020-02-28 20:30:59 +08:00
2020-04-09 14:31:08 +08:00
r = size[0] / (2 * PI);
linear_extrude(size[1])
arc(radius = r - thickness, angle = [0, 360], width = thickness / 2);
2020-02-28 20:30:59 +08:00
2020-04-09 14:31:08 +08:00
linear_extrude(thickness)
circle(r);