MeshLib
 
Loading...
Searching...
No Matches
MRPointsToDistanceVolume.h
Go to the documentation of this file.
1#pragma once
2
4#include "MRExpected.h"
5
6namespace MR
7{
8
10{
13 float sigma = 1;
14
16 float minWeight = 1;
17
19 const VertNormals* ptNormals = nullptr;
20};
21
24
33[[nodiscard]] MRMESH_API Expected<VertColors> calcAvgColors( const PointCloud & cloud, const VertColors & colors,
34 const VertCoords & tgtPoints, const VertBitSet & tgtVerts, float sigma, const ProgressCallback & cb = {} );
35
36} //namespace MR
List< Vector3f^> VertNormals
Definition MRDotNet/MRMeshFwd.h:98
List< Vector3f^> VertCoords
Definition MRDotNet/MRMeshFwd.h:95
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRDotNet/MRBitSet.h:39
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:589
Definition MRCameraOrientationPlugin.h:7
MRMESH_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:49
MRMESH_API Expected< VertColors > calcAvgColors(const PointCloud &cloud, const VertColors &colors, const VertCoords &tgtPoints, const VertBitSet &tgtVerts, float sigma, const ProgressCallback &cb={})
Definition MRDistanceVolumeParams.h:10
Definition MRMesh/MRPointCloud.h:16
Definition MRPointsToDistanceVolume.h:10
float sigma
Definition MRPointsToDistanceVolume.h:13
const VertNormals * ptNormals
optional input: if this pointer is set then function will use these normals instead of ones present i...
Definition MRPointsToDistanceVolume.h:19
float minWeight
minimum sum of influence weights from surrounding points for a voxel to get a value,...
Definition MRPointsToDistanceVolume.h:16