iter-png-1/gpt-5-nano / tier-1-mug
success tier 1
bare (gpt 5 nano)
render
$fn = 100;
outer_radius = 40; // 外径 80 mm -> 半径 40 mm
wall_thickness = 4;
bottom_thickness = 6;
height = 100;
inner_radius = outer_radius - wall_thickness;
cavity_height = height - bottom_thickness;
// マグカップの外形と内腔を作成
module mug_shell() {
difference() {
// 外形(実体)
cylinder(h = height, r = outer_radius, center = false);
// 内腔(くり抜き、底の厚みは bottom_thickness)
translate([0, 0, bottom_thickness])
cylinder(h = cavity_height, r = inner_radius, center = false);
}
}
// トーラス(輪っか)を作成するヘルパー
module torus(R, r) {
rotate_extrude(angle = 360)
translate([R, 0, 0])
circle(r = r);
}
// 取手(リング状のリング)を側面に取り付ける
// 外周面に接するよう、半径の組み合わせを R + r = 12 に設定
ring_major = 8; // major radius of torus
ring_tube = 4; // minor radius (tube radius)
ring_center_x = outer_radius; // 外周面に接するよう、中心位置を設定
module ring_handle() {
translate([ring_center_x, 0, height/2])
rotate([0, 90, 0]) // リングを側面の平面に配置
torus(ring_major, ring_tube);
}
union() {
mug_shell();
ring_handle();
} パラメータ (5) —
スライダを動かすと openscad-wasm で再レンダリング
iteration chain
各 iteration step は独立した benchmark run です。parentRunId で前段にリンクします。
← parent
bare/gpt-5-nano success → children (1)
prompt
OpenSCAD で、外径 80mm、高さ 100mm、肉厚 4mm のマグカップを作ってください。 底面の厚みは 6mm とし、内側はくり抜いて飲み物を入れられる形状にしてください。 さらに、側面には外径方向に飛び出す半径 12mm の取手(リング状の取手)を付けてください。 取手はカップの中心高さあたりに付け、外周から十分にはみ出して指を通せる形にしてください。 完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。