#! /usr/bin/python3
# Last edited on 2021-05-25 11:00:06 by jstolfi

import hotpath_elis

import move
import move_parms
import path
import block
import block_hp
import contour
import contour_hp
import contact
import contact_hp
import job_parms
import hacks

import path_example
import input_data
import txt_read
import gcode_read_elis
import gcode_write_elis
import plot_data

import rn
import pyx
import os
import sys
import time
from math import sqrt, sin, cos, floor, ceil, inf, nan, pi

test_parms = {
    'input_file': "52mm_wrench",   # sys.argv[1],
    'output_file': '',
    'output_folder': '',
    'islice': 1,
    'max_slice': 1,
    'angle': 1.5708,
    'heuristic': 'hotpath', 
    #'original', 'greedy', 'scan_line', 'alternating_scan_line', 'hotpath',
    'contours': False,
    'Z': 0,
    'o': (0,0),
    'delta': 17,
    'max_calls': 0,
    'split_lines': True,
    'limit_lines': True,
    'max_lines': 1,
    'use_raster_links': True,
    'debug': False
  }

parms = job_parms.typical_elis()

create_folder(test_parms)

test_best_path(test_parms, parms)
