List of my modules...
Module: Create_Sphere_Packing
Description:
Create a regular or random sphere packing.
From left to right: Pseudo-random, cubic, and hexagonal packings.
Ports:
Pack type

Packing type, the two last ones are regular packings.
Radius

Radius of the spheres. For the pseudo-random packing, this is just an indication, the final radius will actually be half the distance between the two closest sphere centres.
Time step

For pseudo-random packings, the generation is iterative, and this port sets the time that passes between two iterations
Time

Total time for the pseudo-random generation. The number of iterations is the total time divided by the time step.
Number

Number of spheres. For regular packings, as many spheres as possible are fitted.
Dimensions

Dimensions of the box containing the spheres.
Color

Color for the points displayed during the computation. The color is chosen according to the index in the array. For creating an adequate colormap, see Create_Colormap.
Options

Options for the pseudo-random packing. The randomise seed is the number used to generate the initial pseudo-random positions. Two generations with the same parameters and the same seed generates the same packings. The second is to show what happens during the computation, how the spheres move around to find a adequate position in the box.
Time lapse

Displaying each iteration of the computation is time-consuming, you can specify a number of iterations to skip before redisplaying an intermediate state.
Point size

Point size of the sphere centres, when displaying intermediate packing states.
Seed

Number used as seed for the random number generator.
Do

Push the first button to start the computation. Push the second to erase the displayed points (only with the pseudo-random method).
Commands:
Additional options can be accessed when typing in the console Create_Sphere_Packing COMMAND_NAME.
verbose
Displays some information on the computation. Retype to hide info.
create
Runs the computation. Returns the name of the output, so it can be used in a script, such as set RESULT [Create_Sphere_Packing create].