MeshLib C++ Docs
Loading...
Searching...
No Matches
PointCloud triangulation overview

This chapter represents documentation about PointCloud triangulation. More...

Topics

 TriangulationHelpers
 Collection of functions and structures needed for PointCloud triangulation.

Classes

struct  MR::TriangulationParameters
 Parameters of point cloud triangulation. More...
struct  MR::FillHolesWithExtraPointsParams

Functions

std::optional< MeshMR::triangulatePointCloud (const PointCloud &pointCloud, const TriangulationParameters &params={}, const ProgressCallback &progressCb={})
 Creates mesh from given point cloud according params Returns empty optional if was interrupted by progress bar.
bool MR::fillHolesWithExtraPoints (Mesh &mesh, PointCloud &extraPoints, const FillHolesWithExtraPointsParams &params={}, const ProgressCallback &progressCb={})

Detailed Description

This chapter represents documentation about PointCloud triangulation.

Function Documentation

◆ fillHolesWithExtraPoints()

bool MR::fillHolesWithExtraPoints ( Mesh & mesh,
PointCloud & extraPoints,
const FillHolesWithExtraPointsParams & params = {},
const ProgressCallback & progressCb = {} )
nodiscard

#include <MRMesh/MRPointCloudTriangulation.h>

fills the holes in the mesh by adding triangles to it with the vertices in existing boundary vertices or given extra points (in any combination)

Parameters
extraPointsmust have either properly oriented normals or no normals, and it will be temporary modified during the call
Returns
false if the operation was canceled or incorrect input

◆ triangulatePointCloud()

std::optional< Mesh > MR::triangulatePointCloud ( const PointCloud & pointCloud,
const TriangulationParameters & params = {},
const ProgressCallback & progressCb = {} )
nodiscard

#include <MRMesh/MRPointCloudTriangulation.h>

Creates mesh from given point cloud according params Returns empty optional if was interrupted by progress bar.

Before
After