vibe-openscad

bare/gemini-2.5-pro / tier-2-l-bracket

success tier 2

bare (gemini 2.5 pro)

render
bare render of tier-2-l-bracket
loading STL…
success 67.8s · 252/725t · $0.0076
SCAD (74 lines)
// ===============================================
//                Parameters
// ===============================================

// --- Bracket Dimensions ---
width     = 50;  // Width on X-axis
depth     = 40;  // Horizontal flange depth on Y-axis
height    = 40;  // Vertical flange height on Z-axis
thickness = 3;   // Thickness of the flanges

// --- M4 Countersunk Hole Dimensions ---
hole_dia  = 4.5; // Through-hole diameter
cs_dia    = 8;   // Countersink top diameter
cs_depth  = 2;   // Countersink depth

// --- Hole Positioning ---
// X-coordinates for the two holes on each flange
hole_pos_x_list = [10, width - 10]; 
// Y-coordinate for holes on the horizontal flange (centerline)
hole_pos_y = depth / 2;
// Z-coordinate for holes on the vertical flange (centerline)
hole_pos_z = height / 2;

// --- Rendering Quality ---
$fn = 64;


// ===============================================
//                  Model
// ===============================================
difference() {
    
    // 1. Create the main body of the L-bracket
    // The inner corner is at the origin [0, 0, 0]
    union() {
        // Horizontal flange, extending in +Y direction
        cube([width, depth, thickness]);
        
        // Vertical flange, extending in +Z direction
        cube([width, thickness, height]);
    }
    
    // 2. Create and subtract the countersunk holes
    
    // --- Holes on the horizontal flange ---
    // The countersinks face downwards (towards -Z)
    for (x_pos = hole_pos_x_list) {
        // Position the cutter at the top surface (z=thickness) and rotate it to face down
        translate([x_pos, hole_pos_y, thickness])
        rotate(a=[180, 0, 0]) {
            // A small epsilon for clean subtraction
            eps = 0.1;
            // Countersink cone (frustum)
            cylinder(h = cs_depth, d1 = cs_dia, d2 = hole_dia);
            // Through-hole
            cylinder(h = thickness + eps, d = hole_dia);
        }
    }
    
    // --- Holes on the vertical flange ---
    // The countersinks face forwards (towards -Y)
    for (x_pos = hole_pos_x_list) {
        // Position the cutter at the front surface (y=thickness) and rotate it to face forward
        translate([x_pos, thickness, hole_pos_z])
        rotate(a=[90, 0, 0]) {
            // A small epsilon for clean subtraction
            eps = 0.1;
            // Countersink cone (frustum)
            cylinder(h = cs_depth, d1 = cs_dia, d2 = hole_dia);
            // Through-hole
            cylinder(h = thickness + eps, d = hole_dia);
        }
    }
}
パラメータ (7)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare_gemini-2.5-pro-eebeb5989286-2026-04-28T10-18-38-432Z
matrixIdbare/gemini-2.5-pro
signatureeebeb5989286a15a…
providergoogle
modelgemini-2.5-pro
harnessbare
statussuccess
duration67.79s (wallclock: load + prompt eval + generation + network)
tokens252 in / 725 out
wallclock tok/s10.7 tok/s (end-to-end)
cost$0.0076
createdAt2026-04-28T10:18:38.432Z
gitCommit266a4b423d4e
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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。