vibe-openscad

bare-think-off/claude-opus-5 / tier-1-mug

success tier 1

bare (claude opus 5)

render
bare render of tier-1-mug
loading STL…
success 9.1s · 220/590t · $0.0158
SCAD (50 lines)
// ===== パラメータ =====
outer_d      = 80;   // カップ外径
outer_r      = outer_d / 2;
height       = 100;  // カップ高さ
wall         = 4;    // 側面肉厚
bottom       = 6;    // 底面厚み

inner_r      = outer_r - wall;      // 内径半径 = 36
inner_h      = height - bottom;     // 内側空洞の高さ = 94

// 取手(リング状)
handle_r     = 12;   // リングの半径(穴の中心線半径)
handle_t     = 5;    // リング断面の半径(太さ)
handle_z     = height / 2;          // 取手の高さ位置(中心高さ)
handle_off   = outer_r + handle_r - 6; // リング中心のX位置(カップに食い込ませる)

$fn = 96;

// ===== 本体 =====
module cup_body() {
    difference() {
        cylinder(h = height, r = outer_r);
        translate([0, 0, bottom])
            cylinder(h = inner_h + 1, r = inner_r);
    }
}

// ===== 取手 =====
module handle() {
    translate([handle_off, 0, handle_z])
        rotate([90, 0, 0])
            rotate_extrude(convexity = 10)
                translate([handle_r, 0, 0])
                    circle(r = handle_t);
}

// ===== 組み立て =====
module mug() {
    difference() {
        union() {
            cup_body();
            handle();
        }
        // 取手が内側空洞に突き出さないようにカット
        translate([0, 0, bottom])
            cylinder(h = inner_h + 1, r = inner_r);
    }
}

mug();
パラメータ (6) —
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-think-off_claude-opus-5-134c37f858fc-2026-09-05T09-54-06-570Z
matrixIdbare-think-off/claude-opus-5
signature134c37f858fcf2a3…
provideranthropic
modelclaude-opus-5
harnessbare
statussuccess
duration9.10s (wallclock: load + prompt eval + generation + network)
tokens220 in / 590 out
wallclock tok/s64.8 tok/s (end-to-end)
cost$0.0158
createdAt2026-09-05T09:54:06.570Z
gitCommitae06af89b638
openscadOpenSCAD version 2026.04.27

prompt

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

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