#include <FractureToolsStructs.h>
Public Member Functions | |
NoiseParameters () | |
void | setToDefault () |
Public Attributes | |
float | amplitude |
float | frequency |
int | gridSize |
int | type |
NoiseParameters These parameters are used to build a splitting surface.
FractureTools::NoiseParameters::NoiseParameters | ( | ) | [inline] |
Constructor sets defaults
void FractureTools::NoiseParameters::setToDefault | ( | ) | [inline] |
Set default values:
amplitude = 0.0f; frequency = 0.25f; gridSize = 10; type = 0;
Size of the fluctuations, relative to mesh size
Noise frequencey relative to 1/(grid spacing). On scales much smaller than this, the function is smooth. On scales much large, the function looks uncorrelated
Suggested number of grid elements across the mesh. The actual number may vary depending on the mesh's proportions.
Noise function to use. This parameter is currently unused. Noise is generated by superposition of many fourier modes in random directions, with frequencies randomly chosen in a band around the input frequency,