25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
237B

  1. radius = 5;
  2. depth = 2;
  3. diff_h = (pow(radius,2)/depth - depth)/2;
  4. diff_radius = (pow(radius,2)/depth - depth)/2 + depth;
  5. difference(){
  6. translate([0,0,0])
  7. cylinder(r=radius,h=depth);
  8. translate([0,0,diff_radius])
  9. sphere(r=diff_radius);
  10. }