An embodiment of the invention provides a method of producing a surgical template comprising the steps of: obtaining a set of 3D surface data, the 3D surface data representing a surface of a patient's oral situation, obtaining a support structure model describing a surgical template configured to fit to a portion of the surface of the patient's oral situation, obtaining planned bore position data, the planned implant position data describing the longitudinal axes of a set of one or more planned implant bore holes relative to the 3D surface data, automatically modifying the support structure model to provide support material for guide holes in the support structure model corresponding to the one or more planned implant bore holes, producing the dental splint in dependence on the modified support structure model.