bare-max/claude-opus-4-8 / tier-1-mug
success tier 1
bare (claude opus 4.8)
render
$fn = 100;
// パラメータ
outer_diameter = 80;
height = 100;
wall = 4;
bottom_thickness = 6;
outer_radius = outer_diameter / 2;
inner_radius = outer_radius - wall;
inner_height = height - bottom_thickness;
// 取手パラメータ
handle_minor_radius = 6; // チューブの太さ
handle_major_radius = 12; // リングの半径(指を通す穴の半径)
handle_center_z = height / 2;
module mug_body() {
difference() {
// 外形(カップ本体)
cylinder(h = height, r = outer_radius);
// 内側くり抜き
translate([0, 0, bottom_thickness])
cylinder(h = inner_height + 1, r = inner_radius);
}
}
module handle() {
// リング状の取手をカップ側面に配置
// トーラスをY-Z平面に立てて、外周からはみ出す位置へ
translate([outer_radius + handle_major_radius - wall, 0, handle_center_z])
rotate([90, 0, 0])
rotate_extrude(convexity = 4)
translate([handle_major_radius, 0, 0])
circle(r = handle_minor_radius);
}
union() {
mug_body();
handle();
} パラメータ (6) —
スライダを動かすと openscad-wasm で再レンダリング
prompt
OpenSCAD で、外径 80mm、高さ 100mm、肉厚 4mm のマグカップを作ってください。 底面の厚みは 6mm とし、内側はくり抜いて飲み物を入れられる形状にしてください。 さらに、側面には外径方向に飛び出す半径 12mm の取手(リング状の取手)を付けてください。 取手はカップの中心高さあたりに付け、外周から十分にはみ出して指を通せる形にしてください。 完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。