mirror of
https://github.com/ParticulateFlow/LPP.git
synced 2025-12-08 06:37:46 +00:00
Committer: ckloss <ckloss@fluid38.(none)>
On branch master Initial commit for lpp, version 2011-10-11
This commit is contained in:
15
examples/test_ldump.py
Normal file
15
examples/test_ldump.py
Normal file
@ -0,0 +1,15 @@
|
||||
# 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"
|
||||
Reference in New Issue
Block a user