yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #10286
[Branch ~yade-pkg/yade/git-trunk] Rev 3756: Add qt.View() to clumps-example.
------------------------------------------------------------
revno: 3756
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Tue 2013-12-03 08:53:08 +0100
message:
Add qt.View() to clumps-example.
modified:
examples/clumps/addToClump-example.py
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'examples/clumps/addToClump-example.py'
--- examples/clumps/addToClump-example.py 2013-08-21 06:35:10 +0000
+++ examples/clumps/addToClump-example.py 2013-12-03 07:53:08 +0000
@@ -3,6 +3,8 @@
'''This example shows usage of addToClump() and appendClumped().'''
+from yade import pack,export,qt
+
#define material for all bodies:
id_Mat=O.materials.append(FrictMat(young=1e6,poisson=0.3,density=1000,frictionAngle=1))
Mat=O.materials[id_Mat]
@@ -81,3 +83,5 @@
O.dt=1e-6
print '\nPress Play button ... '
+renderer = qt.Renderer()
+qt.View()