Mesh generator and basis creation divided in two different steps