iter-png-1/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;
// 取手(リング状)の寸法
handle_radius = 12; // 取手のリング半径(中心からチューブ中心まで)
handle_thickness = 4; // 取手の肉厚(チューブの半径)
handle_overlap = 2; // カップ外壁との重なり(接合強度を保ちつつ、内側に突き出さないためのマージン)
// 取手を適切な位置(カップ外壁に少し食い込み、内壁には突き抜けない位置)に配置
handle_x = cup_outer_radius - handle_overlap + 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);
} パラメータ (7) —
スライダを動かすと openscad-wasm で再レンダリング
iteration chain
各 iteration step は独立した benchmark run です。parentRunId で前段にリンクします。
← parent
bare/gemini-3.5-flash success → children (1)
prompt
OpenSCAD で、外径 80mm、高さ 100mm、肉厚 4mm のマグカップを作ってください。 底面の厚みは 6mm とし、内側はくり抜いて飲み物を入れられる形状にしてください。 さらに、側面には外径方向に飛び出す半径 12mm の取手(リング状の取手)を付けてください。 取手はカップの中心高さあたりに付け、外周から十分にはみ出して指を通せる形にしてください。 完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。