perlin_noise.SmoothNoise3D Class Reference

Class for generating smooth noise. More...

List of all members.

Public Member Functions

def __init__
 Constructs a new SmoothNoise object.
def generate
 Generates a grid with the smooth noise.

Public Attributes

 uniform_noise
 width
 height
 depth


Detailed Description

Class for generating smooth noise.

Successive calls to generate will use the same underlying grid of uniform noise to sample from.

Definition at line 382 of file perlin_noise.py.


Member Function Documentation

def perlin_noise.SmoothNoise3D.__init__ (   self,
  width,
  height,
  depth 
)

Constructs a new SmoothNoise object.

Parameters:
oldNoise If oldNoise is given, the first row and column of oldNoise's uniform noise grid is copied to this SmoothNoise object's uniform noise grid. This is for making sets of tiles with certain algorithms, such as the Perlin noise algorithm.

Definition at line 390 of file perlin_noise.py.

def perlin_noise.SmoothNoise3D.generate (   self,
  k 
)

Generates a grid with the smooth noise.

Parameters:
k The sampling distance, usually a power of 2. If k == 1, every point in the uniform noise grid is sampled and the returned grid is equivalent to the uniform noise grid.

Definition at line 404 of file perlin_noise.py.


Member Data Documentation

Definition at line 395 of file perlin_noise.py.

Definition at line 394 of file perlin_noise.py.

Definition at line 391 of file perlin_noise.py.

Definition at line 393 of file perlin_noise.py.


The documentation for this class was generated from the following file:

Generated on Sun May 24 21:48:22 2009 by  doxygen 1.5.8