vibe-openscad

iter-png-2/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 7.3s · 1494/521t · $0.0113
SCAD (65 lines)
$fn = 64;

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

// Hole specs
through_d = 4.5;
csink_d = 8;
csink_depth = 2;

// Hole positions
x1 = 10;
x2 = width - 10;
y_center = depth / 2;
z_center = height / 2;

module countersunk_hole_z_up(h=thickness) {
    union() {
        cylinder(h=csink_depth, d=csink_d);
        translate([0, 0, csink_depth])
            cylinder(h=h - csink_depth, d=through_d);
    }
}

module countersunk_hole_y_pos(h=thickness) {
    rotate([90, 0, 0])
        union() {
            cylinder(h=csink_depth, d=csink_d);
            translate([0, 0, csink_depth])
                cylinder(h=h - csink_depth, d=through_d);
        }
}

difference() {
    union() {
        // Horizontal flange: inner top face at z=0, extends +Y, thickness toward -Z
        translate([0, 0, -thickness])
            cube([width, depth, thickness]);

        // Vertical flange: inner front face at y=0, extends +Z, thickness toward -Y
        translate([0, -thickness, 0])
            cube([width, thickness, height]);
    }

    // Horizontal flange holes: on centerline, 10mm from left/right edges,
    // countersink on outer face (bottom, -Z)
    translate([x1, y_center, -thickness])
        mirror([0, 0, 1])
            countersunk_hole_z_up(thickness);
    translate([x2, y_center, -thickness])
        mirror([0, 0, 1])
            countersunk_hole_z_up(thickness);

    // Vertical flange holes: on centerline, 10mm from left/right edges,
    // countersink on outer face (back, -Y)
    translate([x1, -thickness, z_center])
        mirror([0, 1, 0])
            countersunk_hole_y_pos(thickness);
    translate([x2, -thickness, z_center])
        mirror([0, 1, 0])
            countersunk_hole_y_pos(thickness);
}
パラメータ (8)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIditer-png-2_gpt-5.4-c5bb142d4f93-2026-04-28T18-58-57-718Z
matrixIditer-png-2/gpt-5.4
signaturec5bb142d4f93b8c4…
provideropenai
modelgpt-5.4-2026-03-05
harnessbare
statussuccess
duration7.25s (wallclock: load + prompt eval + generation + network)
tokens1494 in / 521 out
wallclock tok/s71.8 tok/s (end-to-end)
cost$0.0113
createdAt2026-04-28T18:58:57.718Z
gitCommit781e6c683dda
openscadOpenSCAD version 2026.04.27

iteration chain

各 iteration step は独立した benchmark run です。parentRunId で前段にリンクします。

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