Added basic mesh creation code.