vibe-openscad

iter-png-2/claude-opus-4-8 / tier-2-l-bracket

success tier 2

bare (claude opus 4.8)

render
bare render of tier-2-l-bracket
loading STL…
success 13.7s · 2021/1200t · $0.0401
SCAD (58 lines)
// L-bracket with countersunk holes

// パラメータ
width      = 50;   // 幅 (X方向)
depth      = 40;   // 水平面の奥行き / 垂直面の高さ
thickness  = 3;    // 板厚

hole_d     = 4.5;  // 貫通穴径 M4
cs_d       = 8;    // 皿座面径
cs_depth   = 2;    // 皿座面深さ
edge_off   = 10;   // 面の縁からの距離

// 穴中心のX座標(面の中心線X=25に対して左右対称)
x1 = width/2 - 12.5;   // 12.5
x2 = width/2 + 12.5;   // 37.5

// 皿穴モジュール(+Z方向に貫通、上面=外側に円錐の皿座)
module countersunk_hole(plate_thickness) {
    // 貫通穴
    translate([0, 0, -1])
        cylinder(h = plate_thickness + 2, d = hole_d, $fn = 48);
    // 皿座(円錐テーパー、上面=外側に向け広がる)
    translate([0, 0, plate_thickness - cs_depth])
        cylinder(h = cs_depth, d1 = hole_d, d2 = cs_d, $fn = 48);
    // 念のため外側を少し抜く
    translate([0, 0, plate_thickness - 0.001])
        cylinder(h = 1, d = cs_d, $fn = 48);
}

module l_bracket() {
    difference() {
        union() {
            // 水平面 (+Y方向に伸びる)
            cube([width, depth, thickness]);
            // 垂直面 (+Z方向に伸びる)
            cube([width, thickness, depth]);
        }

        // --- 水平面の皿穴 (外側 = -Z 側) ---
        // Y位置: 縁(Y=depth)から10mm内側 -> Y = depth - edge_off
        for (x = [x1, x2]) {
            translate([x, depth - edge_off, thickness])
                rotate([180, 0, 0])
                    countersunk_hole(thickness);
        }

        // --- 垂直面の皿穴 (外側 = -Y 側) ---
        // Z位置: 縁(Z=depth)から10mm内側 -> Z = depth - edge_off
        // 板のローカル+Z軸が外側(-Y方向)を向くように配置
        for (x = [x1, x2]) {
            translate([x, 0, depth - edge_off])
                rotate([-90, 0, 0])
                    countersunk_hole(thickness);
        }
    }
}

l_bracket();
パラメータ (7)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIditer-png-2_claude-opus-4-8-db402df46bca-2026-06-09T17-42-03-877Z
matrixIditer-png-2/claude-opus-4-8
signaturedb402df46bcaf17f…
provideranthropic
modelclaude-opus-4-8
harnessbare
statussuccess
duration13.72s (wallclock: load + prompt eval + generation + network)
tokens2021 in / 1200 out
wallclock tok/s87.4 tok/s (end-to-end)
cost$0.0401
createdAt2026-06-09T17:42:03.877Z
gitCommitc8a77106d384
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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。