vibe-openscad

iter-png-1/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 17.4s · 2655/1206t · $0.0434
SCAD (63 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;

// Holes are placed on the centerline of each face (x = width/2),
// 10mm from each edge along the length of the flange.
x_center = width / 2;
pos_a = edge_offset;          // 10mm from inner-corner-side edge
pos_b = depth - edge_offset;  // 10mm from far edge (=30mm)

module l_bracket() {
    difference() {
        union() {
            // Horizontal flange: inner (top) surface 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 the corner block (z from -thickness to 0) for clean joint
            translate([0, -thickness, -thickness])
                cube([width, thickness, height + thickness]);
        }
        
        // Holes in horizontal flange (through Z), countersink on bottom (outer, -Z)
        for (y = [pos_a, pos_b]) {
            translate([x_center, y, 0]) {
                // through hole
                translate([0, 0, -thickness - 1])
                    cylinder(d = hole_dia, h = thickness + 2);
                // countersink on outer (bottom) face
                translate([0, 0, -thickness - 0.01])
                    cylinder(d = csk_dia, h = csk_depth + 0.01);
            }
        }
        
        // Holes in vertical flange (through Y), countersink on outer (-Y) face
        for (z = [pos_a, pos_b]) {
            translate([x_center, 0, z]) {
                // through hole along Y
                translate([0, 1, 0])
                    rotate([90, 0, 0])
                        cylinder(d = hole_dia, h = thickness + 2);
                // countersink on outer (-Y) face
                translate([0, -thickness + csk_depth + 0.01, 0])
                    rotate([90, 0, 0])
                        cylinder(d = csk_dia, h = csk_depth + 0.01);
            }
        }
    }
}

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

meta

runIditer-png-1_claude-opus-4-7-7d636f388d2d-2026-04-28T18-55-39-440Z
matrixIditer-png-1/claude-opus-4-7
signature7d636f388d2dc8d0…
provideranthropic
modelclaude-opus-4-7
harnessbare
statussuccess
duration17.41s (wallclock: load + prompt eval + generation + network)
tokens2655 in / 1206 out
wallclock tok/s69.3 tok/s (end-to-end)
cost$0.0434
createdAt2026-04-28T18:55:39.440Z
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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。