3D-printing objects from text prompts