def METHOD_NAME(x_y):
    mesh = OpenMaya.MFnMesh()
    NX = 18
    NY = 10
    width = 60 * NX
    height = 60 * NY
    NSPLIT = 128
    t = thickness = 1.5
    if not x_y:
        i = 0
        for j in range(NY):
            x0 = 0
            y = -height * j / (NY - 1.0) + height
            print y
            for k in range(NSPLIT):
                startx = 0
                endx = width
                x0 = startx + (endx - startx) * float(k) / float(NSPLIT)
                x1 = startx + (endx - startx) * float(k + 1) / float(NSPLIT)
                add_tri(mesh,
                        [(x0, y - t, y), (x1, y - t, y), (x1, y + t, y)],
                        [1, 2, 3])
                add_tri(mesh,
                        [(x0, y - t, y), (x1, y + t, y), (x0, y + t, y)],
                        [0, 1, 2])
    else:
        j = 0
        for i in range(NX):
            y0 = 0
            x = width * i / (NX - 1.0)
            print x
            for k in range(NSPLIT):
                starty = 0
                endy = height
                y0 = starty + (endy - starty) * float(k) / float(NSPLIT)
                y1 = starty + (endy - starty) * float(k + 1) / float(NSPLIT)
                add_tri(mesh,
                        [(x - t, y0, x), (x - t, y1, x), (x + t, y1, x)],
                        [1, 2, 3])
                add_tri(mesh,
                        [(x - t, y0, x), (x + t, y1, x), (x + t, y0, x)],
                        [0, 1, 2])
        print height