A numerical investigation of laminar flow past nonspherical solids and droplets