1 """svg2bnd.py -- Converts a path in an SVG file to a boundary for Voro++."""
7 print 'Usage: svg2bnd <file>'
10 obj
= load(sys
.argv
[1])
11 for e
in obj
.values():
12 if isinstance(e
, SVG
) and e
.t
== u
'path':
19 for c
in commands
[1:]:
26 if abs((x
-lx
)**2 + (y
-ly
)**2) > 1e-8: