Sibylone 

Random repartitions

After a few times when I ended up putting random objects in a given space avoiding intersections, I decided to write a general purpose tool to provide functionalities helping to do that. The problem can be simplified by putting non intersecting spheres in a given volume or surface.

So the include allows to you to place spheres of various diameters in a cube, sphere, mesh and other shapes. It also provides some operations on the obtained set of points, like union, difference or transformation. Another include is also present in the package to show a possible use for these sets of points. The two examples above are provided in the package.

Note that some repartitions, when there is a lot of points or when the objects to be filled has a small volume inside its bounded box, can take a lot of time. Some optimisation are possible in the algorithm, but I don't forcast to do them in a near future. It is adviced to use the save functionality for the result file after long calculations to avoid loosing time.

Download Répartition v1.0

This image just illustrates the basic functionalities of the random repartition include. Nothing too impressive. :-)

Simple repartition example

This image illustrates one possible use of the points sets generated by the random repartition include. For that purpose it uses another small include points_blobs.inc to generate complex blobs.

Repartition use example

Other images of this site also intensively use these tools.

A clear morning on an alien landscape of melting snow and warm ruby. Birds, further in the mist, are slowly turning in silence.

Planet Jewel
01/12/2004

Fallen in a well, boring situation, but this one is so nice that you don't notice the time passing.

Ruby well
30/12/2004

A group of firefly are constructing their house. On the left, we can see some of them resting in at home. On the right, another group is finishing the construction.

Under construction
23/01/2005

Some kind of museum specimen, an hollow brain, cutaway.

The brain
12/2004

The idea here is to recursively blobify an object in order to obtain a irregular fractal structure. In this case we use a sphere as the base shape, we are at first fractal level.

Fractal blob (Level 1)
15/04/2005