Production of a program for controlling laser pulses spatially and over time so as to produce a target shape in an article to be worked comprises: (A) setting up a grid in which the points have a predetermined spacing (B) choosing those points which correspond to the target shape and (C) arranging that the laser pulses are positioned according to the chosen points.