Deep learning algorithms for computational mechanics on irregular geometries