← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3861: Fixed ymport.textPolyhedra function (bug #1582775)

 

------------------------------------------------------------
revno: 3861
committer: Jan Stransky <jan.stransky@xxxxxxxxxxx>
timestamp: Thu 2016-05-19 01:33:31 +0200
message:
  Fixed ymport.textPolyhedra function (bug #1582775)
modified:
  py/ymport.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 'py/ymport.py'
--- py/ymport.py	2016-04-04 06:11:37 +0000
+++ py/ymport.py	2016-05-18 23:33:31 +0000
@@ -448,6 +448,7 @@
 	return tetras
 
 def textPolyhedra(fileName,material,shift=Vector3.Zero,scale=1.0,orientation=Quaternion((0,1,0),0.0),**kw):
+	from yade import polyhedra_utils
 	"""Load polyhedra from a text file.
 	
 	:param str filename: file name