from sfepy.base.base import *
from sfepy.base.progressbar import MyBar
from sfepy.linalg import cycle
from sfepy.fem import Mesh

def gen_block_mesh(dims, shape, centre, name='block'):
    """Generate a 2D or 3D block mesh. The dimension is determined by the
    lenght of the shape argument. 

    Parameters
    ----------