This paper deals with the application of three-dimensional fuzzy logic to DC voltage regulation in active power filters exploration, the benefits of this approach, and examples of its application on power quality improvement of PV smart grid system installation. APF are important components of power systems that are used to minimize harmonic distortion and improve power quality. DC voltage regulation is a critical component of active power filters, and traditional control systems have limitations in their ability to account for complex and nuanced conditions, leading to less accurate control and less efficient use of resources. Three-dimensional fuzzy logic is an advanced approach to control systems that allows for more precise and nuanced evaluations of conditions, compering to classical fuzzy logic or the type 2, leading to more accurate control and more efficient use of resources, Three-dimensional fuzzy logic algorithm will be proposed and programed under MATLAB Simulink to control the APF and simulation results are represented and analysed.