The nuclear droplet model for arbitrary shapes