In order to convert a point cloud to an STL model consider the following steps:
- Estimate the surface mesh of the point cloud using 'alphaShape' or 'boundary' with 'delaunayTriangulation' functions.
- After obtaining the mesh use the 'triangulation' function to create its object using the vertices and faces of the surface.
- Use the 'stlwite' function which uses the 'triangulation' object created to create the required STL model.
The following MATLAB Answers can be referred for good insights:
The following MathWorks documentations can be referred to know more:
'delaunayTriangulation': https://www.mathworks.com/help/matlab/ref/delaunaytriangulation.html
'triangulation': https://www.mathworks.com/help/matlab/ref/triangulation.html
Thanks.