vibe-openscad

bare/gemma-4-26b-a4b-it / tier-2-l-bracket

success tier 2

bare (gemma 4 26b a4b)

render
bare render of tier-2-l-bracket
loading STL…
success 204.5s · 252/9645t · $0
SCAD (43 lines)
$fn = 50;

difference() {
    // --- L-bracket Body ---
    union() {
        // Horizontal flange: 50mm (W) x 40mm (D) x 3mm (T)
        // Positioned so inner surface is at Z=0 and outer surface is at Z=3
        cube([50, 40, 3]);
        
        // Vertical flange: 50mm (W) x 3mm (T) x 40mm (H)
        // Positioned so inner surface is at Y=0 and outer surface is at Y=-3
        translate([0, -3, 0])
            cube([50, 3, 40]);
    }

    // --- Countersunk Holes: Horizontal Plane (Top surface at Z=3) ---
    // Holes are located at X=25, Y=10 and Y=30
    for (y_pos = [10, 30]) {
        // M4 Through-hole (Φ4.5mm)
        translate([25, y_pos, -1])
            cylinder(d=4.5, h=5);
        
        // Countersink (Φ8mm, depth 2mm) 
        // d1 is the base diameter (at the outer surface Z=3), d2 is the top diameter
        translate([25, y_pos, 3])
            cylinder(d1=8, d2=4.5, h=2);
    }

    // --- Countersunk Holes: Vertical Plane (Back surface at Y=-3) ---
    // Holes are located at X=25, Z=10 and Z=30
    for (z_pos = [10, 30]) {
        // M4 Through-hole (Φ4.5mm)
        translate([25, -4, z_pos])
            rotate([0, 90, 0])
            cylinder(d=4.5, h=5);
            
        // Countersink (Φ8mm, depth 2mm)
        // Rotated to face the outer surface Y=-3
        translate([25, -3, z_pos])
            rotate([0, 90, 0])
            cylinder(d1=8, d2=4.5, h=2);
    }
}

meta

runIdbare_gemma-4-26b-a4b-it-21dcd7473cca-2026-10-06T19-45-26-063Z
matrixIdbare/gemma-4-26b-a4b-it
signature21dcd7473cca9b1a…
providergoogle
modelgemma-4-26b-a4b-it
harnessbare
statussuccess
duration204.52s (wallclock: load + prompt eval + generation + network)
tokens252 in / 9645 out
wallclock tok/s47.2 tok/s (end-to-end)
cost$0
createdAt2026-10-06T19:45:26.063Z
gitCommitf9f85ea20c03
openscadOpenSCAD version 2026.09.23

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