vibe-openscad

bare-high/gpt-5.4 / tier-2-l-bracket

success tier 2

bare (gpt 5.4)

render
bare render of tier-2-l-bracket
loading STL…
success 88.5s · 294/5778t · $0.0930
SCAD (62 lines)
$fn = 64;

width = 50;
depth = 40;
height = 40;
thickness = 3;

through_d = 4.5;
csk_d = 8;
csk_depth = 2;

edge_offset = 10;
eps = 0.1;

hole_x = width / 2 - edge_offset;

module l_bracket() {
    union() {
        // Horizontal flange
        translate([-width / 2, 0, -thickness])
            cube([width, depth, thickness]);

        // Vertical flange
        translate([-width / 2, -thickness, 0])
            cube([width, thickness, height]);

        // Corner material for a connected sharp bend
        translate([-width / 2, -thickness, -thickness])
            cube([width, thickness, thickness]);
    }
}

module countersunk_hole_horizontal(x, y) {
    // Through hole
    translate([x, y, -thickness - eps])
        cylinder(h = thickness + 2 * eps, d = through_d);

    // Countersink on outer side (bottom)
    translate([x, y, -thickness - eps])
        cylinder(h = csk_depth + eps, d1 = csk_d, d2 = through_d);
}

module countersunk_hole_vertical(x, z) {
    // Through hole
    translate([x, -thickness - eps, z])
        rotate([-90, 0, 0])
            cylinder(h = thickness + 2 * eps, d = through_d);

    // Countersink on outer side
    translate([x, -thickness - eps, z])
        rotate([-90, 0, 0])
            cylinder(h = csk_depth + eps, d1 = csk_d, d2 = through_d);
}

difference() {
    l_bracket();

    for (x = [-hole_x, hole_x]) {
        countersunk_hole_horizontal(x, depth / 2);
        countersunk_hole_vertical(x, height / 2);
    }
}
パラメータ (9)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-high_gpt-5.4-810aa253e88f-2026-04-28T18-48-54-609Z
matrixIdbare-high/gpt-5.4
signature810aa253e88fe472…
provideropenai
modelgpt-5.4-2026-03-05
harnessbare
statussuccess
duration88.45s (wallclock: load + prompt eval + generation + network)
tokens294 in / 5778 out
wallclock tok/s65.3 tok/s (end-to-end)
cost$0.0930
createdAt2026-04-28T18:48:54.609Z
gitCommit781e6c683dda
openscadOpenSCAD version 2026.04.27

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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。