https://github.com/csherratt/genmesh/pull/9 renamed fail! to panic! Fixing code to accomodate