vibe-openscad

bare/gpt-5-nano / tier-2-hex-bolt

success tier 2

bare (gpt 5 nano)

render
bare render of tier-2-hex-bolt
loading STL…
success 61.5s · 200/7180t · $0.0029
SCAD (34 lines)
// OpenSCAD: M8 hex bolt (thread omitted), hex head + cylindrical shank

// Across-flats of hex head
D = 13; // mm

// Regular hexagon circumradius from across-flats: R = D / sqrt(3)
R = D / sqrt(3);

// 2D hexagon points (circumradius R), oriented generically
points_hex = [
    for (i = [0 : 5])
        [
            R * cos(i * 60 * PI / 180),
            R * sin(i * 60 * PI / 180)
        ]
];

// Head: hexagonal prism, thickness 5.3 mm, bottom on z = 0
module head() {
    linear_extrude(height = 5.3, center = false)
        polygon(points = points_hex);
}

// Shank: cylinder, diameter 8 mm (radius 4 mm), length 30 mm
module shank() {
    cylinder(h = 30, r = 4, center = false);
}

// Assemble: head on top (z 0 to 5.3), shank extending to z < 0 (z -30 to 0)
union() {
    head(); // z = 0 .. 5.3
    translate([0, 0, -30])
        shank(); // z = -30 .. 0
}
パラメータ (1)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare_gpt-5-nano-1d1d1847db4e-2026-04-28T13-57-26-634Z
matrixIdbare/gpt-5-nano
signature1d1d1847db4e6834…
provideropenai
modelgpt-5-nano-2025-08-07
harnessbare
statussuccess
duration61.52s (wallclock: load + prompt eval + generation + network)
tokens200 in / 7180 out
wallclock tok/s116.7 tok/s (end-to-end)
cost$0.0029
createdAt2026-04-28T13:57:26.634Z
gitCommit6bcf5489cb58
openscadOpenSCAD version 2026.04.27

iteration chain

各 iteration step は独立した benchmark run です。parentRunId で前段にリンクします。

prompt

OpenSCAD で、規格に準じた M8 サイズの六角ボルトを作ってください。
ねじ山自体は省略してよく、円柱のシャンクで構いません。

寸法は以下に従ってください:
- 頭部は六角柱で、対辺距離(across-flats)13mm、高さ 5.3mm
- シャンク(軸部)は直径 8mm、長さ 30mm の円柱
- ボルト全体の中心軸は +Z 軸方向
- 頭部の底面が原点(z=0)に来るように配置し、シャンクは z<0 側へ伸ばす

完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。