vibe-openscad

iter-png-3/claude-opus-4-5 / tier-2-l-bracket

success tier 2

bare (claude opus 4.5)

render
bare render of tier-2-l-bracket
loading STL…
success 8.6s · 1761/808t · $0.0290
SCAD (56 lines)
// L-bracket with countersunk holes

// Parameters
flange_width = 50;      // X direction
flange_depth = 40;      // Y direction for horizontal, Z direction for vertical
thickness = 3;

// Countersunk hole parameters
hole_diameter = 4.5;    // M4 through hole
countersink_diameter = 8;
countersink_depth = 2;
edge_distance = 10;     // Distance from edge to hole center

// Module for countersunk hole (countersink at Z+ side)
module countersunk_hole(h) {
    union() {
        // Through hole
        cylinder(h = h + 0.02, d = hole_diameter, center = true, $fn = 32);
        // Countersink (cone) at top (Z+ side)
        translate([0, 0, h/2 - countersink_depth + 0.01])
            cylinder(h = countersink_depth + 0.01, d1 = hole_diameter, d2 = countersink_diameter, $fn = 32);
    }
}

// Hole X positions (symmetric about center line, 10mm from left and right edges)
hole_x_positions = [edge_distance, flange_width - edge_distance];

difference() {
    union() {
        // Horizontal flange: bottom surface at Z=0, top surface at Z=thickness
        // Extends in +Y direction from origin
        cube([flange_width, flange_depth, thickness]);
        
        // Vertical flange: front surface at Y=0, back surface at Y=thickness
        // Extends in +Z direction from origin
        cube([flange_width, thickness, flange_depth]);
    }
    
    // Countersunk holes on horizontal flange
    // Holes centered at Y = flange_depth - edge_distance (10mm from far edge)
    // Countersink on bottom (Z=0 side, outside where bolt head sits)
    for (x = hole_x_positions) {
        translate([x, flange_depth - edge_distance, thickness/2])
            rotate([180, 0, 0])
                countersunk_hole(thickness);
    }
    
    // Countersunk holes on vertical flange
    // Holes centered at Z = flange_depth - edge_distance (10mm from top edge)
    // Countersink on front (Y=0 side, outside where bolt head sits)
    for (x = hole_x_positions) {
        translate([x, thickness/2, flange_depth - edge_distance])
            rotate([-90, 0, 0])
                countersunk_hole(thickness);
    }
}
パラメータ (7)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIditer-png-3_claude-opus-4-5-3d7ae12848fc-2026-04-28T18-57-48-983Z
matrixIditer-png-3/claude-opus-4-5
signature3d7ae12848fc42bb…
provideranthropic
modelclaude-opus-4-5-20251101
harnessbare
statussuccess
duration8.62s (wallclock: load + prompt eval + generation + network)
tokens1761 in / 808 out
wallclock tok/s93.7 tok/s (end-to-end)
cost$0.0290
createdAt2026-04-28T18:57:48.983Z
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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。