Disclosed is a medical implant made at least in part of a polymer. Said medicalimplant A) is made only in part of one or more biocompatible polymers, at leastsome of which contain a dye, have a reflective coating, or have their own color;or B) is entirely made of one or more biocompatible polymers, only some of whichcontain a dye, have a reflective coating, or have their own color; or C) comprisesone or more biocompatible polymers which are coated at least in part with a dyefilm or a reflective layer; or D) at least some of the polymer has a coating whichcan absorb corresponding dyes when entering in contact with dye-containingbody fluids, such that E) the colored or dye-containing polymers (A) or the polymerlayers bordering the reflective (A) or dye-absorbent (D) coatings or coatingscomposed of a dye film can be heated and softened using electromagnetic radiationwhile the remaining parts of the implant remain solid.