vibe-openscad

bare-high/gpt-6-sol / tier-2-l-bracket

success tier 2

bare (gpt 6 sol)

render
bare render of tier-2-l-bracket
loading STL…
success 17.7s · 294/1397t · $0.0146
SCAD (55 lines)
$fn = 64;

width = 50;
horizontal_depth = 40;
vertical_height = 40;
thickness = 3;

hole_diameter = 4.5;
countersink_diameter = 8;
countersink_depth = 2;
edge_offset = 10;
eps = 0.02;

hole_x = [-width / 2 + edge_offset, width / 2 - edge_offset];

difference() {
    union() {
        // 内側コーナーを (Y, Z) = (0, 0) に配置
        translate([-width / 2, 0, -thickness])
            cube([width, horizontal_depth, thickness]);

        translate([-width / 2, -thickness, 0])
            cube([width, thickness, vertical_height]);

        // 2 面をつなぐ外側コーナー
        translate([-width / 2, -thickness, -thickness])
            cube([width, thickness, thickness]);
    }

    for (x = hole_x) {
        // 水平面:外側(下面)に皿座面
        translate([x, horizontal_depth / 2, -thickness - eps])
            cylinder(h = thickness + 2 * eps, d = hole_diameter);

        translate([x, horizontal_depth / 2, -thickness])
            cylinder(
                h = countersink_depth,
                d1 = countersink_diameter,
                d2 = hole_diameter
            );

        // 垂直面:外側(-Y 側)に皿座面
        translate([x, -thickness - eps, vertical_height / 2])
            rotate([-90, 0, 0])
                cylinder(h = thickness + 2 * eps, d = hole_diameter);

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

meta

runIdbare-high_gpt-6-sol-1eea35d033ce-2026-10-06T19-30-39-984Z
matrixIdbare-high/gpt-6-sol
signature1eea35d033cef442…
provideropenai
modelgpt-6-sol
harnessbare
statussuccess
duration17.68s (wallclock: load + prompt eval + generation + network)
tokens294 in / 1397 out
wallclock tok/s79.0 tok/s (end-to-end)
cost$0.0146
createdAt2026-10-06T19:30:39.984Z
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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。