MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.TriangulationHelpers Class Reference

Classes

class  FanOptimizerQueueElement
 
class  Settings
 
class  TriangulatedFanData
 

Static Public Member Functions

None buildLocalTriangulation (PointCloud cloud, VertId v, TriangulationHelpers.Settings settings, TriangulationHelpers.TriangulatedFanData fanData)
 
std_vector_SomeLocalTriangulations buildLocalTriangulations (PointCloud cloud, TriangulationHelpers.Settings settings, func_bool_from_float progress='MR::ProgressCallback{}')
 
AllLocalTriangulations buildUnitedLocalTriangulations (PointCloud cloud, TriangulationHelpers.Settings settings, func_bool_from_float progress='MR::ProgressCallback{}')
 
None filterNeighbors (VertCoords normals, VertId v, std_vector_Id_VertTag neighbors)
 
VertBitSet findBoundaryPoints (PointCloud pointCloud, TriangulationHelpers.Settings settings, func_bool_from_float cb='MR::ProgressCallback{}')
 
None findNeighborsInBall (PointCloud pointCloud, VertId v, float radius, std_vector_Id_VertTag neighbors)
 
float findNumNeighbors (PointCloud pointCloud, VertId v, int numNeis, std_vector_Id_VertTag neighbors, FewSmallest_PointsProjectionResult tmp, float upDistLimitSq=3.4028234663852886e+38)
 
bool isBoundaryPoint (PointCloud cloud, VertId v, TriangulationHelpers.Settings settings, TriangulationHelpers.TriangulatedFanData fanData)
 
float updateNeighborsRadius (VertCoords points, VertId v, VertId boundaryV, std_vector_Id_VertTag fan, float baseRadius)
 

Detailed Description

This is a namespace.

Member Function Documentation

◆ buildLocalTriangulation()

None meshlib.mrmeshpy.TriangulationHelpers.buildLocalTriangulation ( PointCloud cloud,
VertId v,
TriangulationHelpers.Settings settings,
TriangulationHelpers.TriangulatedFanData fanData )
static
constructs local triangulation around given point

◆ buildLocalTriangulations()

std_vector_SomeLocalTriangulations meshlib.mrmeshpy.TriangulationHelpers.buildLocalTriangulations ( PointCloud cloud,
TriangulationHelpers.Settings settings,
func_bool_from_float progress = 'MR::ProgressCallback{}' )
static
computes all local triangulations of all points in the cloud, and returns them distributed among
a set of SomeLocalTriangulations objects

◆ buildUnitedLocalTriangulations()

AllLocalTriangulations meshlib.mrmeshpy.TriangulationHelpers.buildUnitedLocalTriangulations ( PointCloud cloud,
TriangulationHelpers.Settings settings,
func_bool_from_float progress = 'MR::ProgressCallback{}' )
static
/ computes local triangulations of all points in the cloud united in one struct

◆ filterNeighbors()

None meshlib.mrmeshpy.TriangulationHelpers.filterNeighbors ( VertCoords normals,
VertId v,
std_vector_Id_VertTag neighbors )
static
 \\brief Filter neighbors with crossing normals
 \\ingroup TriangulationHelpersGroup

◆ findBoundaryPoints()

VertBitSet meshlib.mrmeshpy.TriangulationHelpers.findBoundaryPoints ( PointCloud pointCloud,
TriangulationHelpers.Settings settings,
func_bool_from_float cb = 'MR::ProgressCallback{}' )
static
Returns bit set of points that are considered as boundary by calling isBoundaryPoint in each

◆ findNeighborsInBall()

None meshlib.mrmeshpy.TriangulationHelpers.findNeighborsInBall ( PointCloud pointCloud,
VertId v,
float radius,
std_vector_Id_VertTag neighbors )
static
 \\brief Finds all neighbors of v in given radius (v excluded)
 \\ingroup TriangulationHelpersGroup

◆ findNumNeighbors()

float meshlib.mrmeshpy.TriangulationHelpers.findNumNeighbors ( PointCloud pointCloud,
VertId v,
int numNeis,
std_vector_Id_VertTag neighbors,
FewSmallest_PointsProjectionResult tmp,
float upDistLimitSq = 3.4028234663852886e+38 )
static
 \\brief Finds at most given number of neighbors of v (v excluded)
 \\param tmp temporary storage to avoid its allocation
 \\param upDistLimitSq upper limit on the distance in question, points with larger distance than it will not be returned
 \\return maxDistSq to the furthest returned neighbor (or 0 if no neighbours are returned)
 \\ingroup TriangulationHelpersGroup

◆ isBoundaryPoint()

bool meshlib.mrmeshpy.TriangulationHelpers.isBoundaryPoint ( PointCloud cloud,
VertId v,
TriangulationHelpers.Settings settings,
TriangulationHelpers.TriangulatedFanData fanData )
static
 \\brief Checks if given vertex is on boundary of the point cloud, by constructing local triangulation around it
 \\ingroup TriangulationHelpersGroup
 \\param cloud input point cloud
 \\param v vertex id to check
 \\param settings all parameters of the computation
 \\param fanData cache structure for neighbors, not to allocate for multiple calls
 \\returns true if vertex is boundary, false otherwise

◆ updateNeighborsRadius()

float meshlib.mrmeshpy.TriangulationHelpers.updateNeighborsRadius ( VertCoords points,
VertId v,
VertId boundaryV,
std_vector_Id_VertTag fan,
float baseRadius )
static
 \\brief Finds max radius of neighbors search, for possible better local triangulation
 \\param borderV first boundary vertex in \\param fan (next VertId in fan is also boundary but first is enough)
 \\ingroup TriangulationHelpersGroup

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