vibe-openscad

bare/gemini-3.7-flash / tier-1-mug

success tier 1

bare (gemini 3.7 flash)

render
bare render of tier-1-mug
loading STL…
success 7.1s · 142/329t · $0.0013
SCAD (31 lines)
$fn = 100;

// マグカップのパラメータ
outer_radius = 80 / 2;     // 外半径 40mm (外径 80mm)
height = 100;              // 高さ 100mm
wall_thickness = 4;        // 肉厚 4mm
bottom_thickness = 6;      // 底面の厚み 6mm
inner_radius = outer_radius - wall_thickness; // 内半径 36mm

// 取手のパラメータ
handle_ring_radius = 20;   // 取手リングの中心半径
handle_tube_radius = 4;    // 取手の断面半径

union() {
    // カップ本体
    difference() {
        // 外形
        cylinder(r = outer_radius, h = height);
        
        // 内側のくり抜き
        translate([0, 0, bottom_thickness])
            cylinder(r = inner_radius, h = height - bottom_thickness + 1);
    }
    
    // 取手 (側面にリング状に配置)
    translate([outer_radius, 0, height / 2])
        rotate([90, 0, 0])
        rotate_extrude($fn = 60)
            translate([handle_ring_radius, 0, 0])
                circle(r = handle_tube_radius, $fn = 40);
}
パラメータ (5) —
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare_gemini-3.7-flash-4f9720572b9a-2026-09-05T10-25-46-797Z
matrixIdbare/gemini-3.7-flash
signature4f9720572b9a4b7f…
providergoogle
modelgemini-3.7-flash
harnessbare
statussuccess
duration7.14s (wallclock: load + prompt eval + generation + network)
tokens142 in / 329 out
wallclock tok/s46.1 tok/s (end-to-end)
cost$0.0013
createdAt2026-09-05T10:25:46.797Z
gitCommitc3c9301f89b1
openscadOpenSCAD version 2026.04.27

prompt

OpenSCAD で、外径 80mm、高さ 100mm、肉厚 4mm のマグカップを作ってください。
底面の厚みは 6mm とし、内側はくり抜いて飲み物を入れられる形状にしてください。
さらに、側面には外径方向に飛び出す半径 12mm の取手(リング状の取手)を付けてください。
取手はカップの中心高さあたりに付け、外周から十分にはみ出して指を通せる形にしてください。

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