pysted.temporal.Synapse

class pysted.temporal.Synapse(neck_coord, neck_direction, parent=None)

A Synapse is a protuberance that starts from a Fiber.

It is defined as the combination of a Fiber and a Polygon objects

Synapse.add_object(obj)

Allows to add a Nodes object to the NodesCombinator

Synapse.apply_force(*args)

This method allows to apply a force on each nodes

Synapse.apply_jitter(*args)

This method applies a jitter on each nodes

Synapse.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 node

Synapse.reset_speed(*args)

This method allows to reset the speed of each node

Synapse.return_shape([shape])

Return Synapse indices.

Synapse.update(*args)

Updates the position of each node based on the current forces and speeds