tier-2-hex-bolt / gpt-5.5-2026-04-23
7 run / 累計 90.8s / 累計 $0.0409
openai gpt 5.5 2026-04-23 bare prompt
OpenSCAD で、規格に準じた M8 サイズの六角ボルトを作ってください。
ねじ山自体は省略してよく、円柱のシャンクで構いません。
寸法は以下に従ってください:
- 頭部は六角柱で、対辺距離(across-flats)13mm、高さ 5.3mm
- シャンク(軸部)は直径 8mm、長さ 30mm の円柱
- ボルト全体の中心軸は +Z 軸方向
- 頭部の底面が原点(z=0)に来るように配置し、シャンクは z<0 側へ伸ばす
完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。
variant: effort
7.5s
· 200/268t · $0.0029
SCAD (16 lines)
$fn = 96;
module hex_head(af = 13, h = 5.3) {
r = af / (2 * cos(30));
cylinder(h = h, r = r, $fn = 6);
}
module shank(d = 8, l = 30) {
translate([0, 0, -l])
cylinder(h = l, d = d);
}
union() {
hex_head(af = 13, h = 5.3);
shank(d = 8, l = 30);
}
medium (default) success →
9.4s
· 200/399t · $0.0042
SCAD (7 lines)
$fn = 96;
union() {
cylinder(h = 5.3, r = 13 / (2 * cos(30)), $fn = 6);
translate([0, 0, -30])
cylinder(h = 30, d = 8);
}
14.6s
· 200/623t · $0.0065
SCAD (10 lines)
$fn = 64;
union() {
// Hex head: across-flats 13 mm, height 5.3 mm
cylinder(h = 5.3, r = 13 / sqrt(3), $fn = 6);
// Shank: diameter 8 mm, length 30 mm, extending in -Z
translate([0, 0, -30])
cylinder(h = 30, d = 8);
}
—
—
iteration: iter-png
14.0s
· 934/556t · $0.0067
diff vs bare: +0/-0
$fn = 96;
union() {
cylinder(h = 5.3, r = 13 / (2 * cos(30)), $fn = 6);
translate([0, 0, -30])
cylinder(h = 30, d = 8);
}
SCAD (7 lines)
$fn = 96;
union() {
cylinder(h = 5.3, r = 13 / (2 * cos(30)), $fn = 6);
translate([0, 0, -30])
cylinder(h = 30, d = 8);
}
19.1s
· 934/806t · $0.0092
diff vs i1: +0/-0
$fn = 96;
union() {
cylinder(h = 5.3, r = 13 / (2 * cos(30)), $fn = 6);
translate([0, 0, -30])
cylinder(h = 30, d = 8);
}
SCAD (7 lines)
$fn = 96;
union() {
cylinder(h = 5.3, r = 13 / (2 * cos(30)), $fn = 6);
translate([0, 0, -30])
cylinder(h = 30, d = 8);
}
16.8s
· 934/587t · $0.0070
diff vs i2: +0/-0
$fn = 96;
union() {
cylinder(h = 5.3, r = 13 / (2 * cos(30)), $fn = 6);
translate([0, 0, -30])
cylinder(h = 30, d = 8);
}
SCAD (7 lines)
$fn = 96;
union() {
cylinder(h = 5.3, r = 13 / (2 * cos(30)), $fn = 6);
translate([0, 0, -30])
cylinder(h = 30, d = 8);
}