Analysis of Laser Melting and Resolidification Related to Additive Manufacturing