A new slicing method of reverse engineering based on the principle of refraction and reflection