vibe-openscad

iter-png-2/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 34.1s · 1541/3095t · $0.0066
SCAD (49 lines)
// openscad
$fn = 128;

// 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 (top)
cs_depth = 2;       // countersink depth
eps = 0.1;          // small margin for boolean robustness

// 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 (centerline of horizontal face)
v_z = len/2;    // vertical flange holes: Z coordinate (centerline of vertical face)

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 (along Z)
        translate([x, h_y, -eps]) cylinder(h=t + 2*eps, r=hole_d/2, center=false);
        // conical countersink pocket from outer face (+Z): top radius cs_d/2 -> bottom radius hole_d/2
        translate([x, h_y, t - cs_depth]) cylinder(h=cs_depth, r1=cs_d/2, r2=hole_d/2, center=false);
    }

    // Vertical flange holes (axis Y), countersink on outer side (+Y)
    for (x = hole_x) {
        // through hole along Y (rotate cylinder)
        translate([x, -eps, v_z]) rotate([90,0,0]) cylinder(h=t + 2*eps, r=hole_d/2, center=false);
        // conical countersink pocket from outer face (+Y): top radius cs_d/2 -> bottom radius hole_d/2
        translate([x, t - cs_depth, v_z]) rotate([90,0,0]) cylinder(h=cs_depth, r1=cs_d/2, r2=hole_d/2, center=false);
    }
}

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

meta

runIditer-png-2_gpt-5-mini-6c38bbebf8f3-2026-04-28T19-01-10-592Z
matrixIditer-png-2/gpt-5-mini
signature6c38bbebf8f3dc05…
provideropenai
modelgpt-5-mini-2025-08-07
harnessbare
statussuccess
duration34.05s (wallclock: load + prompt eval + generation + network)
tokens1541 in / 3095 out
wallclock tok/s90.9 tok/s (end-to-end)
cost$0.0066
createdAt2026-04-28T19:01:10.592Z
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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。