Animals with Pipes

Attached you can see the model I drew manually. How can I do this automatically?