vibe-openscad

bare/qwen3.8-27b / tier-2-offset-handle-mug

success tier 2

bare (qwen/qwen3.8-27b)

render
bare render of tier-2-offset-handle-mug
loading STL…
success 1383.3s · 289/56522t
SCAD (60 lines)
$fn = 256;

body_od = 80;
body_id = 70;
body_h = 90;
bottom_t = 6;

handle_zc = 45;
handle_y = 20;
handle_mat = 6;
void_h = 30;
void_w = 25;

body_r = body_od / 2;
overlap = 4;
outer_x0 = body_r - overlap;
void_x0 = outer_x0 + handle_mat;
outer_h = void_h + 2 * handle_mat;
outer_w = void_w + 2 * handle_mat;

function d_points(x0, w, h, n = 128) =
  let(r = h / 2, cx = x0 + (w - r))
  concat(
    [[x0, -r], [x0, r], [cx, r]],
    concat(
      [for (i = [1:n-1]) [cx + r * cos(90 - i * 180 / n), r * sin(90 - i * 180 / n)]],
      [[cx, -r]]
    )
  );

module d_shape(x0, w, h, n = 128) {
  polygon(points = d_points(x0, w, h, n), convexity = 1);
}

module d_prism(x0, w, h, ylen, zc, n = 128) {
  translate([0, 0, zc])
  rotate([90, 0, 0])
  linear_extrude(height = ylen, center = true)
    d_shape(x0, w, h, n);
}

module handle() {
  difference() {
    d_prism(outer_x0, outer_w, outer_h, handle_y, handle_zc);
    d_prism(void_x0, void_w, void_h, handle_y + 2, handle_zc);
  }
}

module mug_body() {
  difference() {
    cylinder(d = body_od, h = body_h, $fn = 256);
    translate([0, 0, bottom_t])
      cylinder(d = body_id, h = body_h - bottom_t + 1, $fn = 256);
  }
}

union() {
  mug_body();
  handle();
}
パラメータ (10) —
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare_qwen3.8-27b-72b71adc0fc1-2026-09-23T02-26-32-928Z
matrixIdbare/qwen3.8-27b
signature72b71adc0fc1a456…
provideropenai-self-hosted
modelqwen/qwen3.8-27b
harnessbare
statussuccess
duration1383.32s (wallclock: load + prompt eval + generation + network)
tokens289 in / 56522 out
wallclock tok/s40.9 tok/s (end-to-end)
createdAt2026-09-23T02:26:32.928Z
gitCommit536b91a45fcf
openscadOpenSCAD version 2026.09.23

iteration chain

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

prompt

OpenSCAD で、向きが指定されたマグカップを作ってください。

本体:
- 外径 80mm、内径 70mm(肉厚 5mm)、高さ 90mm の円筒形マグ
- 底面の厚みは 6mm
- 内側は飲み物を入れられるよう中空

取手(handle):
- マグの **+X 軸方向の側面のみ** に付ける(他の方向には付けない)
- 取手は D 字形状(外側が半円、本体側が直線)で、本体外周にしっかり接続する
- 取手の内側の空間は高さ 30mm × 幅 25mm(指 3 本ぐらい入る)
- 取手はマグの高さ方向の中央付近に付ける
- 本体と取手は確実に union され、マニフォールド(隙間や宙吊りなし)を保つ

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