bare-high/gpt-5.4-mini / tier-2-l-bracket
success tier 2
bare (gpt 5.4 mini)
render
$fn = 64;
w = 50;
d = 40;
h = 40;
t = 3;
hole_d = 4.5;
cs_d = 8;
cs_depth = 2;
module cs_hole_z(ypos) {
translate([0, ypos, 0]) {
cylinder(d = hole_d, h = t);
translate([0, 0, t - cs_depth])
cylinder(d1 = hole_d, d2 = cs_d, h = cs_depth);
}
}
module cs_hole_y(zpos) {
translate([0, 0, zpos])
rotate([90, 0, 0]) {
cylinder(d = hole_d, h = t);
translate([0, 0, t - cs_depth])
cylinder(d1 = hole_d, d2 = cs_d, h = cs_depth);
}
}
difference() {
union() {
translate([-w/2, 0, 0]) cube([w, d, t]);
translate([-w/2, 0, 0]) cube([w, t, h]);
}
for (ypos = [10, d - 10])
cs_hole_z(ypos);
for (zpos = [10, h - 10])
cs_hole_y(zpos);
} パラメータ (7) —
スライダを動かすと openscad-wasm で再レンダリング
prompt
OpenSCAD で、L 字に折れた金具(L-bracket)を作ってください。 形状: - 水平面と垂直面の 2 つのフランジが直角に繋がっている - 水平面は 50mm × 40mm(幅 × 奥行き) - 垂直面は 50mm × 40mm(幅 × 高さ) - 板厚はどちらも 3mm - 内側コーナーが原点になるように配置(水平面は +Y 方向、垂直面は +Z 方向に伸びる) 皿穴(countersunk holes): - 各面に 2 個ずつ、合計 4 個 - M4 ねじ用(貫通穴 Φ4.5mm + 皿座面 Φ8mm × 深さ 2mm) - 各面の中心線上で、面の縁から 10mm 内側、左右対称に 2 個並べる - 皿座面は外側(ボルト頭が当たる側)に向ける 完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。