MATLAB: How to create a 3D faceted model

3d3d plotsgraphicsmeshmodelsurface

What would be the best way to create a 3D model made of (triangular) facets, similar to this one?
I would also like to be able to define normal and surface vectors for each facet if possible.
Any help is appreciated.

Best Answer

YOu can generate that mesh, if you have (x,y,z) data using delauny. https://in.mathworks.com/help/matlab/ref/delaunay.html
Read about delaunayTriangulation. This should give you normals you want.
Related Question