vibe-openscad

bare-think-off/gemini-3.1-flash-lite / tier-2-offset-handle-mug

success tier 2

bare (gemini 3.1 flash-lite)

render
bare render of tier-2-offset-handle-mug
loading STL…
success 3.2s · 232/496t · $0.0002
SCAD (52 lines)
// マグカップのパラメータ
outer_d = 80;
inner_d = 70;
height = 90;
wall = 5;
bottom = 6;

handle_h = 30;
handle_w = 25;
handle_thickness = 10;

// マグ本体の作成
module mug_body() {
    difference() {
        // 外形
        cylinder(d = outer_d, h = height, $fn = 100);
        // 内側のくり抜き
        translate([0, 0, bottom])
            cylinder(d = inner_d, h = height, $fn = 100);
    }
}

// 取手の作成
module handle() {
    translate([outer_d / 2 - 1, 0, height / 2]) {
        rotate([0, 90, 0]) {
            difference() {
                // 取手の外形 (D字型)
                union() {
                    cylinder(d = handle_h + handle_thickness * 2, h = handle_thickness, $fn = 50);
                    translate([0, -(handle_h + handle_thickness * 2) / 2, 0])
                        cube([ (handle_h + handle_thickness * 2) / 2, handle_h + handle_thickness * 2, handle_thickness]);
                }
                // 取手の内側の空洞
                translate([0, 0, -1])
                    linear_extrude(handle_thickness + 2)
                        hull() {
                            translate([0, handle_h / 2]) circle(d = handle_thickness);
                            translate([0, -handle_h / 2]) circle(d = handle_thickness);
                            translate([handle_w, handle_h / 2]) circle(d = handle_thickness);
                            translate([handle_w, -handle_h / 2]) circle(d = handle_thickness);
                        }
            }
        }
    }
}

// 本体と取手の結合
union() {
    mug_body();
    handle();
}
パラメータ (8)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-think-off_gemini-3.1-flash-lite-e4a462506b93-2026-04-28T18-47-20-275Z
matrixIdbare-think-off/gemini-3.1-flash-lite
signaturee4a462506b935e93…
providergoogle
modelgemini-3.1-flash-lite-preview
harnessbare
statussuccess
duration3.21s (wallclock: load + prompt eval + generation + network)
tokens232 in / 496 out
wallclock tok/s154.6 tok/s (end-to-end)
cost$0.0002
createdAt2026-04-28T18:47:20.275Z
gitCommit781e6c683dda
openscadOpenSCAD version 2026.04.27

prompt

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

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

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

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