vibe-openscad

bare-xhigh/gpt-5.6-luna / tier-2-offset-handle-mug

success tier 2

bare (gpt 5.6 luna)

render
bare render of tier-2-offset-handle-mug
loading STL…
success 155.6s · 273/12640t · $0.0152
SCAD (32 lines)
$fn = 128;

module mug_body() {
    difference() {
        cylinder(h = 90, r = 40);
        translate([0, 0, 6])
            cylinder(h = 90, r = 35);
    }
}

module handle() {
    rotate([90, 0, 0])
        linear_extrude(height = 10, center = true, convexity = 10)
            difference() {
                polygon(points = concat(
                    [[35, 25]],
                    [for (a = [-90:2:90])
                        [50 + 20 * cos(a), 45 + 20 * sin(a)]],
                    [[35, 65]]
                ));

                polygon(points = [
                    for (a = [-90:2:90])
                        [40 + 25 * cos(a), 45 + 15 * sin(a)]
                ]);
            }
}

union() {
    mug_body();
    handle();
}

meta

runIdbare-xhigh_gpt-5.6-luna-af0baa8af0fb-2026-09-05T10-18-08-967Z
matrixIdbare-xhigh/gpt-5.6-luna
signatureaf0baa8af0fb5944…
provideropenai
modelgpt-5.6-luna
harnessbare
statussuccess
duration155.64s (wallclock: load + prompt eval + generation + network)
tokens273 in / 12640 out
wallclock tok/s81.2 tok/s (end-to-end)
cost$0.0152
createdAt2026-09-05T10:18:08.967Z
gitCommitd69c2b8ad709
openscadOpenSCAD version 2026.04.27

prompt

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

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

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

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