vibe-openscad

bare-max/gpt-6-luna / tier-2-l-bracket

success tier 2

bare (gpt 6 luna)

render
bare render of tier-2-l-bracket
loading STL…
success 122.0s · 294/13436t · $0.0067
SCAD (56 lines)
$fn = 64;

bracket_width = 50;
flange_depth = 40;
flange_height = 40;
thickness = 3;

through_diameter = 4.5;
countersink_diameter = 8;
countersink_depth = 2;

edge_offset = 10;
hole_x_offset = bracket_width / 2 - edge_offset;
epsilon = 0.01;

module bracket_body() {
    // Cross-section coordinates are (Y, Z); extrusion is along X.
    rotate([90, 0, 90])
        linear_extrude(height = bracket_width, center = true)
            polygon(points = [
                [0, 0],
                [0, flange_height],
                [-thickness, flange_height],
                [-thickness, -thickness],
                [flange_depth, -thickness],
                [flange_depth, 0]
            ]);
}

difference() {
    bracket_body();

    for (x_pos = [-hole_x_offset, hole_x_offset]) {
        // Horizontal flange: countersinks face outward in -Z.
        translate([x_pos, flange_depth / 2, -thickness - epsilon])
            cylinder(h = thickness + 2 * epsilon, d = through_diameter);
        translate([x_pos, flange_depth / 2, -thickness])
            cylinder(
                h = countersink_depth,
                d1 = countersink_diameter,
                d2 = through_diameter
            );

        // Vertical flange: countersinks face outward in -Y.
        translate([x_pos, -thickness - epsilon, flange_height / 2])
            rotate([-90, 0, 0])
                cylinder(h = thickness + 2 * epsilon, d = through_diameter);
        translate([x_pos, -thickness, flange_height / 2])
            rotate([-90, 0, 0])
                cylinder(
                    h = countersink_depth,
                    d1 = countersink_diameter,
                    d2 = through_diameter
                );
    }
}
パラメータ (9) —
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-max_gpt-6-luna-c2274881cc41-2026-10-06T19-33-57-645Z
matrixIdbare-max/gpt-6-luna
signaturec2274881cc419ea2…
provideropenai
modelgpt-6-luna
harnessbare
statussuccess
duration122.04s (wallclock: load + prompt eval + generation + network)
tokens294 in / 13436 out
wallclock tok/s110.1 tok/s (end-to-end)
cost$0.0067
createdAt2026-10-06T19:33:57.645Z
gitCommitf205f3241c4c
openscadOpenSCAD version 2026.09.23

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