vibe-openscad

bare-high/gpt-5-mini / tier-2-hex-bolt

success tier 2

bare (gpt 5 mini)

render
bare render of tier-2-hex-bolt
loading STL…
success 52.3s · 200/4004t · $0.0081
SCAD (20 lines)
// M8 六角ボルト(ねじ山省略、シャンクは円柱)
// 頭部底面が z=0、シャンクは z<0 側へ伸ばす

// 寸法(mm)
af = 13;             // 対辺距離 (across-flats)
head_h = 5.3;        // 頭部高さ
shank_d = 8;         // シャンク直径
shank_len = 30;      // シャンク長さ

// 六角柱用の外接円直径(円周上の頂点間の直径)
head_d = 2 * af / sqrt(3);

union() {
    // 六角頭部(底面が z=0)
    cylinder(h = head_h, d = head_d, $fn = 6, center = false);

    // シャンク(z=-shank_len .. 0)
    translate([0, 0, -shank_len])
        cylinder(h = shank_len, d = shank_d, $fn = 64, center = false);
}
パラメータ (4)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-high_gpt-5-mini-787a21b325c1-2026-04-28T18-50-36-223Z
matrixIdbare-high/gpt-5-mini
signature787a21b325c161e9…
provideropenai
modelgpt-5-mini-2025-08-07
harnessbare
statussuccess
duration52.26s (wallclock: load + prompt eval + generation + network)
tokens200 in / 4004 out
wallclock tok/s76.6 tok/s (end-to-end)
cost$0.0081
createdAt2026-04-28T18:50:36.223Z
gitCommit781e6c683dda
openscadOpenSCAD version 2026.04.27

prompt

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

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

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