@@ -655,17 +655,18 @@ module fillet_cylinder_mask(r=1.0, fillet=0.25, xtilt=0, ytilt=0)
655655
656656// Module: fillet_hole_mask()
657657// Usage:
658- // fillet_hole_mask(r, fillet, [xtilt], [ytilt]);
658+ // fillet_hole_mask(r|d , fillet, [xtilt], [ytilt]);
659659// Description:
660660// Create a mask that can be used to round the edge of a circular hole.
661661// Difference it from the hole to be filletted. The center of the
662662// mask object should align exactly with the center of the end of the
663663// hole to be filletted.
664664// Arguments:
665- // r = radius of hole to fillet. (Default: 1.0)
666- // fillet = radius of the edge filleting. (Default: 0.25)
667- // xtilt = angle of tilt of end of cylinder in the X direction. (Default: 0)
668- // ytilt = angle of tilt of end of cylinder in the Y direction. (Default: 0)
665+ // r = Radius of hole to fillet.
666+ // d = Diameter of hole to fillet.
667+ // fillet = Radius of the filleting. (Default: 0.25)
668+ // xtilt = Angle of tilt of end of cylinder in the X direction. (Default: 0)
669+ // ytilt = Angle of tilt of end of cylinder in the Y direction. (Default: 0)
669670// overage = The extra thickness of the mask. Default: `0.1`.
670671// Example:
671672// difference() {
@@ -675,8 +676,9 @@ module fillet_cylinder_mask(r=1.0, fillet=0.25, xtilt=0, ytilt=0)
675676// }
676677// Example:
677678// fillet_hole_mask(r=40, fillet=20, $fa=2, $fs=2);
678- module fillet_hole_mask(r=1.0 , fillet=0.25, overage=0.1, xtilt=0, ytilt=0)
679+ module fillet_hole_mask(r=undef, d=undef , fillet=0.25, overage=0.1, xtilt=0, ytilt=0)
679680{
681+ r = get_radius(r= r, d= d, dflt= 1 );
680682 skew_xz(za= xtilt) {
681683 skew_yz(za= ytilt) {
682684 rotate_extrude(convexity= 4 ) {
0 commit comments