bare/claude-opus-4-5 / tier-2-l-bracket
success tier 2
bare (claude opus 4.5)
render
// 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 (pointing in -Z direction, countersink on top)
module countersunk_hole() {
union() {
// Through hole
cylinder(h = thickness + 1, d = hole_diameter, center = true, $fn = 32);
// Countersink (cone + cylinder for flat bottom)
translate([0, 0, thickness/2 - countersink_depth/2 + 0.01])
cylinder(h = countersink_depth + 0.01, d1 = hole_diameter, d2 = countersink_diameter, $fn = 32);
}
}
// Hole positions on horizontal flange (Y-Z plane holes, on surface facing -Z)
hole_x_offset = flange_width / 2; // Center line
hole_y_positions = [edge_distance, flange_depth - edge_distance];
// Hole positions on vertical flange
hole_z_positions = [edge_distance, flange_depth - edge_distance];
difference() {
union() {
// Horizontal flange (+Y direction, sitting on Z=0 plane going down in -Z)
// Actually: horizontal flange extends in +Y, thickness goes in -Z direction
translate([0, 0, -thickness])
cube([flange_width, flange_depth, thickness]);
// Vertical flange (+Z direction)
translate([0, -thickness, 0])
cube([flange_width, thickness, flange_depth]);
}
// Countersunk holes on horizontal flange (countersink on bottom, -Z side)
for (y = hole_y_positions) {
translate([hole_x_offset, y, -thickness/2])
rotate([180, 0, 0])
countersunk_hole();
}
// Countersunk holes on vertical flange (countersink on -Y side, outside)
for (z = hole_z_positions) {
translate([hole_x_offset, -thickness/2, z])
rotate([90, 0, 0])
countersunk_hole();
}
} パラメータ (7) —
スライダを動かすと openscad-wasm で再レンダリング
iteration chain
各 iteration step は独立した benchmark run です。parentRunId で前段にリンクします。
→ children (1)
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 ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。