In accordance with an embodiment of the present invention, attractive
haptic objects are associated with a target region for performing a
medical procedure and repulsive haptic objects are associated with
anatomical features to be avoided during the medical procedure. A surgeon
may perform surgical planning by moving the haptic device around. The
surgeon moves the haptic device until a pose is found where haptic cues
from the attractive haptic objects are active indicating that a medical
device if attached to the haptic device would reach the target region,
and haptic cues from the repulsive haptic objects are inactive indicating
that the medical device would not penetrate any of the anatomical
features to be avoided. During the planning process a virtual tool may be
displayed on a display device to indicate the position and/or movement of
the medical device if the medical device had been coupled to the haptic
device.