Restricted three-dimensional stellar wind modeling. I - Polytropic case