vibe-openscad

bare-max/gpt-6.1-sol / tier-2-offset-handle-mug

success tier 2

bare (gpt 6.1 sol)

render
bare render of tier-2-offset-handle-mug
loading STL…
success 163.6s · 273/6641t · $0.0670
SCAD (76 lines)
$fn = 160;

outer_diameter = 80;
inner_diameter = 70;
mug_height = 90;
bottom_thickness = 6;

handle_open_width = 25;
handle_open_height = 30;
handle_wall = 5;
handle_depth = 10;
handle_overlap = 3;

handle_root_x = outer_diameter / 2 - handle_overlap;
handle_center_z = mug_height / 2;

epsilon = 0.1;

// 本体側が直線、外側の円弧が半円の D 字断面。
module d_profile(width, height) {
    radius = height / 2;
    straight_length = width - radius;

    intersection() {
        union() {
            translate([0, -radius])
                square([straight_length, height]);

            translate([straight_length, 0])
                circle(r = radius);
        }

        translate([0, -radius])
            square([width, height]);
    }
}

module mug_body() {
    difference() {
        cylinder(d = outer_diameter, h = mug_height);

        translate([0, 0, bottom_thickness])
            cylinder(
                d = inner_diameter,
                h = mug_height - bottom_thickness + epsilon
            );
    }
}

module mug_handle() {
    // XZ 平面に配置し、+X 側の外壁へ 3mm 食い込ませる。
    translate([handle_root_x, 0, handle_center_z])
        rotate([90, 0, 0])
            linear_extrude(
                height = handle_depth,
                center = true,
                convexity = 10
            )
                difference() {
                    d_profile(
                        handle_open_width + 2 * handle_wall,
                        handle_open_height + 2 * handle_wall
                    );

                    translate([handle_wall, 0])
                        d_profile(
                            handle_open_width,
                            handle_open_height
                        );
                }
}

union() {
    mug_body();
    mug_handle();
}
パラメータ (10) —
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-max_gpt-6.1-sol-0d155a7ad1df-2026-10-06T19-35-54-861Z
matrixIdbare-max/gpt-6.1-sol
signature0d155a7ad1df8120…
provideropenai
modelgpt-6.1-sol
harnessbare
statussuccess
duration163.58s (wallclock: load + prompt eval + generation + network)
tokens273 in / 6641 out
wallclock tok/s40.6 tok/s (end-to-end)
cost$0.0670
createdAt2026-10-06T19:35:54.861Z
gitCommit8cb022fa99b9
openscadOpenSCAD version 2026.09.23

prompt

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

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

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

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