vibe-openscad

bare-xhigh/claude-opus-5 / tier-1-mug

success tier 1

bare (claude opus 5)

render
bare render of tier-1-mug
loading STL…
success 52.0s · 220/3933t · $0.0994
SCAD (53 lines)
// ============================================
//  マグカップ (外径80mm / 高さ100mm / 肉厚4mm)
//  リング状取手 (半径12mm) 付き
// ============================================

$fn = 120;

// ---- 基本寸法 ----
outer_d   = 80;              // 外径
outer_r   = outer_d / 2;     // 外半径 = 40
cup_h     = 100;             // 全高
wall_t    = 4;               // 側面の肉厚
bottom_t  = 6;               // 底面の厚み
inner_r   = outer_r - wall_t;// 内半径 = 36

// ---- 取手(リング)寸法 ----
handle_r  = 12;                              // リングの半径
handle_t  = 5;                               // リング断面(パイプ)の半径
handle_z  = cup_h / 2;                       // 高さ方向の取付位置(中心高さ)
handle_x  = outer_r + handle_r - handle_t;   // 外周から十分はみ出す位置 = 47

// ---- カップ外形 ----
module cup_outer() {
    cylinder(h = cup_h, r = outer_r);
}

// ---- 内側のくり抜き ----
module cup_cavity() {
    translate([0, 0, bottom_t])
        cylinder(h = cup_h - bottom_t + 1, r = inner_r);
}

// ---- リング状取手(トーラス) ----
module handle() {
    translate([handle_x, 0, handle_z])
        rotate([90, 0, 0])
            rotate_extrude(convexity = 10)
                translate([handle_r, 0])
                    circle(r = handle_t);
}

// ---- 組み立て ----
module mug() {
    difference() {
        union() {
            cup_outer();
            handle();          // 壁を貫通させて確実に接合
        }
        cup_cavity();          // 内側をくり抜き(取手の余分な内側も除去)
    }
}

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

meta

runIdbare-xhigh_claude-opus-5-9b8e17029906-2026-09-05T12-52-58-106Z
matrixIdbare-xhigh/claude-opus-5
signature9b8e170299063c76…
provideranthropic
modelclaude-opus-5
harnessbare
statussuccess
duration51.98s (wallclock: load + prompt eval + generation + network)
tokens220 in / 3933 out
wallclock tok/s75.7 tok/s (end-to-end)
cost$0.0994
createdAt2026-09-05T12:52:58.106Z
gitCommitdfb9131c7fa6
openscadOpenSCAD version 2026.04.27

prompt

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

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