volatage regulation

The more complex solution is to use a 3-phase rectifier, capacitor and step-down switching regulator comprising a mosfet, diode, inductor and control circuitry.

As I have been reading this is what I have been leaning toward. Unfortunately since this is for an power system conversions class complex is what is required.

Thank you all for the help

can someone point me to an example of some switching code for this?