vibe-openscad

iter-png-2/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 8.3s · 1502/658t · $0.0240
SCAD (42 lines)
// マグカップのパラメータ
outer_diameter = 80;      // 外径
outer_radius = outer_diameter / 2;
height = 100;             // 高さ
wall_thickness = 4;      // 肉厚
bottom_thickness = 6;    // 底面の厚み
inner_radius = outer_radius - wall_thickness;
inner_height = height - bottom_thickness;

// 取手のパラメータ
handle_tube_radius = 6;      // 取手の太さ(チューブの半径)
handle_ring_radius = 24;     // 取手リングの半径(指が通る大きさ)
handle_z = height / 2;       // 取手の取付け高さ(中心高さ)

$fn = 100;

// カップ本体
module cup_body() {
    difference() {
        // 外形
        cylinder(h = height, r = outer_radius);
        // 内側くり抜き
        translate([0, 0, bottom_thickness])
            cylinder(h = inner_height + 1, r = inner_radius);
    }
}

// 取手(リング状)
module handle() {
    // リングをカップ外周に少し食い込ませて確実に結合する
    translate([outer_radius - 4, 0, handle_z])
        rotate([90, 0, 0])
            rotate_extrude(angle = 360)
                translate([handle_ring_radius, 0, 0])
                    circle(r = handle_tube_radius);
}

// 全体の組み立て
union() {
    cup_body();
    handle();
}
パラメータ (6)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIditer-png-2_claude-opus-4-8-7e59cf167365-2026-06-09T17-41-45-926Z
matrixIditer-png-2/claude-opus-4-8
signature7e59cf167365bd85…
provideranthropic
modelclaude-opus-4-8
harnessbare
statussuccess
duration8.27s (wallclock: load + prompt eval + generation + network)
tokens1502 in / 658 out
wallclock tok/s79.6 tok/s (end-to-end)
cost$0.0240
createdAt2026-06-09T17:41:45.926Z
gitCommitc8a77106d384
openscadOpenSCAD version 2026.04.27

iteration chain

各 iteration step は独立した benchmark run です。parentRunId で前段にリンクします。

prompt

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

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