The method involves recording three-dimensional dataset which represents bone structures. The recorded dataset is segmented (22) into segments in which each segment represents bone structure and exhibit relative position in dataset. The virtual relative position of segments is changed, such that virtual relative position of segments matches actual relative position of bone structures. The virtual relative position of the segments is analyzed so as to determine (26) whether virtual relative position of segments matches target position of bone structures. Independent claims are included for the following: (1) storage medium storing program including instructions for verifying relative position of two bone structures and (2) device for verifying relative position of two bone structures.