vibe-openscad

iter-png-2/gemini-3.5-flash / tier-2-l-bracket

success tier 2

bare (gemini 3.5 flash)

render
bare render of tier-2-l-bracket
loading STL…
success 16.1s · 2023/673t · $0.0091
SCAD (63 lines)
$fn = 100;

// 寸法定義
width = 50;
depth = 40;
height = 40;
thickness = 3;

hole_d1 = 4.5; // 貫通穴径
hole_d2 = 8.0; // 皿座面径
hole_h = 2.0;  // 皿座深さ

// 穴の配置位置 (内側コーナーの左端を原点(0,0,0)とした場合)
hole_x1 = 10;
hole_x2 = width - 10;
hole_y = depth / 2;
hole_z = height / 2;

module countersunk_hole_z() {
    epsilon = 0.1;
    union() {
        // 貫通穴
        translate([0, 0, -thickness - epsilon])
            cylinder(d = hole_d1, h = thickness + 2*epsilon);
        // 皿部 (外側 Z=-3 から 内側 Z=-1 へ狭まる)
        translate([0, 0, -thickness - epsilon])
            cylinder(d1 = hole_d2, d2 = hole_d1, h = hole_h + epsilon);
    }
}

module countersunk_hole_y() {
    epsilon = 0.1;
    union() {
        // 貫通穴
        translate([0, -thickness - epsilon, 0])
            rotate([-90, 0, 0])
            cylinder(d = hole_d1, h = thickness + 2*epsilon);
        // 皿部 (外側 Y=-3 から 内側 Y=-1 へ狭まる)
        translate([0, -thickness - epsilon, 0])
            rotate([-90, 0, 0])
            cylinder(d1 = hole_d2, d2 = hole_d1, h = hole_h + epsilon);
    }
}

difference() {
    // L字金具本体 (内側コーナーの左端が原点)
    union() {
        // 水平面 (+Y 方向に伸びる)
        translate([0, 0, -thickness])
            cube([width, depth, thickness]);
        // 垂直面 (+Z 方向に伸びる)
        translate([0, -thickness, 0])
            cube([width, thickness, height]);
    }
    
    // 水平面の皿穴
    translate([hole_x1, hole_y, 0]) countersunk_hole_z();
    translate([hole_x2, hole_y, 0]) countersunk_hole_z();
    
    // 垂直面の皿穴
    translate([hole_x1, 0, hole_z]) countersunk_hole_y();
    translate([hole_x2, 0, hole_z]) countersunk_hole_y();
}
パラメータ (8)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIditer-png-2_gemini-3.5-flash-457295895782-2026-05-20T00-16-34-036Z
matrixIditer-png-2/gemini-3.5-flash
signature457295895782aedf…
providergoogle
modelgemini-3.5-flash
harnessbare
statussuccess
duration16.11s (wallclock: load + prompt eval + generation + network)
tokens2023 in / 673 out
wallclock tok/s41.8 tok/s (end-to-end)
cost$0.0091
createdAt2026-05-20T00:16:34.036Z
gitCommitc16a216592f0
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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。