vibe-openscad

bare/gemini-3.6-flash / tier-2-offset-handle-mug

success tier 2

bare (gemini 3.6 flash)

render
bare render of tier-2-offset-handle-mug
loading STL…
success 27.3s · 232/367t · $0.0016
SCAD (38 lines)
$fn = 100;

// マグカップのサイズ情報
mug_height = 90;
outer_radius = 40; // 外径 80mm
inner_radius = 35; // 内径 70mm
bottom_thickness = 6;

// 取手のサイズ情報
handle_y_width = 12; // 取手のY方向の厚み

difference() {
    // 本体外観と取手を統合
    union() {
        // マグカップ外形本体
        cylinder(h = mug_height, r = outer_radius);

        // 取手 (+X 軸方向)
        rotate([90, 0, 0])
        linear_extrude(height = handle_y_width, center = true)
        difference() {
            // 取手外形 (D字型)
            hull() {
                translate([35, 20]) square([15, 50]);
                translate([50, 45]) circle(r = 25);
            }
            // 取手内側の穴 (高さ30mm × 幅25mm)
            hull() {
                translate([40, 30]) square([10, 30]);
                translate([50, 45]) circle(r = 15);
            }
        }
    }

    // マグカップ内側のくり抜き
    translate([0, 0, bottom_thickness])
        cylinder(h = mug_height - bottom_thickness + 1, r = inner_radius);
}
パラメータ (5) —
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare_gemini-3.6-flash-c7669c77695a-2026-09-05T10-39-05-490Z
matrixIdbare/gemini-3.6-flash
signaturec7669c77695ac83d…
providergoogle
modelgemini-3.6-flash
harnessbare
statussuccess
duration27.26s (wallclock: load + prompt eval + generation + network)
tokens232 in / 367 out
wallclock tok/s13.5 tok/s (end-to-end)
cost$0.0016
createdAt2026-09-05T10:39:05.491Z
gitCommit6126da97a014
openscadOpenSCAD version 2026.04.27

prompt

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

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

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

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