vibe-openscad

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

success tier 1

bare (claude opus 5)

render
bare render of tier-1-mug
loading STL…
success 9.8s · 220/660t · $0.0176
SCAD (52 lines)
// ===== マグカップ =====
// 外径 80mm / 高さ 100mm / 肉厚 4mm / 底厚 6mm
// 取手: リング状 (トーラス), 半径 12mm

$fn = 96;

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

// 取手パラメータ
handle_R   = 12;    // リングの半径(中心線)
handle_r   = 5;     // リングの太さ(断面半径)
handle_z   = height / 2;          // 取手の高さ(カップ中心高さ)
handle_x   = outer_r + handle_R * 0.55;  // 外周から十分はみ出す位置

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

// --- 取手(リング状 = トーラス) ---
module torus(R, r) {
    rotate_extrude(convexity = 10)
        translate([R, 0, 0])
            circle(r = r);
}

module handle() {
    translate([handle_x, 0, handle_z])
        rotate([90, 0, 0])          // リング面を垂直(XZ平面)に
            torus(handle_R, handle_r);
}

// --- 組み立て ---
difference() {
    union() {
        cup_body();
        // 取手はカップ外壁と交差させて確実に接合
        handle();
    }
    // 内側の飲み物空間に取手がはみ出さないように削る
    translate([0, 0, bottom])
        cylinder(h = height - bottom + 1, r = inner_r);
}
パラメータ (6) —
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare_claude-opus-5-c883ae09d81c-2026-09-05T12-50-29-231Z
matrixIdbare/claude-opus-5
signaturec883ae09d81c89e1…
provideranthropic
modelclaude-opus-5
harnessbare
statussuccess
duration9.75s (wallclock: load + prompt eval + generation + network)
tokens220 in / 660 out
wallclock tok/s67.7 tok/s (end-to-end)
cost$0.0176
createdAt2026-09-05T12:50:29.231Z
gitCommitdfb9131c7fa6
openscadOpenSCAD version 2026.04.27

prompt

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

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