vibe-openscad

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

success tier 2

bare (claude opus 4.7)

render
bare render of tier-2-l-bracket
loading STL…
success 13.4s · 2001/1176t · $0.0394
SCAD (67 lines)
// L-bracket with countersunk holes

$fn = 64;

// Parameters
width     = 50;   // X direction
depth     = 40;   // Y direction (horizontal flange depth)
height    = 40;   // Z direction (vertical flange height)
thickness = 3;    // plate thickness

hole_dia    = 4.5;
csk_dia     = 8;
csk_depth   = 2;
edge_offset = 10;

eps = 0.05;

// Hole positions: on centerline (x = width/2),
// 10mm from each end along the flange length, symmetrical pair.
x_center = width / 2;
pos_a = edge_offset;          // 10
pos_b = depth - edge_offset;  // 30

module l_bracket() {
    difference() {
        union() {
            // Horizontal flange: inner (top) face at z=0, extends in +Y
            translate([0, 0, -thickness])
                cube([width, depth, thickness]);

            // Vertical flange: inner face at y=0, extends in +Z.
            // Includes corner block (z: -thickness..0) for a clean joint.
            translate([0, -thickness, -thickness])
                cube([width, thickness, height + thickness]);
        }

        // --- Horizontal flange holes (axis along Z) ---
        // Outer face is at z = -thickness (bottom) -> countersink there.
        for (y = [pos_a, pos_b]) {
            translate([x_center, y, 0]) {
                // Through hole
                translate([0, 0, -thickness - eps])
                    cylinder(d = hole_dia, h = thickness + 2*eps);
                // Countersink on outer (-Z) face
                translate([0, 0, -thickness - eps])
                    cylinder(d = csk_dia, h = csk_depth + eps);
            }
        }

        // --- Vertical flange holes (axis along Y) ---
        // Outer face is at y = -thickness -> countersink there.
        for (z = [pos_a, pos_b]) {
            translate([x_center, 0, z]) {
                // Through hole along Y
                translate([0, eps, 0])
                    rotate([90, 0, 0])
                        cylinder(d = hole_dia, h = thickness + 2*eps);
                // Countersink on outer (-Y) face
                translate([0, -thickness + csk_depth + eps, 0])
                    rotate([90, 0, 0])
                        cylinder(d = csk_dia, h = csk_depth + eps);
            }
        }
    }
}

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

meta

runIditer-png-2_claude-opus-4-7-830f41660904-2026-04-28T18-56-06-273Z
matrixIditer-png-2/claude-opus-4-7
signature830f41660904c688…
provideranthropic
modelclaude-opus-4-7
harnessbare
statussuccess
duration13.41s (wallclock: load + prompt eval + generation + network)
tokens2001 in / 1176 out
wallclock tok/s87.7 tok/s (end-to-end)
cost$0.0394
createdAt2026-04-28T18:56:06.273Z
gitCommit781e6c683dda
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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。