vibe-openscad

iter-png-2/claude-haiku-4-5 / tier-2-offset-handle-mug

success tier 2

bare (claude haiku 4.5)

render
bare render of tier-2-offset-handle-mug
loading STL…
success 7.1s · 1817/861t · $0.0061
SCAD (64 lines)
// マグカップ本体
module mug() {
    difference() {
        // 外側円筒:外径80mm(半径40mm)、高さ90mm
        cylinder(h = 90, r = 40, center = false, $fn = 100);
        
        // 内側の空洞:底面6mm残す
        translate([0, 0, 6]) {
            cylinder(h = 84, r = 35, center = false, $fn = 100);
        }
    }
}

// D字形取手
module handle() {
    // 取手の内側寸法:高さ30mm、幅25mm
    handle_inner_height = 30;
    handle_inner_width = 25;
    handle_inner_depth = 20;  // 指が入る奥行き
    
    // 取手開始高さ(マグの中央付近)
    handle_z = (90 - handle_inner_height) / 2;  // 30mm
    
    // 取手の外側半径
    handle_outer_r = 50;  // 外側が円形で本体から十分に離れる
    
    union() {
        // 本体側の直線部分(接続部)
        translate([35, -handle_inner_width/2, handle_z]) {
            cube([8, handle_inner_width, handle_inner_height]);
        }
        
        // 外側の半円形部分
        difference() {
            // 取手全体の円形セクション(X >= 40の部分)
            intersection() {
                cylinder(h = handle_inner_height, r = handle_outer_r, center = false, $fn = 100);
                translate([0, 0, handle_z]) {
                    cube([200, 200, handle_inner_height]);
                }
                // +X軸側のみ
                translate([40, -200, handle_z]) {
                    cube([200, 400, handle_inner_height]);
                }
            }
            
            // 内側をくり抜く:D字形状の内側空間
            translate([40, -handle_inner_width/2, handle_z - 0.5]) {
                cube([handle_inner_depth + 1, handle_inner_width, handle_inner_height + 1]);
            }
            
            // マグ本体との干渉部分を削除
            translate([0, 0, handle_z - 1]) {
                cylinder(h = handle_inner_height + 2, r = 40, center = false, $fn = 100);
            }
        }
    }
}

// 完成品
union() {
    mug();
    handle();
}

meta

runIditer-png-2_claude-haiku-4-5-cdf217767031-2026-04-28T18-57-02-666Z
matrixIditer-png-2/claude-haiku-4-5
signaturecdf2177670310c01…
provideranthropic
modelclaude-haiku-4-5-20251001
harnessbare
statussuccess
duration7.15s (wallclock: load + prompt eval + generation + network)
tokens1817 in / 861 out
wallclock tok/s120.5 tok/s (end-to-end)
cost$0.0061
createdAt2026-04-28T18:57:02.666Z
gitCommit781e6c683dda
openscadOpenSCAD version 2026.04.27

iteration chain

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

prompt

OpenSCAD で、向きが指定されたマグカップを作ってください。

本体:
- 外径 80mm、内径 70mm(肉厚 5mm)、高さ 90mm の円筒形マグ
- 底面の厚みは 6mm
- 内側は飲み物を入れられるよう中空

取手(handle):
- マグの **+X 軸方向の側面のみ** に付ける(他の方向には付けない)
- 取手は D 字形状(外側が半円、本体側が直線)で、本体外周にしっかり接続する
- 取手の内側の空間は高さ 30mm × 幅 25mm(指 3 本ぐらい入る)
- 取手はマグの高さ方向の中央付近に付ける
- 本体と取手は確実に union され、マニフォールド(隙間や宙吊りなし)を保つ

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