1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-24 21:41:33 +02:00
Files
dotSCAD/examples/hollow_out/hollow_out_holder.scad
2020-03-24 17:12:21 +08:00

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);