vibe-openscad

bare/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 20.9s · 294/2088t · $0.0011
SCAD (58 lines)
$fn = 64;

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

hole_diameter = 4.5;
countersink_diameter = 8;
countersink_depth = 2;

module bracket() {
    union() {
        // Horizontal flange: extends in +Y; inside face is at Z=0.
        translate([-width/2, 0, -thickness])
            cube([width, depth, thickness]);

        // Vertical flange: extends in +Z; inside face is at Y=0.
        translate([-width/2, -thickness, 0])
            cube([width, thickness, height]);

        // Material at the outside corner joins the two flanges.
        translate([-width/2, -thickness, -thickness])
            cube([width, thickness, thickness]);
    }
}

difference() {
    bracket();

    // Horizontal flange holes, countersinks facing outward (-Z).
    for (y = [10, depth - 10]) {
        translate([0, y, -thickness - 0.1])
            cylinder(h = thickness + 0.2, d = hole_diameter);

        translate([0, y, -thickness])
            cylinder(
                h = countersink_depth,
                d1 = countersink_diameter,
                d2 = hole_diameter
            );
    }

    // Vertical flange holes, countersinks facing outward (-Y).
    for (z = [10, height - 10]) {
        translate([0, -thickness - 0.1, z])
            rotate([-90, 0, 0])
                cylinder(h = thickness + 0.2, d = hole_diameter);

        translate([0, -thickness, z])
            rotate([-90, 0, 0])
                cylinder(
                    h = countersink_depth,
                    d1 = countersink_diameter,
                    d2 = hole_diameter
                );
    }
}
パラメータ (7) —
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare_gpt-6-luna-12cfe91ae057-2026-10-06T19-30-09-389Z
matrixIdbare/gpt-6-luna
signature12cfe91ae057cd97…
provideropenai
modelgpt-6-luna
harnessbare
statussuccess
duration20.93s (wallclock: load + prompt eval + generation + network)
tokens294 in / 2088 out
wallclock tok/s99.8 tok/s (end-to-end)
cost$0.0011
createdAt2026-10-06T19:30:09.389Z
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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。