Treatment planning involves defining target volumes and organs at risk on imaging scans. Virtual simulation uses CT scans to delineate structures and localize the treatment isocenter. This allows improved volume definition compared to conventional simulation. Treatment planning optimization selects parameters like beam number, weighting, and modifiers to best conform the dose distribution to planning objectives while minimizing dose to organs at risk. Beam modifiers like wedges and compensators can be used to modify the dose distribution for target coverage and organ sparing.