def geo_mesh(element):
if len(element.vdims) > <NUM_LIT:1>:<EOL><INDENT>xs, ys = (element.dimension_values(i, False, False)<EOL>for i in range(<NUM_LIT:2>))<EOL>zs = np.dstack([element.dimension_values(i, False, False)<EOL>for i in range(<NUM_LIT:2>, <NUM_LIT:2>+len(element.vdims))])<EOL><DEDENT>else:<EOL><INDENT>xs, ys, zs = (element.dimension_values(i, False, False)<EOL>for i in range(<NUM_LIT:3>))<EOL><DEDENT>lon0, lon1 = element.range(<NUM_LIT:0>)<EOL>if isinstance(element.crs, ccrs._CylindricalProjection) and (lon1 - lon0) == <NUM_LIT>:<EOL><INDENT>xs = np.append(xs, xs[<NUM_LIT:0>:<NUM_LIT:1>] + <NUM_LIT>, axis=<NUM_LIT:0>)<EOL>zs = np.ma.concatenate([zs, zs[:, <NUM_LIT:0>:<NUM_LIT:1>]], axis=<NUM_LIT:1>)<EOL><DEDENT>return xs, ys, zs<EOL>
Get mesh data from a 2D Element ensuring that if the data is
on a cylindrical coordinate system and wraps globally that data
actually wraps around.