MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.triangulationhelpers.Functions Class Reference

Static Public Member Functions

static float updateNeighborsRadius (meshlib.VertCoords points, meshlib.VertId v, meshlib.VertId boundaryV, meshlib.std_vector_MR_VertId fan, float baseRadius)
 Finds max radius of neighbors search, for possible better local triangulation.
static void findNeighborsInBall (meshlib.PointCloud pointCloud, meshlib.VertId v, float radius, meshlib.std_vector_MR_VertId neighbors)
 Finds all neighbors of v in given radius (v excluded)
static float findNumNeighbors (meshlib.PointCloud pointCloud, meshlib.VertId v, int numNeis, meshlib.std_vector_MR_VertId neighbors, meshlib.FewSmallest_MR_PointsProjectionResult tmp, java.lang.Float upDistLimitSq)
 Finds at most given number of neighbors of v (v excluded)
static void filterNeighbors (meshlib.VertCoords orientedNormals, meshlib.VertBitSet untrustedNormals, meshlib.VertId v, meshlib.std_vector_MR_VertId neighbors)
 Filter neighbors with crossing normals.
static void buildLocalTriangulation (meshlib.PointCloud cloud, meshlib.VertId v, meshlib.triangulationhelpers.Settings settings, meshlib.triangulationhelpers.TriangulatedFanData fanData)
static meshlib.std_optional_std_vector_MR_SomeLocalTriangulations buildLocalTriangulations (meshlib.PointCloud cloud, meshlib.triangulationhelpers.Settings settings, meshlib.std_function_bool_from_float progress)
static meshlib.std_optional_MR_AllLocalTriangulations buildUnitedLocalTriangulations (meshlib.PointCloud cloud, meshlib.triangulationhelpers.Settings settings, meshlib.std_function_bool_from_float progress)
static boolean isBoundaryPoint (meshlib.PointCloud cloud, meshlib.VertId v, meshlib.triangulationhelpers.Settings settings, meshlib.triangulationhelpers.TriangulatedFanData fanData)
 Checks if given vertex is on boundary of the point cloud, by constructing local triangulation around it.
static meshlib.std_optional_MR_VertBitSet findBoundaryPoints (meshlib.PointCloud pointCloud, meshlib.triangulationhelpers.Settings settings, meshlib.std_function_bool_from_float cb)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ buildLocalTriangulation()

void meshlib.triangulationhelpers.Functions.buildLocalTriangulation ( meshlib.PointCloud cloud,
meshlib.VertId v,
meshlib.triangulationhelpers.Settings settings,
meshlib.triangulationhelpers.TriangulatedFanData fanData )
static

constructs local triangulation around given point Generated from function MR::TriangulationHelpers::buildLocalTriangulation.

Calls MR_TriangulationHelpers_buildLocalTriangulation().

◆ buildLocalTriangulations()

meshlib.std_optional_std_vector_MR_SomeLocalTriangulations meshlib.triangulationhelpers.Functions.buildLocalTriangulations ( meshlib.PointCloud cloud,
meshlib.triangulationhelpers.Settings settings,
meshlib.std_function_bool_from_float progress )
static

computes all local triangulations of all points in the cloud, and returns them distributed among a set of SomeLocalTriangulations objects Generated from function MR::TriangulationHelpers::buildLocalTriangulations.

Calls MR_TriangulationHelpers_buildLocalTriangulations().

◆ buildUnitedLocalTriangulations()

meshlib.std_optional_MR_AllLocalTriangulations meshlib.triangulationhelpers.Functions.buildUnitedLocalTriangulations ( meshlib.PointCloud cloud,
meshlib.triangulationhelpers.Settings settings,
meshlib.std_function_bool_from_float progress )
static

/ computes local triangulations of all points in the cloud united in one struct Generated from function MR::TriangulationHelpers::buildUnitedLocalTriangulations.

Calls MR_TriangulationHelpers_buildUnitedLocalTriangulations().

◆ filterNeighbors()

void meshlib.triangulationhelpers.Functions.filterNeighbors ( meshlib.VertCoords orientedNormals,
meshlib.VertBitSet untrustedNormals,
meshlib.VertId v,
meshlib.std_vector_MR_VertId neighbors )
static

Filter neighbors with crossing normals.

Generated from function MR::TriangulationHelpers::filterNeighbors.

Calls MR_TriangulationHelpers_filterNeighbors().

◆ findBoundaryPoints()

meshlib.std_optional_MR_VertBitSet meshlib.triangulationhelpers.Functions.findBoundaryPoints ( meshlib.PointCloud pointCloud,
meshlib.triangulationhelpers.Settings settings,
meshlib.std_function_bool_from_float cb )
static

Returns bit set of points that are considered as boundary by calling isBoundaryPoint in each Generated from function MR::TriangulationHelpers::findBoundaryPoints.

Calls MR_TriangulationHelpers_findBoundaryPoints().

◆ findNeighborsInBall()

void meshlib.triangulationhelpers.Functions.findNeighborsInBall ( meshlib.PointCloud pointCloud,
meshlib.VertId v,
float radius,
meshlib.std_vector_MR_VertId neighbors )
static

Finds all neighbors of v in given radius (v excluded)

Generated from function MR::TriangulationHelpers::findNeighborsInBall.

Calls MR_TriangulationHelpers_findNeighborsInBall().

◆ findNumNeighbors()

float meshlib.triangulationhelpers.Functions.findNumNeighbors ( meshlib.PointCloud pointCloud,
meshlib.VertId v,
int numNeis,
meshlib.std_vector_MR_VertId neighbors,
meshlib.FewSmallest_MR_PointsProjectionResult tmp,
java.lang.Float upDistLimitSq )
static

Finds at most given number of neighbors of v (v excluded)

Parameters
tmptemporary storage to avoid its allocation
upDistLimitSqupper limit on the distance in question, points with larger distance than it will not be returned
Returns
maxDistSq to the furthest returned neighbor (or 0 if no neighbours are returned)

Generated from function MR::TriangulationHelpers::findNumNeighbors.

Calls MR_TriangulationHelpers_findNumNeighbors().

◆ isBoundaryPoint()

boolean meshlib.triangulationhelpers.Functions.isBoundaryPoint ( meshlib.PointCloud cloud,
meshlib.VertId v,
meshlib.triangulationhelpers.Settings settings,
meshlib.triangulationhelpers.TriangulatedFanData fanData )
static

Checks if given vertex is on boundary of the point cloud, by constructing local triangulation around it.

Parameters
cloudinput point cloud
vvertex id to check
settingsall parameters of the computation
fanDatacache structure for neighbors, not to allocate for multiple calls
Returns
true if vertex is boundary, false otherwise

Generated from function MR::TriangulationHelpers::isBoundaryPoint.

Calls MR_TriangulationHelpers_isBoundaryPoint().

◆ updateNeighborsRadius()

float meshlib.triangulationhelpers.Functions.updateNeighborsRadius ( meshlib.VertCoords points,
meshlib.VertId v,
meshlib.VertId boundaryV,
meshlib.std_vector_MR_VertId fan,
float baseRadius )
static

Finds max radius of neighbors search, for possible better local triangulation.

Parameters
boundaryVfirst boundary vertex in fan (next VertId in fan is also boundary but first is enough)

Generated from function MR::TriangulationHelpers::updateNeighborsRadius.

Calls MR_TriangulationHelpers_updateNeighborsRadius().


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