vibe-openscad

iter-png-2/claude-opus-4-7 / tier-1-mug

success tier 1

bare (claude opus 4.7)

render
bare render of tier-1-mug
loading STL…
success 5.6s · 1491/464t · $0.0191
SCAD (39 lines)
// マグカップ
$fn = 100;

outer_d = 80;      // 外径
height = 100;      // 高さ
wall = 4;          // 肉厚
bottom = 6;        // 底厚
handle_r = 12;     // 取手のリング半径(課題指定どおり)
handle_thick = 8;  // 取手の太さ

module mug() {
    difference() {
        // 外側
        cylinder(h = height, d = outer_d);
        // 内側くり抜き
        translate([0, 0, bottom])
            cylinder(h = height - bottom + 1, d = outer_d - 2 * wall);
    }
}

module handle() {
    // リングがカップ外周から十分はみ出すように、
    // リングの内側端をカップ外周に少しめり込ませて接続する
    translate([outer_d / 2 + handle_r - handle_thick/2, 0, height / 2])
        rotate([90, 0, 0])
            rotate_extrude($fn = 80)
                translate([handle_r, 0, 0])
                    circle(d = handle_thick);
}

union() {
    mug();
    // 取手のうちカップ内部に入り込む部分はカット
    difference() {
        handle();
        translate([0, 0, -1])
            cylinder(h = height + 2, d = outer_d - 0.01);
    }
}
パラメータ (6)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIditer-png-2_claude-opus-4-7-9f0df313703f-2026-04-27T01-06-31-012Z
matrixIditer-png-2/claude-opus-4-7
signature9f0df313703fc8f9…
provideranthropic
modelclaude-opus-4-7
harnessbare
statussuccess
duration5.57s (wallclock: load + prompt eval + generation + network)
tokens1491 in / 464 out
wallclock tok/s83.3 tok/s (end-to-end)
cost$0.0191
createdAt2026-04-27T01:06:31.012Z
gitCommit59dbb86a6d01
openscadOpenSCAD version 2026.04.27

iteration chain

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

prompt

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

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