vibe-openscad

iter-png-2/gemma-4-12b-qat / tier-2-l-bracket

success tier 2

bare (google/gemma-4-12b-qat)

render
bare render of tier-2-l-bracket
loading STL…
success 354.2s · 1086/25877t
SCAD (49 lines)
// L-bracket parameters
width = 50;
depth = 40;
height = 40;
thickness = 3;

// Hole parameters
hole_diameter = 4.5;
countersink_diameter = 8;
countersink_depth = 2;

// Final assembly
difference() {
    // Bracket geometry
    union() {
        // Horizontal plate: X=width, Y=depth, Z=thickness
        // The face is the Z=thickness surface (50x40)
        cube([width, depth, thickness]);
        // Vertical plate: X=width, Y=thickness, Z=height
        // The face is the Y=thickness surface (50x40)
        cube([width, thickness, height]);
    }

    // Holes on the Horizontal face (Top surface: Z = thickness)
    // Center line of depth is Y = depth / 2 = 20
    // Symmetrical X positions: 10mm and (width - 10) = 40mm
    for (x = [10, width - 10]) {
        translate([x, depth / 2, thickness]) {
            // Countersink seat (outward in +Z direction)
            cylinder(d1=countersink_diameter, d2=hole_diameter, h=countersink_depth, $fn=32);
            // Through hole (inward in -Z direction)
            translate([0, 0, -thickness]) 
                cylinder(d=hole_diameter, h=thickness + 1, $fn=32);
        }
    }

    // Holes on the Vertical face (Front surface: Y = thickness)
    // Center line of height is Z = height / 2 = 20
    // Symmetrical X positions: 10mm and (width - 10) = 40mm
    for (x = [10, width - 10]) {
        translate([x, thickness, height / 2]) {
            // Countersink seat (outward in +Y direction)
            cylinder(d1=countersink_diameter, d2=hole_diameter, h=countersink_depth, $fn=32);
            // Through hole (inward in -Y direction)
            translate([0, -thickness, 0]) 
                cylinder(d=hole_diameter, h=thickness + 1, $fn=32);
        }
    }
}
パラメータ (7) —
スライダを動かすと openscad-wasm で再レンダリング

meta

runIditer-png-2_gemma-4-12b-qat-a159e17115b2-2026-09-23T11-12-16-381Z
matrixIditer-png-2/gemma-4-12b-qat
signaturea159e17115b2294c…
provideropenai-self-hosted
modelgoogle/gemma-4-12b-qat
harnessbare
statussuccess
duration354.17s (wallclock: load + prompt eval + generation + network)
tokens1086 in / 25877 out
wallclock tok/s73.1 tok/s (end-to-end)
createdAt2026-09-23T11:12:16.381Z
gitCommit54e55cb7b2b0
openscadOpenSCAD version 2026.09.23

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