MeshLib C++ Docs
Loading...
Searching...
No Matches
MRPointsToMeshFusion.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRVoxelsFwd.h"
4
5#include "MRMesh/MRExpected.h"
7#include "MRPch/MRBindingMacros.h"
8
9namespace MR
10{
13
14
16
18{
19 MR_BIND_PREFER_UNLOCK_GIL_WHEN_USED_AS_PARAM
20
23 float sigma = 1;
24
26 float minWeight = 1;
27
30 float invSigmaModifier = 0.5f;
31
34 bool sqrtAngleWeight{ false };
35
38 float voxelSize = 0;
39
41 const VertColors * ptColors = nullptr;
42
44 VertColors * vColors = nullptr;
45
48
51 std::function<Expected<void>( const PointCloud& cloud, const PointsToDistanceVolumeParams& params, std::function<Expected<void>( const SimpleVolumeMinMax& volume, int zOffset )> addPart, int layerOverlap )> createVolumeCallbackByParts;
52
54 std::function<Expected<SimpleVolumeMinMax>( const PointCloud& cloud, const PointsToDistanceVolumeParams& params )> createVolumeCallback;
55
57 std::function<bool ( const PointCloud& cloud, const PointsToDistanceVolumeParams& params )> canCreateVolume;
58};
59
63
64}
#define MRVOXELS_API
see explanation in MRMesh/MRMeshFwd.h
Definition MRVoxelsFwd.h:14
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:753
float voxelSize
Definition MRPointsToMeshFusion.h:38
ProgressCallback progress
Progress callback.
Definition MRPointsToMeshFusion.h:47
double volume(const MeshTopology &topology, const VertCoords &points, const FaceBitSet *region=nullptr)
float invSigmaModifier
Definition MRPointsToMeshFusion.h:30
MRVOXELS_CLASS SimpleVolumeMinMax
Definition MRVoxelsFwd.h:35
float minWeight
minimum sum of influence weights from surrounding points for a triangle to appear,...
Definition MRPointsToMeshFusion.h:26
tl::expected< T, E > Expected
Definition MRExpected.h:31
VertColors * vColors
optional output: averaged colors of mesh vertices
Definition MRPointsToMeshFusion.h:44
std::function< Expected< SimpleVolumeMinMax >(const PointCloud &cloud, const PointsToDistanceVolumeParams &params)> createVolumeCallback
Callback for volume creation. If both volume creation functions are null - volume will be created wit...
Definition MRPointsToMeshFusion.h:54
Expected< Mesh > pointsToMeshFusion(const PointCloud &cloud, const PointsToMeshParameters &params)
MR_BIND_PREFER_UNLOCK_GIL_WHEN_USED_AS_PARAM float sigma
Definition MRPointsToMeshFusion.h:23
std::function< Expected< void >(const PointCloud &cloud, const PointsToDistanceVolumeParams &params, std::function< Expected< void >(const SimpleVolumeMinMax &volume, int zOffset)> addPart, int layerOverlap)> createVolumeCallbackByParts
Definition MRPointsToMeshFusion.h:51
std::function< bool(const PointCloud &cloud, const PointsToDistanceVolumeParams &params)> canCreateVolume
Callback for checking whether it's possible to use the volume creation function.
Definition MRPointsToMeshFusion.h:57
const VertColors * ptColors
optional input: colors of input points
Definition MRPointsToMeshFusion.h:41
bool sqrtAngleWeight
Definition MRPointsToMeshFusion.h:34
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRPointCloud.h:17
Definition MRPointsToDistanceVolume.h:16
Definition MRPointsToMeshFusion.h:18