MeshLib C++ Docs
Loading...
Searching...
No Matches
MRTriangulationParameters Struct Reference

Parameters of point cloud triangulation. More...

#include <MRPointCloudTriangulation.h>

Public Attributes

int numNeighbours
 The number of nearest neighbor points to use for building of local triangulation.
 
float radius
 
float critAngle
 Critical angle of triangles in local triangulation (angle between triangles in fan should be less then this value)

 
float boundaryAngle
 the vertex is considered as boundary if its neighbor ring has angle more than this value
 
float critHoleLength
 Critical length of hole (all holes with length less then this value will be filled)
 
bool automaticRadiusIncrease
 automatic increase of the radius if points outside can make triangles from original radius not-Delone
 
const MRPointCloudsearchNeighbors
 optional: if provided this cloud will be used for searching of neighbors (so it must have same validPoints)
 

Detailed Description

Parameters of point cloud triangulation.

Member Data Documentation

◆ automaticRadiusIncrease

bool MRTriangulationParameters::automaticRadiusIncrease

automatic increase of the radius if points outside can make triangles from original radius not-Delone

◆ boundaryAngle

float MRTriangulationParameters::boundaryAngle

the vertex is considered as boundary if its neighbor ring has angle more than this value

◆ critAngle

float MRTriangulationParameters::critAngle

Critical angle of triangles in local triangulation (angle between triangles in fan should be less then this value)

◆ critHoleLength

float MRTriangulationParameters::critHoleLength

Critical length of hole (all holes with length less then this value will be filled)

If value is subzero it is set automaticly to 0.7*bbox.diagonal()

◆ numNeighbours

int MRTriangulationParameters::numNeighbours

The number of nearest neighbor points to use for building of local triangulation.

Note
Too small value can make not optimal triangulation and additional holes Too big value increases difficulty of optimization and decreases performance

◆ radius

float MRTriangulationParameters::radius

Radius of neighborhood around each point to consider for building local triangulation. This is an alternative to numNeighbours parameter. Please set to positive value only one of them.

◆ searchNeighbors

const MRPointCloud* MRTriangulationParameters::searchNeighbors

optional: if provided this cloud will be used for searching of neighbors (so it must have same validPoints)


The documentation for this struct was generated from the following file: