MeshLib Documentation
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"
7
8namespace MR
9{
10
12{
15 float sigma = 1;
16
18 float minWeight = 1;
19
21 const VertNormals* ptNormals = nullptr;
22};
23
26
28[[nodiscard]] MRVOXELS_API FunctionVolume pointsToDistanceFunctionVolume( const PointCloud & cloud, const PointsToDistanceVolumeParams& params );
29
38[[nodiscard]] MRVOXELS_API Expected<VertColors> calcAvgColors( const PointCloud & cloud, const VertColors & colors,
39 const VertCoords & tgtPoints, const VertBitSet & tgtVerts, float sigma, const ProgressCallback & cb = {} );
40
41} //namespace MR
#define MRVOXELS_API
Definition MRVoxelsFwd.h:13
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
Definition MRCameraOrientationPlugin.h:8
MRVOXELS_API Expected< VertColors > calcAvgColors(const PointCloud &cloud, const VertColors &colors, const VertCoords &tgtPoints, const VertBitSet &tgtVerts, float sigma, const ProgressCallback &cb={})
MRVOXELS_API FunctionVolume pointsToDistanceFunctionVolume(const PointCloud &cloud, const PointsToDistanceVolumeParams &params)
makes FunctionVolume representing signed distances to points with normals
MRVOXELS_API Expected< SimpleVolume > pointsToDistanceVolume(const PointCloud &cloud, const PointsToDistanceVolumeParams &params)
makes SimpleVolume filled with signed distances to points with normals
tl::expected< T, E > Expected
Definition MRExpected.h:58
Definition MRDistanceVolumeParams.h:10
Definition MRMesh/MRPointCloud.h:16
Definition MRPointsToDistanceVolume.h:12
float sigma
Definition MRPointsToDistanceVolume.h:15
const VertNormals * ptNormals
optional input: if this pointer is set then function will use these normals instead of ones present i...
Definition MRPointsToDistanceVolume.h:21
float minWeight
minimum sum of influence weights from surrounding points for a voxel to get a value,...
Definition MRPointsToDistanceVolume.h:18