1. A method of determining a location of an orthodontic fastener, comprising: setting on a patient's medical image, by a processor within a computer, a first location on a tooth and a second location on alveolar bone; generating, by the processor within the computer, a first rectilinear line including two points, that is, the set first and second locations; computing, by the processor within the computer, bone density values at locations of the alveolar bone on the generated first rectilinear line using the medical image; and determining, by the processor within the computer, a location of the alveolar bone on the first rectilinear line at which a first fastener is to be inserted based on the computed bone density values.