Files
LPP/examples/test_cdata.py
ckloss 80592c0da1 Committer: ckloss <ckloss@fluid38.(none)>
On branch master
 Initial commit for lpp, version 2011-10-11
2012-02-03 14:10:31 +01:00

35 lines
681 B
Python

# simple test of cdata tool
# creates tmp.cdata
c = cdata()
c.box("box",0,0,0,10,5,5)
c.sphere("nucleus",7,2,2,1)
c.cap("organelle",'x',2.5,2.5,1,1.5,3.5)
c.q("nucleus",5)
c.union("interior","nucleus","organelle")
c.surf("nuc","nucleus")
c.surfselect("nuchalf","nuc","$z < 2.0")
c.part("A",100,"box","interior")
c.part("B",100,"nucleus")
c.part2d("C",100,"organelle")
c.write("tmp.cdata","box","nucleus","organelle","A","B","C")
c.lbox("linebox",0,0,0,10,5,5)
c.unselect()
c.select("A","B","C","linebox","organelle","nuchalf")
#s = svg(c)
#s.rotate(0,0)
#s.lrad(0,0.1)
#s.lcol(0,"yellow")
#s.show(0)
g = gl(c)
v = vcr(g)
print "all done ... type CTRL-D to exit Pizza.py"