OpenVDB
12.0.0
|
Methods for generating OpenSimplexNoise (n-dimensional gradient noise) More...
#include <openvdb/version.h>
#include <cstdint>
Go to the source code of this file.
Classes | |
class | OSNoise |
Namespaces | |
openvdb | |
openvdb::v12_0 | |
openvdb::v12_0::ax | |
openvdb::v12_0::ax::math | |
OSN | |
Functions | |
template<typename NoiseT > | |
void | curlnoise (double(*out)[3], const double(*in)[3]) |
template<typename NoiseT > | |
void | curlnoise (double(*out)[3], double x, double y, double z) |
Methods for generating OpenSimplexNoise (n-dimensional gradient noise)
This code is based on https://gist.github.com/tombsar/716134ec71d1b8c1b530 (accessed on 22/05/2019). We have simplified that code in a number of ways, most notably by removing the template on dimension (this only generates 3 dimensional noise) and removing the base class as it's unnecessary for our uses. We also assume C++ 2011 or above and have thus removed a number of ifdef blocks.
The OSN namespace contains the original copyright.