Easy3D 2.6.1
Loading...
Searching...
No Matches
SurfaceMeshSampler Class Reference

Sample a surface mesh (near uniformly) into a point cloud. More...

#include <easy3d/algo/surface_mesh_sampler.h>

Static Public Member Functions

static PointCloudapply (const SurfaceMesh *mesh, int num=1000000)
 Sample the surface mesh into a point cloud.
 

Detailed Description

Sample a surface mesh (near uniformly) into a point cloud.

Member Function Documentation

◆ apply()

PointCloud * apply ( const SurfaceMesh * mesh,
int num = 1000000 )
static

Sample the surface mesh into a point cloud.

Parameters
meshThe surface mesh to be sampled.
numThe expected number of points. Must be greater than the number of vertices of the surface mesh. Default: 1000000.
Returns
A pointer to the generated point cloud.

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