Method for producing a three-dimensional object, in particular an artificial tooth, by stereolithography wherein a liquid photocurable resin composition is cured by light, said photocurable resin composition containing: - from 90 to 99.9% by weight, based on the total weight of the photocurable resin composition, of a radical polymerizable organic compound selected from radical polymerizable monomers, oligomers, pre-polymers and mixtures thereof; - from 0.1 to 10% by weight, based on the total weight of the photocurable resin composition, of a photosensitive radical polymerization initiator; - wherein said radical polymerizable organic compound comprises, based on the weight of the radical polymerizable organic compound, from 0.5 to 20% by weight of a polyrotaxane compound having the following general formula: wherein - Z is a bulky capping group, preferably selected from adamantane and its derivatives, 2,4-dinitrophenyl, or cyclodextrin and its derivatives; - the dotted line - - - - - - is a polymer chain selected from the group consisting of polyethylene glycol, polypropylene glycol, polyethylene glycol - polypropylene glycol (PEG-PPG) block copolymer or polydimethylsiloxane (PDMS), onto which the cyclodextrin ring(s) is/are slipped; - m is an integer and independently represents the number of glucose units in the cyclodextrin ring, preferably m = 6, 7 or 8; - n is an integer and represents the number of cyclodextrin rings; - X is independently H, or a radical polymerizable group, such as a methacryloyl-containing group or an acryloyl-containing group, with the condition that at least one X is a radical polymerizable group. - from 90 to 99.9% by weight, based on the total weight of the photocurable resin composition, of a radical polymerizable organic compound selected from radical polymerizable monomers, oligomers, pre-polymers and mixtures thereof; - from 0.1 to 10% by weight, based on the total weight of the photocurable resin composition, of a photosensitive radical polymerization initiator; - wherein said radical polymerizable organic compound comprises, based on the weight of the radical polymerizable organic compound, from 0.5 to 20% by weight of a polyrotaxane compound having the following general formula: wherein - Z is a bulky capping group, preferably selected from adamantane and its derivatives, 2,4-dinitrophenyl, or cyclodextrin and its derivatives; - the dotted line - - - - - - is a polymer chain selected from the group consisting of polyethylene glycol, polypropylene glycol, polyethylene glycol - polypropylene glycol (PEG-PPG) block copolymer or polydimethylsiloxane (PDMS), onto which the cyclodextrin ring(s) is/are slipped; - m is an integer and independently represents the number of glucose units in the cyclodextrin ring, preferably m = 6, 7 or 8; - n is an integer and represents the number of cyclodextrin rings; - X is independently H, or a radical polymerizable group, such as a methacryloyl-containing group or an acryloyl-containing group, with the condition that at least one X is a radical polymerizable group. - Z is a bulky capping group, preferably selected from adamantane and its derivatives, 2,4-dinitrophenyl, or cyclodextrin and its derivatives; - the dotted line - - - - - - is a polymer chain selected from the group consisting of polyethylene glycol, polypropylene glycol, polyethylene glycol - polypropylene glycol (PEG-PPG) block copolymer or polydimethylsiloxane (PDMS), onto which the cyclodextrin ring(s) is/are slipped; - m is an integer and independently represents the number of glucose units in the cyclodextrin ring, preferably m = 6, 7 or 8; - n is an integer and represents the number of cyclodextrin rings; - X is independently H, or a radical polymerizable group, such as a methacryloyl-containing group or an acryloyl-containing group, with the condition that at least one X is a radical polymerizable group.