vibe-openscad

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

success tier 1

bare (claude opus 5)

render
bare render of tier-1-mug
loading STL…
success 10.8s · 220/710t · $0.0189
SCAD (59 lines)
// ===== マグカップ =====
// 外径 80mm / 高さ 100mm / 肉厚 4mm / 底厚 6mm
// 取手: リング状 (中心半径 12mm) を側面中央高さに配置

$fn = 120;

outer_d    = 80;      // 外径
outer_r    = outer_d / 2;
height     = 100;     // 全高
wall       = 4;       // 側面肉厚
bottom     = 6;       // 底厚

handle_r     = 12;    // 取手リングの中心半径(穴を含む輪の半径)
handle_thick = 6;     // 取手の太さ(断面直径)
handle_z     = height / 2;   // 取手の取り付け高さ(中心高さ)
// 外周からのはみ出しを確保するため、リング中心を外周付近に置く
handle_x     = outer_r - 2;

module cup_body() {
    difference() {
        // 外形
        cylinder(h = height, r = outer_r);
        // 内側くり抜き
        translate([0, 0, bottom])
            cylinder(h = height - bottom + 1, r = outer_r - wall);
    }
}

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

module mug() {
    difference() {
        union() {
            cup_body();
            // 取手のうちカップ外側にある部分のみ使用
            difference() {
                handle();
                cylinder(h = height, r = outer_r - 0.01);
            }
            // 取手をカップ壁面に接合する部分
            intersection() {
                handle();
                cylinder(h = height, r = outer_r);
            }
        }
        // 内側の空間は必ず空けておく
        translate([0, 0, bottom])
            cylinder(h = height - bottom + 1, r = outer_r - wall);
    }
}

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

meta

runIdbare-low_claude-opus-5-2574d796c296-2026-09-05T09-46-16-119Z
matrixIdbare-low/claude-opus-5
signature2574d796c296a2ad…
provideranthropic
modelclaude-opus-5
harnessbare
statussuccess
duration10.82s (wallclock: load + prompt eval + generation + network)
tokens220 in / 710 out
wallclock tok/s65.6 tok/s (end-to-end)
cost$0.0189
createdAt2026-09-05T09:46:16.119Z
gitCommitae06af89b638
openscadOpenSCAD version 2026.04.27

prompt

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

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