SCAD (48 lines)
$fn = 128;
outer_diameter = 80;
cup_height = 100;
wall_thickness = 4;
bottom_thickness = 6;
handle_outer_radius = 12;
handle_inner_radius = 9;
handle_depth = 8;
handle_overlap = 3;
outer_radius = outer_diameter / 2;
inner_radius = outer_radius - wall_thickness;
handle_center_x =
outer_radius + handle_outer_radius - handle_overlap;
handle_center_z = cup_height / 2;
union() {
// 上面を開口し、底面を6mm残したカップ本体
difference() {
cylinder(h = cup_height, r = outer_radius);
translate([0, 0, bottom_thickness])
cylinder(
h = cup_height - bottom_thickness + 1,
r = inner_radius
);
}
// XZ平面に配置したリング状の取手
translate([handle_center_x, 0, handle_center_z])
rotate([90, 0, 0])
difference() {
cylinder(
h = handle_depth,
r = handle_outer_radius,
center = true
);
cylinder(
h = handle_depth + 2,
r = handle_inner_radius,
center = true
);
}
}