This paper presents a method to optimize and simplify the electrode profile of a piezoelectric modal sensor. At the same time that the electrode profile is optimized to maximize the charge, a null-polarity phase is introduced. This gap-phase is modeled using the normalized norm of the spatial gradient of the polarity profile along with a two-step filtering and projection technique. High-order vibration modes generate a complex polarization profile that makes the manufacturing process difficult. The novelty of the proposed method is the addition of a constraint on the length of the interface in the topology optimization problem. This constraint simplifies the optimal designs and facilitates the fabrication process. Several examples show the simplified electrode profile that maximizes the electrical charge produced by a vibration mode, while reducing the number of different polarization regions by means of the gap-length constraint.