docs
[mirrors/Programs.git] / python / svg_linear / test.py
CommitLineData
7f1b0236
TM
1from svg_gcode import *
2file="test/test_vector.svg"
3file="/home/harvie/Work/Designs/cnc/loga/mardera.svg"
4file="/home/harvie/Work/Designs/cnc/loga/logo_spoje.svg"
5comp_instance = SVGcode(file)
6comp_instance.find_paths() # Extract path coordinates
7comp_instance.linearize_paths(curve_fidelity = 10) # Convert paths into polygons
8#comp_instance.write(outputfile = "hrv.svg")
9#print(comp_instance.linear_coords[0])
10for path in comp_instance.linear_coords:
11 p = path[0]
12 print("g0 x%s y%s"%(str(p[0]),str(p[1])))
13 for p in path:
14 print("g1 x%s y%s"%(str(p[0]),str(p[1])))
15 print "( ---------- cut-here ---------- )"
This page took 0.385411 seconds and 5 git commands to generate.