MeshLib C++ Docs
Loading...
Searching...
No Matches
MRPointsToDistanceVolume.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRVoxelsFwd.h"
4
6#include "MRMesh/MRExpected.h"
8
9namespace MR
10{
13
14
16{
19 float sigma = 1;
20
22 float minWeight = 1;
23
26 float invSigmaModifier = 0.5f;
27
30 bool sqrtAngleWeight{ false };
31
33 const VertNormals* ptNormals = nullptr;
34};
35
38
41
50[[nodiscard]] MRVOXELS_API Expected<VertColors> calcAvgColors( const PointCloud & cloud, const VertColors & colors,
51 const VertCoords & tgtPoints, const VertBitSet & tgtVerts, float sigma, const ProgressCallback & cb = {} );
52
53}
#define MRVOXELS_API
see explanation in MRMesh/MRMeshFwd.h
Definition MRVoxelsFwd.h:14
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:753
bool sqrtAngleWeight
Definition MRPointsToDistanceVolume.h:30
float sigma
Definition MRPointsToDistanceVolume.h:19
Expected< VertColors > calcAvgColors(const PointCloud &cloud, const VertColors &colors, const VertCoords &tgtPoints, const VertBitSet &tgtVerts, float sigma, const ProgressCallback &cb={})
MRVOXELS_CLASS FunctionVolume
Definition MRVoxelsFwd.h:46
const VertNormals * ptNormals
optional input: if this pointer is set then function will use these normals instead of ones present i...
Definition MRPointsToDistanceVolume.h:33
tl::expected< T, E > Expected
Definition MRExpected.h:31
Expected< SimpleVolume > pointsToDistanceVolume(const PointCloud &cloud, const PointsToDistanceVolumeParams &params)
makes SimpleVolume filled with signed distances to points with normals
float minWeight
minimum sum of influence weights from surrounding points for a voxel to get a value,...
Definition MRPointsToDistanceVolume.h:22
FunctionVolume pointsToDistanceFunctionVolume(const PointCloud &cloud, const PointsToDistanceVolumeParams &params)
makes FunctionVolume representing signed distances to points with normals
float invSigmaModifier
Definition MRPointsToDistanceVolume.h:26
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRDistanceVolumeParams.h:13
Definition MRPointCloud.h:17
Definition MRPointsToDistanceVolume.h:16