Ejemplo n.º 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
Ejemplo n.º 2
0
def test_engrave_numbers():
    t = Tool(diameter=3.125, stepover=0.8, stepdown=0.5, feed=250, safety_z=20)
    operations = []
    operations += engrave_num(num=235, x=0, y=0, theta=0, height=20, \
                              space=15.5, tool=t)
    operations += engrave_num(num=18, x=0, y=20, theta=0, height=20, \
                              space=10, tool=t)
    operations += engrave_num(num=9, x=0, y=-20, theta=0, height=20, \
                              space=10, tool=t)
    operations += engrave_num(num=235, x=500, y=1000, theta=10, height=20, \
                              space=10, tool=t)
    operations += engrave_num(num=9, x=0, y=0, theta=0, height=20, \
                              space=10, tool=t)
    operations += engrave_num(num=9, x=100, y=0, theta=0, height=20, \
                              space=10, tool=t)
    operations += engrave_num(num=9, x=-100, y=0, theta=0, height=20, \
                              space=10, tool=t)
    gcode_writer(operations, t, "tests/output/eng_num_test.nc")
    pil_visualizer(operations, "tests/output/eng_num_test.png")