A computer program, connected to a 3D printer comprising computer readable instructions which, when executed by a processor, cause the processor to execute the step of printing between 2 and 25 successive layers of a composition by 3D printing, wherein the composition in the form of bioink comprises type I collagen or a mixture of type, type V and/or type VI collagen at a concentration between 0.2 and 80 mg/ml, at a pH between 3.4 and 9 and wherein the composition optionally comprises proteoglycans of corneal origin selected from the group consisting of chondroitin sulfate, dermatan sulfate and keratan sulfate at a concentration between 1 and 10 μg/ml;
- and wherein the 3D printing is characterized by presenting an accumulated height of between 400 and 6000 μm, and a variation in height per layer of at least ten times the final thickness per layer of the desired artificial corneal construct, wherein the variation in height per layer is understood as the distance at which one layer is produced over the previous layer;
- and producing each layer to obtain collagen fibrils having a direction with an angle of 70° to 110° with respect to the direction of the collagen fibrils of the layer above, keeping the bioink at a temperature that does not gel.