vibe-openscad

bare-think-off/claude-opus-4-8 / tier-1-mug

success tier 1

bare (claude opus 4.8)

render
bare render of tier-1-mug
loading STL…
success 6.6s · 220/468t · $0.0128
SCAD (40 lines)
// マグカップ パラメータ
outer_d = 80;      // 外径
height  = 100;     // 高さ
wall    = 4;       // 肉厚
bottom  = 6;       // 底面の厚み

outer_r = outer_d / 2;
inner_r = outer_r - wall;
inner_h = height - bottom;

// 取手パラメータ
handle_tube_r = 6;        // 取手の太さ(チューブ半径)
handle_ring_r = 12;       // 取手リングの半径(中心〜チューブ中心)
handle_z = height / 2;    // 取手の高さ位置

$fn = 100;

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([outer_r + handle_ring_r - handle_tube_r, 0, handle_z])
        rotate([90, 0, 0])
            rotate_extrude(convexity = 10)
                translate([handle_ring_r, 0, 0])
                    circle(r = handle_tube_r);
}

union() {
    cup_body();
    handle();
}
パラメータ (6)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-think-off_claude-opus-4-8-29d379f8dfd3-2026-06-09T17-40-01-762Z
matrixIdbare-think-off/claude-opus-4-8
signature29d379f8dfd30dbc…
provideranthropic
modelclaude-opus-4-8
harnessbare
statussuccess
duration6.61s (wallclock: load + prompt eval + generation + network)
tokens220 in / 468 out
wallclock tok/s70.8 tok/s (end-to-end)
cost$0.0128
createdAt2026-06-09T17:40:01.762Z
gitCommitc8a77106d384
openscadOpenSCAD version 2026.04.27

prompt

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

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