Rays are a type of wave that lets doctors to view inside your body. They work by passing through soft tissues, but are hindered by structure and denser materials. This creates a view which shows differences in density, https://youtu.be/kBWJ5hc2_Cc?si=_0rtNgTQ8lU6OJCW