yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #02620
[Branch ~yade-dev/yade/trunk] Rev 1884: ymport.mesh was renamed back to ymport.gmsh
------------------------------------------------------------
revno: 1884
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: trunk
timestamp: Thu 2009-12-10 13:02:39 +0100
message:
ymport.mesh was renamed back to ymport.gmsh
modified:
py/ymport.py
scripts/test/regular-sphere-pack.py
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription.
=== modified file 'py/ymport.py'
--- py/ymport.py 2009-12-10 07:08:03 +0000
+++ py/ymport.py 2009-12-10 12:02:39 +0000
@@ -44,7 +44,7 @@
utils._commonBodySetup(b,0,Vector3(0,0,0),noBound=noBound,material=material,resetState=False)
return imported
-def mesh(meshfile="file.mesh",shift=[0.0,0.0,0.0],scale=1.0,**kw):
+def gmsh(meshfile="file.mesh",shift=[0.0,0.0,0.0],scale=1.0,**kw):
""" Imports geometry from mesh file and creates facets.
shift[X,Y,Z] parameter moves the specimen.
scale factor scales the given data.
=== modified file 'scripts/test/regular-sphere-pack.py'
--- scripts/test/regular-sphere-pack.py 2009-12-10 07:08:03 +0000
+++ scripts/test/regular-sphere-pack.py 2009-12-10 12:02:39 +0000
@@ -57,7 +57,7 @@
"""Import regular-sphere-pack.mesh into the YADE simulation"""
-O.bodies.append(ymport.mesh('regular-sphere-pack.mesh',**kwMeshes))#generates facets from the mesh file
+O.bodies.append(ymport.gmsh('regular-sphere-pack.mesh',**kwMeshes))#generates facets from the mesh file
"""Import regular-sphere-pack-LSMGenGeo.geo into the YADE simulation"""
O.bodies.append(ymport.gengeoFile('regular-sphere-pack-LSMGenGeo.geo',shift=[-7.0,-7.0,-5.9],scale=1.0,color=(1,0,1),**kw))