MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMesh/MRAddNoise.h
Go to the documentation of this file.
1#pragma once
2
3
4#include "MRMeshFwd.h"
5
6#include "MRExpected.h"
7#include "MRMesh.h"
8
9namespace MR
10{
11
13{
14 float sigma = 0.01f;
15 // start state of the generator engine
16 unsigned int seed = 0;
18};
19
20// Adds noise to the points, using a normal distribution
21MRMESH_API Expected<void> addNoise( VertCoords& points, const VertBitSet& validVerts, NoiseSettings settings );
22MRMESH_API Expected<void> addNoise( Mesh& mesh, const VertBitSet* region = nullptr, const NoiseSettings& settings = {} );
23
24}
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:79
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:626
tl::expected< T, E > Expected
Definition MRExpected.h:59
MRMESH_API Expected< void > addNoise(VertCoords &points, const VertBitSet &validVerts, NoiseSettings settings)
Definition MRMesh/MRMesh.h:23
Definition MRMesh/MRAddNoise.h:13
ProgressCallback callback
Definition MRMesh/MRAddNoise.h:17
float sigma
Definition MRMesh/MRAddNoise.h:14
unsigned int seed
Definition MRMesh/MRAddNoise.h:16