#include <NvBlastExtAuthoringMeshNoiser.h>
Public Types | |
| enum | EdgeFlag { INTERNAL_EDGE, EXTERNAL_BORDER_EDGE, INTERNAL_BORDER_EDGE, EXTERNAL_EDGE, NONE } |
Public Member Functions | |
| void | applyNoise (SimplexNoise &noise, float falloff, int32_t relaxIterations, float relaxFactor) |
| std::vector< Triangle > | getMesh () |
| MeshNoiser () | |
| void | reset () |
| void | setMesh (const std::vector< Triangle > &mesh) |
| void | tesselateInternalSurface (float maxLen) |
Edge flags
| Nv::Blast::MeshNoiser::MeshNoiser | ( | ) | [inline] |
| void Nv::Blast::MeshNoiser::applyNoise | ( | SimplexNoise & | noise, | |
| float | falloff, | |||
| int32_t | relaxIterations, | |||
| float | relaxFactor | |||
| ) |
Apply noise to internal surface. Must be called only after tesselation!!!
| [in] | noise | - noise generator |
| [in] | falloff | - damping of noise around of external surface |
| [in] | relaxIterations | - number of smoothing iterations before applying noise |
| [in] | relaxFactor | - amount of smooting before applying noise. |
| std::vector<Triangle> Nv::Blast::MeshNoiser::getMesh | ( | ) |
| void Nv::Blast::MeshNoiser::reset | ( | ) |
| void Nv::Blast::MeshNoiser::setMesh | ( | const std::vector< Triangle > & | mesh | ) |
Set mesh to tesselate and apply noise
| void Nv::Blast::MeshNoiser::tesselateInternalSurface | ( | float | maxLen | ) |
Tesselate internal surface.
| [in] | maxLen | - maximal length of edge on internal surface. |