MeshLib C++ Docs
Loading...
Searching...
No Matches
MRUniformSampling.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRVector3.h"
6#include <optional>
7
8namespace MR
9{
10
11struct UniformSamplingSettings
12{
14 float distance = 0;
19 float minNormalDot = 0;
22 bool lexicographicalOrder = true;
24 const VertNormals * pNormals = nullptr;
26 ProgressCallback progress;
27};
28
32[[nodiscard]] MRMESH_API std::optional<VertBitSet> pointUniformSampling( const PointCloud& pointCloud, const UniformSamplingSettings & settings );
33
34
38[[nodiscard]] MRMESH_API std::optional<PointCloud> makeUniformSampledCloud( const PointCloud& pointCloud, const UniformSamplingSettings & settings );
39
40} //namespace MR
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MRMesh/MRPointCloud.h:17
Definition MRUniformSampling.h:12
new unsafe ref bool lexicographicalOrder
new unsafe ref float minNormalDot
new unsafe ref float distance
new unsafe MR.? Const_VertCoords pNormals
new unsafe MR.Std.Function_BoolFuncFromFloat progress
MRMESH_API std::optional< VertBitSet > pointUniformSampling(const PointCloud &pointCloud, const UniformSamplingSettings &settings)
MRMESH_API std::optional< PointCloud > makeUniformSampledCloud(const PointCloud &pointCloud, const UniformSamplingSettings &settings)
Definition MRCameraOrientationPlugin.h:8