mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-24 21:41:33 +02:00
27 lines
614 B
OpenSCAD
27 lines
614 B
OpenSCAD
use <hull_polyline3d.scad>;
|
|
use <ptf/ptf_bend.scad>;
|
|
use <hollow_out_square.scad>;
|
|
|
|
width = 5;
|
|
columns = 30;
|
|
rows = 15;
|
|
radius = 30;
|
|
angle = 360;
|
|
thickness = 2;
|
|
|
|
lines = concat(
|
|
hollow_out_square([columns, rows], width),
|
|
[[
|
|
for(x = [0:width:width * columns]) [x, rows * width]
|
|
]]
|
|
);
|
|
|
|
for(line = lines) {
|
|
transformed = [for(pt = line) ptf_bend([columns * width, rows * width], pt, radius, angle)];
|
|
hull_polyline3d(transformed, thickness, $fn = 4);
|
|
}
|
|
|
|
translate([0, 0, -thickness / 2])
|
|
linear_extrude(thickness)
|
|
rotate(180 / columns)
|
|
circle(radius + thickness / 2, $fn = columns); |