Sometimes it is impossible to completely avoid bad readings because of the shape of the DUT but it is possible to reduce the number points in a few easy ways.
• Rotate the DUT so that steep edges are facing in the Y+ direction.
• Cover deep holes with non transparent tape.
• Cover shiny parts with non transparent tape.