Guided surgery and 3D printing