Path planning for robotic visual inspection based on the object shape