vibe-openscad

bare/claude-haiku-4-5 / tier-2-l-bracket

success tier 2

bare (claude haiku 4.5)

render
bare render of tier-2-l-bracket
loading STL…
success 5.4s · 361/776t · $0.0042
SCAD (86 lines)
// L-bracket with countersunk holes

// Parameters
horizontal_width = 50;  // mm
horizontal_depth = 40;  // mm
vertical_width = 50;    // mm
vertical_height = 40;   // mm
thickness = 3;          // mm

// Hole parameters
hole_diameter = 4.5;    // mm
countersink_diameter = 8;  // mm
countersink_depth = 2;  // mm
hole_offset_from_edge = 10;  // mm from edge
holes_spacing = 20;     // mm between holes

// Main L-bracket shape
module l_bracket() {
    // Horizontal flange (XY plane, at Z=0)
    cube([horizontal_width, horizontal_depth, thickness]);
    
    // Vertical flange (XZ plane, at Y=0)
    cube([vertical_width, thickness, vertical_height]);
}

// Countersunk hole
module countersunk_hole(depth = 50) {
    // Through hole
    cylinder(h = depth, r = hole_diameter / 2, center = false, $fn = 32);
    
    // Countersink
    cylinder(h = countersink_depth, r = countersink_diameter / 2, center = false, $fn = 32);
}

// Holes for horizontal flange (top side, Z direction)
module horizontal_flange_holes() {
    // Holes positioned on the centerline (Y = horizontal_depth/2)
    // Two holes symmetrically placed
    hole_y = horizontal_depth / 2;
    
    // Left hole
    hole_x_left = hole_offset_from_edge;
    translate([hole_x_left, hole_y, thickness]) {
        rotate([180, 0, 0]) {
            countersunk_hole();
        }
    }
    
    // Right hole
    hole_x_right = horizontal_width - hole_offset_from_edge;
    translate([hole_x_right, hole_y, thickness]) {
        rotate([180, 0, 0]) {
            countersunk_hole();
        }
    }
}

// Holes for vertical flange (front side, Y direction)
module vertical_flange_holes() {
    // Holes positioned on the centerline (X = vertical_width/2)
    // Two holes symmetrically placed
    hole_x = vertical_width / 2;
    
    // Bottom hole
    hole_z_bottom = hole_offset_from_edge;
    translate([hole_x, 0, hole_z_bottom]) {
        rotate([-90, 0, 0]) {
            countersunk_hole();
        }
    }
    
    // Top hole
    hole_z_top = vertical_height - hole_offset_from_edge;
    translate([hole_x, 0, hole_z_top]) {
        rotate([-90, 0, 0]) {
            countersunk_hole();
        }
    }
}

// Main assembly
difference() {
    l_bracket();
    horizontal_flange_holes();
    vertical_flange_holes();
}
パラメータ (10)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare_claude-haiku-4-5-76bdea7d8d57-2026-04-28T10-10-04-822Z
matrixIdbare/claude-haiku-4-5
signature76bdea7d8d574565…
provideranthropic
modelclaude-haiku-4-5-20251001
harnessbare
statussuccess
duration5.41s (wallclock: load + prompt eval + generation + network)
tokens361 in / 776 out
wallclock tok/s143.5 tok/s (end-to-end)
cost$0.0042
createdAt2026-04-28T10:10:04.822Z
gitCommit266a4b423d4e
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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。