MATLAB: How can i plot a surface defined by scattered points within the convex hull of those points.

graphicsinterpolationMATLAB

How can i plot a surface defined by scattered points, within the convex hull of those points. The points define the surface of a blade and are the nodes of an fem-mesh. Using scatteredInterpolant creates a surface bigger than the cloud of points. Using delaunay causes wheird output.
I ve attached the code as an example.

Best Answer

In this particular case, it looks like you can project the surface down to 2D on either the Y=0 or X=0 planes. Then you can do the triangulation and go back up to 3D. That would look like so:
tri = delaunay(X,Z);
trisurf(tri,X,Y,Z)