Files
LPP/examples/test_ldump.py
danielque 539fd060c2 python 3 compatibility for examples/*.py files
add from __future__ import
print statement -> print() function
xrange -> range
map() -> list(map())
range() -> list(range())
StandardError -> Exception
2023-08-10 13:25:36 +02:00

16 lines
360 B
Python

# simple test of dump tool
# requires files/dump.lines
# uses gl and vcr tools to visualize line segments
d = dump("files/dump.lines")
ld = ldump("files/dump.lines")
ld.map(1,"id",2,"type",6,"end1x",7,"end1y",8,"end2x",9,"end2y")
d.extra(ld)
g = gl(d)
g.arad(0,0.2)
g.lrad(1,5)
g.lcol(1,"green")
v = vcr(g)
print("all done ... type CTRL-D to exit Pizza.py")