Some plastics like epoxy, TPU, PMMA and silicone can be used to cast by gravity. Most often a silicone mold is made which itself is made from a master model SLA 3D print. Casting directly into a 3d printed mold is also possbile depending on the geometry required.