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