For irregularly shaped fireplace openings, tracing the shape of the opening onto the foam board while it's folded can help ensure a snug fit. For square or rectangular openings, using a tape measure will ensure accurate measurements.