Exemplo n.º 1
0
 def animate(self,lstring = None, nbsteps = 1, dt = 0.1):
     from openalea.plantgl.all import Sequencer
     s = Sequencer(dt)
     clstring = lstring
     for i in xrange(nbsteps):
         clstring = self.derive(clstring)
         self.plot(clstring)
         s.touch()
Exemplo n.º 2
0
 def animate(self, lstring=None, nbsteps=1, dt=0.1):
     from openalea.plantgl.all import Sequencer
     s = Sequencer(dt)
     clstring = lstring
     for i in xrange(nbsteps):
         clstring = self.derive(clstring)
         self.plot(clstring)
         s.touch()
Exemplo n.º 3
0
 def animate(self, nbiter=1, dt=0.1):
     from openalea.plantgl.all import Sequencer
     s = Sequencer(dt)
     self.init()
     self.plot()
     s.touch()
     for i in xrange(nbiter):
         self.iterate()
         self.plot()
         s.touch()
     if self.__dict__.has_key('end'): self.end(self.currentmtg)
     return self.currentmtg
Exemplo n.º 4
0
    def animate(self, nbiter=1, dt=0.1):
        from openalea.plantgl.all import Sequencer

        s = Sequencer(dt)
        self.init()
        self.plot()
        s.touch()
        for i in xrange(nbiter):
            self.iterate()
            self.plot()
            s.touch()
        if self.__dict__.has_key("end"):
            self.end(self.currentmtg)
        return self.currentmtg