bare/gemini-3.7-flash / tier-1-mug
success tier 1
bare (gemini 3.7 flash)
render
$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 で再レンダリング
prompt
OpenSCAD で、外径 80mm、高さ 100mm、肉厚 4mm のマグカップを作ってください。 底面の厚みは 6mm とし、内側はくり抜いて飲み物を入れられる形状にしてください。 さらに、側面には外径方向に飛び出す半径 12mm の取手(リング状の取手)を付けてください。 取手はカップの中心高さあたりに付け、外周から十分にはみ出して指を通せる形にしてください。 完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。