Text this: Numerical Algorithm for Laser Treatment of Powder Layer with Variable Thickness