pysted.temporal.Synapse
- class pysted.temporal.Synapse(neck_coord, neck_direction, parent=None)
A
Synapse
is a protuberance that starts from aFiber
.It is defined as the combination of a
Fiber
and aPolygon
objectsSynapse.add_object
(obj)Allows to add a
Nodes
object to theNodesCombinator
Synapse.apply_force
(*args)This method allows to apply a
force
on each nodesSynapse.apply_jitter
(*args)This method applies a
jitter
on each nodesSynapse.grow
([angle, scale])Method that implements the growth of the synapse
Synapse.reset_force
(*args)This method allows to reset the
force
currently applied on each nodeSynapse.reset_speed
(*args)This method allows to reset the
speed
of each nodeSynapse.return_shape
([shape])Return
Synapse
indices.Synapse.update
(*args)Updates the position of each node based on the current forces and speeds