mesh2pc
Syntax
Description
creates a point cloud from the input surface mesh object using the Poisson-disk sampling
method.ptCloud
= mesh2pc(surfaceMeshObj
)
creates a point cloud from the surface mesh specified by the input triangulation object
using the Poisson-disk sampling method. ptCloud
= mesh2pc(triangulationObj
)
specifies options using one or more name-value arguments in addition to any combination of
input arguments from previous syntaxes. For example, ptCloud
= mesh2pc(___,Name=Value
)NumPoints=1000
samples 1000 points from the input mesh surface to create a point cloud.
Examples
Input Arguments
Output Arguments
References
[1] Yuksel, Cem. “Sample Elimination for Generating Poisson Disk Sample Sets.” Computer Graphics Forum 34, no. 2 (May 2015): 25–32. https://doi.org/10.1111/cgf.12538.
Version History
Introduced in R2024b
See Also
pc2surfacemesh
| surfaceMesh
| surfaceMeshShow
| readSurfaceMesh
| writeSurfaceMesh