Development of software for 3D welding and milling and its application