Customizable version of a check-source holder / detector cap I made for using with our HPGe detectors. Note that no extra tolerances are hard coded in - you should add the necessary amounts for your printer. Don't forget to consider thermal expansion (contraction) of your material if utilizing for an HPGe or similarly chilled detector.
Parameters (mm): $fn = resolution cap_height = total depth of cap inner_diameter face_thickness standoff_width = width of ring around the inner perimeter - meant to keep the source from contacting the fragile window on some detectors. standoff_depth = depth of standoff (see above item). sidewall_thickness; source_diameter = diameter of hole in which the button source presses into source_mount_depth = depth of hole the source presses into through_hole_diameter = diameter of hole going through the face - meant for being able to pop the source out. breather_holes = True / False - small holes for equalizing air pressure, to help protect the detector window when mounting and removing the cap. breather_diameter = diameter of above holes - if larger than the standoff depth, these will cut into the inner face surface.