iter-png-1/gemini-3.1-pro / tier-3-butt-hinge
success tier 3
bare (gemini 3.1 pro)
render
loading STL…
$fn = 60;
module countersink_hole() {
// 貫通穴 (d=3.2)
translate([0, 0, -2]) cylinder(h=4, d=3.2);
// 皿穴テーパ (深さ1mm, d1=3.2, d2=6.0)
translate([0, 0, 0.001]) cylinder(h=1, d1=3.2, d2=6.0);
// テーパ上部のクリアランス
translate([0, 0, 1]) cylinder(h=2, d=6.0);
}
module left_leaf() {
difference() {
union() {
// 左板 (x < 0)
translate([-25, 0, -1]) cube([25, 30, 2]);
// 左板のknuckle (外側2個 + 中央1個)
translate([0, 0, 0]) rotate([-90, 0, 0]) cylinder(h=6, d=8);
translate([0, 12, 0]) rotate([-90, 0, 0]) cylinder(h=6, d=8);
translate([0, 24, 0]) rotate([-90, 0, 0]) cylinder(h=6, d=8);
}
// 相手(右板)のknuckleを避けるための切り欠き
translate([-4.5, 5.99, -5]) cube([10, 6.02, 10]);
translate([-4.5, 17.99, -5]) cube([10, 6.02, 10]);
// ピン軸用穴 (内径4.6mm)
translate([0, -2, 0]) rotate([-90, 0, 0]) cylinder(h=34, d=4.6);
// ネジ穴 (M3用皿穴)
for (y = [7, 15, 23]) {
translate([-15, y, 0]) countersink_hole();
}
}
}
module right_leaf() {
difference() {
union() {
// 右板 (x > 0)
translate([0, 0, -1]) cube([25, 30, 2]);
// 右板のknuckle (中間2個)
translate([0, 6, 0]) rotate([-90, 0, 0]) cylinder(h=6, d=8);
translate([0, 18, 0]) rotate([-90, 0, 0]) cylinder(h=6, d=8);
}
// 相手(左板)のknuckleを避けるための切り欠き
translate([-5.5, -0.01, -5]) cube([10, 6.02, 10]);
translate([-5.5, 11.99, -5]) cube([10, 6.02, 10]);
translate([-5.5, 23.99, -5]) cube([10, 6.02, 10]);
// ピン軸用穴 (内径4.6mm)
translate([0, -2, 0]) rotate([-90, 0, 0]) cylinder(h=34, d=4.6);
// ネジ穴 (M3用皿穴)
for (y = [7, 15, 23]) {
translate([15, y, 0]) countersink_hole();
}
}
}
module hinge_pin() {
// ピン軸 (直径4mm, 長さ32mm, 両端1mm突出)
translate([0, -1, 0]) rotate([-90, 0, 0]) cylinder(h=32, d=4);
}
// 組み立て配置
color("LightSteelBlue") left_leaf();
color("SteelBlue") right_leaf();
color("Silver") hinge_pin(); iteration chain
各 iteration step は独立した benchmark run です。parentRunId で前段にリンクします。
← parent
bare/gemini-3.1-pro success → children (1)
prompt
OpenSCAD で、家具用の小型バット蝶番(butt hinge)を作ってください。 3 つのパーツ(左板、右板、ピン軸)が組み合わさって動作する完成品を、 「開いた状態(180°)」で 1 つの SCAD ファイルに配置して出力します。 寸法と配置: - 板(leaf)2 枚: 30mm × 25mm × 厚さ 2mm の鉄板形状 - 縦 30mm の辺がピン軸に沿う(ヒンジ軸方向) - 横 25mm の辺が回転で開く方向に伸びる - ピン軸: 直径 4mm の円柱、長さ 32mm(両端 1mm ずつ knuckle から飛び出す) - knuckle(筒部): 縦 30mm を 5 等分(各 6mm)に区切り、左板に 3 個・右板に 2 個を 互い違いに配置(左板は外側 2 個 + 中央 1 個、右板は中間 2 個) - knuckle 外径 8mm、内径はピン軸 + 0.3mm クリアランス(= 4.6mm 穴) - 左板と右板はピン軸を共有して回転可能。180° 開いた状態で、両板の 平らな面が同一平面に来るように配置する - 各板の knuckle から離れた側に、M3 用の皿穴を 3 個ずつ (穴ピッチは板の縦方向に 8mm 間隔、皿穴は表面から見て直径 6mm × 深さ 1mm のテーパ + 直径 3.2mm の貫通穴) 座標系: - ピン軸の中心線を Y 軸に重ねる(ピン軸は +Y 方向) - 板の平らな面は Z 軸に直交し、左板が x<0 側、右板が x>0 側に伸びる(180° 開) - knuckle は X=0 を中心とし、Y 方向に 6mm ずつ並ぶ 完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。 コードのみで、追加の説明は不要です。