A contour gauge: press it against an irregular profile and the pins record the shape, so you can scribe a panel to a wall that isn't straight or a floor that isn't flat. The honest way to fit against an existing surface rather than trimming repeatedly.
Compare products and choose the right one for your work.