vibe-openscad

iter-png-1/o4-mini / tier-2-offset-handle-mug

success tier 2

bare (o4 mini)

render
bare render of tier-2-offset-handle-mug
loading STL…
success 101.6s · 1457/8186t · $0.0376
SCAD (50 lines)
// mug with D‐shaped handle on +X side
outer_d        = 80;   // outer diameter of mug
inner_d        = 70;   // inner diameter of mug
height         = 90;   // total mug height
bottom_thick   = 6;    // bottom thickness
open_w         = 25;   // finger‐hole width
open_h         = 30;   // finger‐hole height
h_thick        = 15;   // handle wall thickness (radius of outer arc)
$fn            = 100;  // resolution

module mug() {
  difference() {
    // outer shell
    cylinder(d = outer_d, h = height, $fn = $fn);
    // hollow interior
    translate([0,0,bottom_thick])
      cylinder(d = inner_d, h = height - bottom_thick, $fn = $fn);
  }
}

module handle2d() {
  // 2D profile of the D‐shape (in the X–Y plane)
  inner_x      = outer_d/2;           // flat‐face at mug outer
  arc_cx       = inner_x + open_w;    // center of semicircle
  union() {
    // rectangular segment from flat face to start of arc
    translate([inner_x, -h_thick])
      square([open_w, 2*h_thick], center = false);
    // outer semicircle (right half of a full circle)
    intersection() {
      translate([arc_cx, 0])
        circle(r = h_thick, $fn = $fn);
      // clip to x >= arc_cx (to keep only the right half)
      translate([arc_cx, -100])
        square([h_thick, 200], center = false);
    }
  }
}

module handle() {
  // place handle at mid‐height, extrude the 2D D‐profile by open_h
  translate([0, 0, height/2 - open_h/2])
    linear_extrude(height = open_h)
      handle2d();
}

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

meta

runIditer-png-1_o4-mini-d1b637122ebd-2026-04-28T19-04-03-645Z
matrixIditer-png-1/o4-mini
signatured1b637122ebd7004…
provideropenai
modelo4-mini-2025-04-16
harnessbare
statussuccess
duration101.58s (wallclock: load + prompt eval + generation + network)
tokens1457 in / 8186 out
wallclock tok/s80.6 tok/s (end-to-end)
cost$0.0376
createdAt2026-04-28T19:04:03.645Z
gitCommit781e6c683dda
openscadOpenSCAD version 2026.04.27

iteration chain

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

prompt

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

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

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

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