Skip to content
Snippets Groups Projects
Commit ac0d9e4c authored by Studer Gabriel's avatar Studer Gabriel
Browse files

use UpdatePositions function of simulation object instead of manually setting the positions

parent 09db77c5
Branches
Tags
No related merge requests found
......@@ -22,9 +22,7 @@ class Anim(QtCore.QTimer):
def OnTimer(self):
self.sim.Steps(1)
positions = sim.GetPositions()
for a, pos in zip(self.ent.atoms,positions):
self.ed.SetAtomPos(a,pos)
self.sim.UpdatePositions()
self.go.UpdatePositions()
......
......@@ -36,9 +36,7 @@ class Anim(QtCore.QTimer):
self.counter += 1
self.sim.Steps(1)
positions = sim.GetPositions()
for a, pos in zip(self.ent.atoms,positions):
self.ed.SetAtomPos(a,pos)
self.sim.UpdatePositions()
self.go.UpdatePositions()
self.steps+=1
......
......@@ -22,10 +22,7 @@ class Anim(QtCore.QTimer):
def OnTimer(self):
self.sim.Steps(5)
positions = sim.GetPositions()
for a, pos in zip(self.ent.atoms,positions):
self.ed.SetAtomPos(a,pos)
self.ed.UpdateICS()
self.sim.UpdatePositions()
self.go.UpdatePositions()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment