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:
34
examples/test_cdata.py
Normal file
34
examples/test_cdata.py
Normal file
@ -0,0 +1,34 @@
|
||||
# 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"
|
||||
Reference in New Issue
Block a user