Pulga Fit Force

https://github.com/nortikin/sverchok/assets/14288520/d9cd470f-710c-47d1-9050-2b184bcc0426

Functionality

https://github.com/nortikin/sverchok/assets/14288520/40199133-8b1c-490d-abb9-318c127a2916

This node creates a force to be applied with the Pulga Physics Solver node.

The force will make the particles (vertices) radius to shrink when the collide or grow if the do not.

Input

  • Magnitude: Amount to grow/shrink every iteration.

    https://github.com/nortikin/sverchok/assets/14288520/54bbf038-937a-4990-80fe-defddb0102a3
  • Min. Radius: Minimum radius particles can have.

  • Max. Radius: Maximum radius particles can have.

Options

Algorithm: Algorithm used to calculate collisions. Offers ‘Brute Force’ and ‘Kd-tree

  • Kd-tree: this is the fastest mode but in order to work it needs ‘Scipy’ and ‘Cython’ dependencies to be installed. In this mode the attraction continues even if the vertices are colliding

  • Brute-Force: This mode is much slower but does not need any dependencies to work.

Mode: How the magnitude is interpreted. Offers ‘Absolute’, ‘Relative’ and ‘Percent’.

  • Absolute: The magnitude will be added or subtracted as defined.

  • Relative: The magnitude will be multiplied by the particle radius.

  • Percent: The magnitude will be interpreted as a percent of the particle radius.

Examples

Maximum radius for a set of points.

https://github.com/nortikin/sverchok/assets/14288520/bb29cc04-f13a-4ee6-bace-774d05d852be

Arranging circles with attraction and collision.

https://github.com/nortikin/sverchok/assets/14288520/aefc9540-e9f6-4bbf-94c6-58dc77f26362