Computer-assisted operative procedure: from preoperative planning to simulation