The invention concerns a 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 contains, based on the total weight of the photocurable resin composition, (i) from 90 to 99.9% by weight of a radical polymerizable organic compound (A) selected from radical polymerizable monomers, oligomers, pre-polymers and mixtures thereof; and (ii) from 0.1 to 10% by weight of a photosensitive radical polymerization initiator (B). Said radical polymerizable organic compound (A) comprises, based on the weight of the radical polymerizable organic compound (A), from 0.5 to 20% by weight of a polyrotaxane compound comprising a polymer chain selected from polyethylene glycol (PEG), polypropylene glycol (PPG), polyethylene glycol-polypropylene glycol (PEG-PPG) block copolymer or polydimethylsiloxane (PDMS), onto which the cyclodextrin ring(s) is/are slipped and wherein the cyclodextrin is derivatized with at least a radical polymerizable group. The invention also concerns a relative liquid photocurable resin composition and articles produced thereby.