vibe-openscad

bare-high/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 39.1s · 273/4119t · $0.0050
SCAD (37 lines)
$fn = 128;

module d_shape(x0, rect_width, radius) {
    union() {
        translate([x0, -radius])
            square([rect_width, 2 * radius]);

        translate([x0 + rect_width, 0])
            circle(r = radius);
    }
}

module handle_profile() {
    difference() {
        // 外形: 幅40mm、高さ40mmのD字形
        d_shape(35, 20, 20);

        // 内側空間: 幅25mm、高さ30mmのD字形
        d_shape(40, 10, 15);
    }
}

union() {
    // 本体: 外径80mm、内径70mm、高さ90mm、底厚6mm
    difference() {
        cylinder(r = 40, h = 90);

        translate([0, 0, 6])
            cylinder(r = 35, h = 90);
    }

    // 取手: +X方向のみ、中央高さに配置
    translate([0, 6, 45])
        rotate([90, 0, 0])
            linear_extrude(height = 12)
                handle_profile();
}

meta

runIdbare-high_gpt-5.6-luna-d787877b24e9-2026-09-05T10-15-29-484Z
matrixIdbare-high/gpt-5.6-luna
signatured787877b24e97140…
provideropenai
modelgpt-5.6-luna
harnessbare
statussuccess
duration39.14s (wallclock: load + prompt eval + generation + network)
tokens273 in / 4119 out
wallclock tok/s105.2 tok/s (end-to-end)
cost$0.0050
createdAt2026-09-05T10:15:29.485Z
gitCommitd69c2b8ad709
openscadOpenSCAD version 2026.04.27

prompt

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

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

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

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