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{
11
12struct PointsToDistanceVolumeParams : DistanceVolumeParams
13{
16 float sigma = 1;
17
19 float minWeight = 1;
20
22 const VertNormals* ptNormals = nullptr;
23};
24
26[[nodiscard]] MRVOXELS_API Expected<SimpleVolume> pointsToDistanceVolume( const PointCloud & cloud, const PointsToDistanceVolumeParams& params );
27
30
39[[nodiscard]] MRVOXELS_API Expected<VertColors> calcAvgColors( const PointCloud & cloud, const VertColors & colors,
40 const VertCoords & tgtPoints, const VertBitSet & tgtVerts, float sigma, const ProgressCallback & cb = {} );
41
42} //namespace MR
#define MRVOXELS_API
Definition MRVoxelsFwd.h:14
Definition MRMesh/MRPointCloud.h:17
Definition MRPointsToDistanceVolume.h:13
new unsafe MR.? Const_VertCoords ptNormals
new unsafe ref float sigma
new unsafe ref float minWeight
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