vibe-openscad

bare-low/gpt-5 / tier-1-mug

success tier 1

bare (gpt 5)

render
bare render of tier-1-mug
loading STL…
success 34.1s · 168/2451t · $0.0247
SCAD (47 lines)
// マグカップ仕様
outer_d = 80;         // 外径
height = 100;         // 高さ
wall   = 4;           // 肉厚
bottom = 6;           // 底面厚

// 取手仕様(リング状)
handle_r_tube  = 12;  // 取手の断面半径(丸断面)
handle_R_major = 30;  // リングの主半径(指を通す空間の大きさ)
attach_overlap = 1;   // カップ外周との重なり量

$fn = 128;

// トーラス(リング状取手)
module torus(R, r) {
  rotate([90, 0, 0])  // 軸をY方向へ
    rotate_extrude(angle = 360)
      translate([R, 0, 0])
        circle(r = r);
}

// マグ本体
module mug_body() {
  outer_r = outer_d/2;
  inner_r = outer_r - wall;
  difference() {
    // 外形
    cylinder(r = outer_r, h = height);
    // 内側くり抜き(底6mm残し)
    translate([0, 0, bottom])
      cylinder(r = inner_r, h = height - bottom);
  }
}

// 取手の配置(中心高さ、外周から十分はみ出す)
module handle() {
  outer_r = outer_d/2;
  // カップ外周と少し重なるようにX方向へ配置
  translate([outer_r + handle_r_tube - attach_overlap, 0, height/2])
    torus(handle_R_major, handle_r_tube);
}

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

meta

runIdbare-low_gpt-5-64a2c8ebb950-2026-04-27T21-46-11-828Z
matrixIdbare-low/gpt-5
signature64a2c8ebb950ace0…
provideropenai
modelgpt-5-2025-08-07
harnessbare
statussuccess
duration34.06s (wallclock: load + prompt eval + generation + network)
tokens168 in / 2451 out
wallclock tok/s72.0 tok/s (end-to-end)
cost$0.0247
createdAt2026-04-27T21:46:11.828Z
gitCommit9719f13cf9c1
openscadOpenSCAD version 2026.04.27

prompt

OpenSCAD で、外径 80mm、高さ 100mm、肉厚 4mm のマグカップを作ってください。
底面の厚みは 6mm とし、内側はくり抜いて飲み物を入れられる形状にしてください。
さらに、側面には外径方向に飛び出す半径 12mm の取手(リング状の取手)を付けてください。
取手はカップの中心高さあたりに付け、外周から十分にはみ出して指を通せる形にしてください。

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