vibe-openscad

bare-low/claude-fable-5 / tier-2-offset-handle-mug

success tier 2

bare (claude fable 5)

render
bare render of tier-2-offset-handle-mug
loading STL…
success 22.3s · 343/1502t · $0.0785
SCAD (55 lines)
$fn = 120;

// パラメータ
outer_d  = 80;
inner_d  = 70;
height   = 90;
bottom_t = 6;

handle_h = 30;   // 取手内側の高さ
handle_w = 25;   // 取手内側の幅
handle_t = 8;    // 取手の太さ
embed    = 5;    // 本体への食い込み量

// マグ本体
module body() {
    difference() {
        cylinder(d = outer_d, h = height);
        translate([0, 0, bottom_t])
            cylinder(d = inner_d, h = height);
    }
}

// D字形 2D 断面(x=0 が本体外壁位置、+x が外側)
module handle_2d() {
    difference() {
        // 外形 D
        hull() {
            translate([-embed, -(handle_h/2 + handle_t)])
                square([0.1, handle_h + 2*handle_t]);
            translate([handle_w - handle_h/2, 0])
                circle(r = handle_h/2 + handle_t);
        }
        // 内側の空間(壁側まで貫通)
        hull() {
            translate([-embed - 1, -handle_h/2])
                square([0.1, handle_h]);
            translate([handle_w - handle_h/2, 0])
                circle(r = handle_h/2);
        }
    }
}

// 取手(+X 側、高さ中央)
module handle() {
    translate([outer_d/2, 0, height/2])
        rotate([90, 0, 0])
            linear_extrude(height = handle_t, center = true)
                handle_2d();
}

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

meta

runIdbare-low_claude-fable-5-182348a47a62-2026-06-09T18-27-58-191Z
matrixIdbare-low/claude-fable-5
signature182348a47a6207a4…
provideranthropic
modelclaude-fable-5
harnessbare
statussuccess
duration22.34s (wallclock: load + prompt eval + generation + network)
tokens343 in / 1502 out
wallclock tok/s67.2 tok/s (end-to-end)
cost$0.0785
createdAt2026-06-09T18:27:58.191Z
gitCommit2b674f55c19d
openscadOpenSCAD version 2026.04.27

prompt

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

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

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

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