1. An integrated surgical system, comprising: a device for scanning a portion of a patient's body and generating a plurality of two-dimensional images of said portion; and a processor operatively connected to the device for receiving two-dimensional images therefrom, the processor configured to: generate a three-dimensional image of the portion of the patient's body from the received two-dimensional images, display the three-dimensional image, receive input from the user, the input indicating a location of the portion to be machined during surgery and at least one machining property, generate an optimized tool path based at least in part on the input, and transmit said optimized tool path to a surgical machining system.