1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/examples/voronoi/voronoi_torus.scad
2022-06-06 13:11:46 +08:00

16 lines
314 B
OpenSCAD

use <voronoi/vrn2_cells_space.scad>
use <polyline_join.scad>
use <ptf/ptf_torus.scad>
size = [40, 80];
grid_w = 5;
cells = vrn2_cells_space(size, grid_w);
$fn = 4;
for(cell = cells) {
cell_poly = [for(p = cell[1]) ptf_torus(size, p, [10, 5], [360, 360])];
polyline_join(cell_poly)
sphere(d = 1);
}