← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-dev/yade/trunk] Rev 2187: Small changes in ymport.gmsh()

 

------------------------------------------------------------
revno: 2187
committer: Anton Gladkyy <gladk@IAM004>
branch nick: trunk
timestamp: Fri 2010-04-30 15:51:23 +0200
message:
  Small changes in ymport.gmsh()
modified:
  py/ymport.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	2010-04-30 13:43:49 +0000
+++ py/ymport.py	2010-04-30 13:51:23 +0000
@@ -76,10 +76,7 @@
 	qTemp = Quaternion(Vector3(orientation[0],orientation[1],orientation[2]),orientation[3])
 	for line in lines[findVerticesString+1:numNodes+findVerticesString+1]:
 		data = line.split()
-		tempNodeVector=Vector3(float(data[0])*scale,float(data[1])*scale,float(data[2])*scale)
-		tempNodeVector=qTemp.Rotate(tempNodeVector)
-		tempNodeVector+=Vector3(shift[0],shift[1],shift[2])
-		nodelistVector3[id] = tempNodeVector
+		nodelistVector3[id] = qTemp.Rotate(Vector3(float(data[0])*scale,float(data[1])*scale,float(data[2])*scale))+Vector3(shift[0],shift[1],shift[2])
 		id += 1
 	numTriangles = int(lines[numNodes+findVerticesString+2].split()[0])
 	triList = []