Open3D (C++ API)
0.18.0
|
Data Structures | |
class | RandomContext |
class | UniformIntGenerator |
class | UniformRealGenerator |
class | NormalGenerator |
Functions | |
void | Seed (const int seed) |
Set Open3D global random seed. More... | |
std::mt19937 * | GetEngine () |
std::mutex * | GetMutex () |
uint32_t | RandUint32 () |
std::mt19937 * open3d::utility::random::GetEngine | ( | ) |
Get global singleton random engine. You must also lock the global mutex before calling the engine.
Example:
std::mutex * open3d::utility::random::GetMutex | ( | ) |
Get global singleton mutex to protect the engine call. Also see random::GetEngine().
uint32_t open3d::utility::random::RandUint32 | ( | ) |
Generate a random uint32. This function is globally seeded by utility::random::Seed(). This function is automatically protected by the global random mutex.
void open3d::utility::random::Seed | ( | const int | seed | ) |
Set Open3D global random seed.