iter-png-3/gemini-3.5-flash / tier-1-mug
success tier 1
bare (gemini 3.5 flash)
render
$fn = 100;
// マグカップの寸法
cup_height = 100;
cup_outer_radius = 40; // 外径 80mm のため、半径は 40mm
cup_wall_thickness = 4;
cup_bottom_thickness = 6;
// 取手(リング状)の寸法
// 「半径12mmの取手」に基づき、リングの中心半径(torus radius)を 12mm とします。
handle_radius = 12;
handle_thickness = 3.5; // 指を通しやすく強度を保てる肉厚(断面半径)
// 取手をカップ外壁に適切に結合(内壁に突き出さず、しっかり固定される位置)
// カップ外壁は x = 40、内壁は x = 36。結合の食い込みを 2mm とするため、取手の最内端を x = 38 とします。
// 取手の最内端は handle_x - handle_radius - handle_thickness
handle_x = 38 + handle_radius + handle_thickness;
difference() {
union() {
// マグカップ本体(外側)
cylinder(h=cup_height, r=cup_outer_radius);
// 取手(中心の高さに配置)
translate([handle_x, 0, cup_height / 2])
rotate([90, 0, 0])
rotate_extrude()
translate([handle_radius, 0, 0])
circle(r=handle_thickness);
}
// 内側のくり抜き
translate([0, 0, cup_bottom_thickness])
cylinder(h=cup_height - cup_bottom_thickness + 1, r=cup_outer_radius - cup_wall_thickness);
} パラメータ (6) —
スライダを動かすと openscad-wasm で再レンダリング
iteration chain
各 iteration step は独立した benchmark run です。parentRunId で前段にリンクします。
← parent
iter-png-2/gemini-3.5-flash success prompt
OpenSCAD で、外径 80mm、高さ 100mm、肉厚 4mm のマグカップを作ってください。 底面の厚みは 6mm とし、内側はくり抜いて飲み物を入れられる形状にしてください。 さらに、側面には外径方向に飛び出す半径 12mm の取手(リング状の取手)を付けてください。 取手はカップの中心高さあたりに付け、外周から十分にはみ出して指を通せる形にしてください。 完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。