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
37[[nodiscard]] MRVOXELS_API Expected<SimpleVolume> pointsToDistanceVolume( const PointCloud & cloud, const PointsToDistanceVolumeParams& params );
38
40[[nodiscard]] MRVOXELS_API FunctionVolume pointsToDistanceFunctionVolume( const PointCloud & cloud, const PointsToDistanceVolumeParams& params );
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}
MRVOXELS_API Expected< VertColors > calcAvgColors(const PointCloud &cloud, const VertColors &colors, const VertCoords &tgtPoints, const VertBitSet &tgtVerts, float sigma, const ProgressCallback &cb={})
bool sqrtAngleWeight
Definition MRPointsToDistanceVolume.h:30
MRVOXELS_API FunctionVolume pointsToDistanceFunctionVolume(const PointCloud &cloud, const PointsToDistanceVolumeParams &params)
makes FunctionVolume representing signed distances to points with normals
float sigma
Definition MRPointsToDistanceVolume.h:19
MRVOXELS_API Expected< SimpleVolume > pointsToDistanceVolume(const PointCloud &cloud, const PointsToDistanceVolumeParams &params)
makes SimpleVolume filled with signed distances to points with normals
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
float minWeight
minimum sum of influence weights from surrounding points for a voxel to get a value,...
Definition MRPointsToDistanceVolume.h:22
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