vibe-openscad

iter-png-1/qwen3.5-9b / tier-2-hex-bolt

success tier 2

bare (qwen/qwen3.5-9b)

render
bare render of tier-2-hex-bolt
loading STL…
success 17.0s · 976/1717t
SCAD (51 lines)
module bolt() {
  // Hexagonal Head
  // Across flats = 13mm -> Circumradius = 13 / (2 * cos(30deg))
  // Head height = 5.3mm
  // Head bottom at z=0
  
  R = 13 / (2 * cos(pi / 6)); // Circumradius
  
  // Define vertices for hexagonal prism
  // Bottom face (z=0)
  points_bottom = [];
  for (i = [0 : 5]) {
    points_bottom = concat(points_bottom, [[R * cos(i * pi / 3), R * sin(i * pi / 3), 0]]);
  }
  // Top face (z=5.3)
  points_top = [];
  for (i = [0 : 5]) {
    points_top = concat(points_top, [[R * cos(i * pi / 3), R * sin(i * pi / 3), 5.3]]);
  }
  
  // Combine points
  all_points = concat(points_bottom, points_top);
  
  // Define faces for polyhedron
  // Indices: 0-5 are bottom, 6-11 are top
  faces = [];
  
  // Bottom face
  faces = concat(faces, [[0, 1, 2, 3, 4, 5]]);
  // Top face
  faces = concat(faces, [[6, 7, 8, 9, 10, 11]]);
  // Side faces
  for (i = [0 : 5]) {
    // Connect vertex i (bottom) to i (top) and i+1 (top) and i+1 (bottom)
    faces = concat(faces, [[i, i + 1, i + 1 + 6, i + 6]]);
  }
  
  // Draw hexagonal head
  translate([0, 0, 0])
  polyhedron(points = all_points, faces = faces);
  
  // Shank
  // Diameter = 8mm
  // Length = 30mm
  // Top at z=0, Bottom at z=-30
  
  translate([0, 0, -30])
  cylinder(d = 8, h = 30, center = false);
}

bolt();

meta

runIditer-png-1_qwen3.5-9b-97de574344ab-2026-09-23T09-00-07-454Z
matrixIditer-png-1/qwen3.5-9b
signature97de574344ab1bf5…
provideropenai-self-hosted
modelqwen/qwen3.5-9b
harnessbare
statussuccess
duration17.05s (wallclock: load + prompt eval + generation + network)
tokens976 in / 1717 out
wallclock tok/s100.7 tok/s (end-to-end)
createdAt2026-09-23T09:00:07.454Z
gitCommit54e55cb7b2b0
openscadOpenSCAD version 2026.09.23

iteration chain

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

prompt

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

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

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