ベースの形状は下の記事を完全にパクり 参考にしました ◦ https://qiita.com/zk_phi/items/ab99315ebaef6 6e84aa0 $fs = 0.1; stem_outer_size = 5.5; stem_cross_length = 4.25; stem_cross_h = 1.35; stem_cross_v = 1.35; difference() { cylinder(d = stem_outer_size, h = 6); translate([- stem_cross_h / 2, - stem_cross_length / 2, 0]) cube([stem_cross_h, stem_cross_length, 15]); translate([- stem_cross_length / 2, - stem_cross_v / 2, 0]) cube([stem_cross_length, stem_cross_v, 15]); } module keycap_outer_shape (key_bottom_size, key_top_size, key_top_height) { hull () { translate([0, 0, key_top_height]) cube([key_top_size, key_top_size, 0.01], center = true); cube([key_bottom_size, key_bottom_size, 0.01], center = true); } } difference() { difference() { keycap_outer_shape(18, 12.5, 7.5); keycap_outer_shape(15, 9.5, 5.5); } translate([0, 0, -2.5]) difference() { sphere(20); sphere(12.5); } translate([0, 0, 67]) sphere(60); }