Control Of Thermal Distribution In Additive Manufacturing