vibe-openscad

bare/gpt-5-mini / tier-2-l-bracket

success tier 2

bare (gpt 5 mini)

render
bare render of tier-2-l-bracket
loading STL…
success 90.9s · 294/7490t · $0.0151
SCAD (48 lines)
// openscad
$fn = 64;

// Parameters
w = 50;             // width (X)
len = 40;           // flange length (Y for horizontal, Z for vertical)
t = 3;              // thickness
hole_d = 4.5;       // through hole diameter for M4
cs_d = 8;           // countersink seat diameter
cs_depth = 2;       // countersink depth

// Hole X positions: 10mm from each lateral edge (symmetric)
hole_x = [10, w - 10];

// Centers along the face midline
h_y = len/2;    // horizontal flange holes: Y coordinate
v_z = len/2;    // vertical flange holes: Z coordinate

module bracket() {
    // Horizontal flange: X:0..w, Y:0..len, Z:0..t
    translate([0,0,0]) cube([w, len, t], center=false);
    // Vertical flange: X:0..w, Y:0..t, Z:0..len
    translate([0,0,0]) cube([w, t, len], center=false);
}

module subtract_holes() {
    // Horizontal flange holes (axis Z), countersink on outer side (+Z)
    for (x = hole_x) {
        // through hole (centered in thickness)
        translate([x, h_y, t/2]) cylinder(h=100, r=hole_d/2, center=true);
        // countersink pocket from outer face (+Z), depth cs_depth
        translate([x, h_y, t - cs_depth/2]) cylinder(h=cs_depth, r=cs_d/2, center=true);
    }

    // Vertical flange holes (axis Y), countersink on outer side (+Y)
    for (x = hole_x) {
        // through hole (axis along Y), center at Y = t/2
        translate([x, t/2, v_z]) rotate([90,0,0]) cylinder(h=100, r=hole_d/2, center=true);
        // countersink pocket from outer face (+Y), depth cs_depth (axis along Y)
        translate([x, t - cs_depth/2, v_z]) rotate([90,0,0]) cylinder(h=cs_depth, r=cs_d/2, center=true);
    }
}

// Final part: union of flanges minus holes/countersinks
difference() {
    bracket();
    subtract_holes();
}
パラメータ (6)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare_gpt-5-mini-cf04621a5b90-2026-04-28T13-53-57-135Z
matrixIdbare/gpt-5-mini
signaturecf04621a5b905ffa…
provideropenai
modelgpt-5-mini-2025-08-07
harnessbare
statussuccess
duration90.95s (wallclock: load + prompt eval + generation + network)
tokens294 in / 7490 out
wallclock tok/s82.4 tok/s (end-to-end)
cost$0.0151
createdAt2026-04-28T13:53:57.135Z
gitCommit6bcf5489cb58
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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。