MeshLib
 
Loading...
Searching...
No Matches
MRPointCloudTriangulation.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRConstants.h"
4#include "MRMesh.h"
6#include <optional>
7
8namespace MR
9{
22{
36 int numNeighbours = 16;
37
43 float radius = 0;
44
56 float critAngle = PI2_F;
57
59 float boundaryAngle = 0.9f * PI_F;
60
65 float critHoleLength = -FLT_MAX;
66
69
71 const PointCloud * searchNeighbors = nullptr;
72};
73
86MRMESH_API std::optional<Mesh> triangulatePointCloud( const PointCloud& pointCloud, const TriangulationParameters& params = {},
87 ProgressCallback progressCb = {} );
88
89} //namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:589
MRMESH_API std::optional< Mesh > triangulatePointCloud(const PointCloud &pointCloud, const TriangulationParameters &params={}, ProgressCallback progressCb={})
Creates mesh from given point cloud according params Returns empty optional if was interrupted by pro...
Definition MRCameraOrientationPlugin.h:7
Definition MRMesh/MRPointCloud.h:16
Parameters of point cloud triangulation.
Definition MRPointCloudTriangulation.h:22
const PointCloud * searchNeighbors
optional: if provided this cloud will be used for searching of neighbors (so it must have same validP...
Definition MRPointCloudTriangulation.h:71
float critHoleLength
Critical length of hole (all holes with length less then this value will be filled)
Definition MRPointCloudTriangulation.h:65
float boundaryAngle
the vertex is considered as boundary if its neighbor ring has angle more than this value
Definition MRPointCloudTriangulation.h:59
float radius
Definition MRPointCloudTriangulation.h:43
bool automaticRadiusIncrease
automatic increase of the radius if points outside can make triangles from original radius not-Delone
Definition MRPointCloudTriangulation.h:68
float critAngle
Critical angle of triangles in local triangulation (angle between triangles in fan should be less the...
Definition MRPointCloudTriangulation.h:56
int numNeighbours
The number of nearest neighbor points to use for building of local triangulation.
Definition MRPointCloudTriangulation.h:36