Example #1
0
def numbering(x, y, a, b, theta, z0, z1, text, tool, chairs_pos=[0, 1, 2, 3], \
                chair_numbers=[None, None, None, None]):
    """ x """
    temp = []
    cs = get_corners(x, y, a, b, theta)
    for i, c in enumerate(chairs_pos):
        temp += engrave_num(num=chair_numbers[i], x=cs[c][0], y=cs[c][1],
                            theta=theta, height=text["height"], space=text["space"], tool=tool)

    return temp
Example #2
0
def chairs(x, y, a, b, theta, r, z0, z1, tool, chairs_pos=[0, 1, 2, 3]):
    """ x """
    temp = []
    cs = get_corners(x, y, a/2, -b, theta)

    # Add the chairs
    for c in chairs_pos:
        if c < 2:
            flip = 0.0
        else:
            flip = 180.0
        temp.append(circle_segment(x=cs[c][0], y=cs[c][1], z0=z0, z1=z1, r=r, \
                    alpha_start=-theta-75-flip, alpha_end=-theta-105-flip, tool=tool))

    return temp