Constructor.
Enables or disables applying the distance from the nearest seed point to the output value.
Returns the displacement value of the Voronoi cells.
Returns the frequency of the seed points.
Returns the seed value used by the Voronoi cells
Determines if the distance from the nearest seed point is applied to the output value.
Sets the displacement value of the Voronoi cells.
Sets the frequency of the seed points.
Sets the seed value used by the Voronoi cells
Scale of the random displacement to apply to each Voronoi cell.
Determines if the distance from the nearest seed point is applied to the output value.
Frequency of the seed points.
Seed value used by the coherent-noise function to determine the positions of the seed points.
Destructor.
Returns a reference to a source module connected to this noise module.
Returns the number of source modules required by this noise module.
Generates an output value given the coordinates of the specified input value.
Connects a source module to this noise module.
An array containing the pointers to each source module required by this noise module.
Noise module that outputs Voronoi cells.
@image html modulevoronoi.png
In mathematics, a <i>Voronoi cell</i> is a region containing all the points that are closer to a specific <i>seed point</i> than to any other seed point. These cells mesh with one another, producing polygon-like formations.
By default, this noise module randomly places a seed point within each unit cube. By modifying the <i>frequency</i> of the seed points, an application can change the distance between seed points. The higher the frequency, the closer together this noise module places the seed points, which reduces the size of the cells. To specify the frequency of the cells, call the SetFrequency() method.
This noise module assigns each Voronoi cell with a random constant value from a coherent-noise function. The <i>displacement value</i> controls the range of random values to assign to each cell. The range of random values is +/- the displacement value. Call the SetDisplacement() method to specify the displacement value.
To modify the random positions of the seed points, call the SetSeed() method.
This noise module can optionally add the distance from the nearest seed to the output value. To enable this feature, call the EnableDistance() method. This causes the points in the Voronoi cells to increase in value the further away that point is from the nearest seed point.
Voronoi cells are often used to generate cracked-mud terrain formations or crystal-like textures
This noise module requires no source modules.