auto cube / auto cylinder something like... (seems 5MB+ gif is too much for forum) (linked image)