i used the 'smooth' function but i can't observe the how much smoothness is getting..i am not getting that is this function appropriate or not.......please help me...
How to smooth a surface of 3-d geometry
9 views (last 30 days)
Show older comments
I have three column vectors Xm, Ym and Zm. I plotted these vectors as below code:
k = boundary(Xm,Ym,Zm,1);
trisurf(k, Xm,Ym,Zm,'edgecolor','none','facecolor','m', 'facealpha',0.5)
I got a object by above code. I want to smooth the surface of this 3-d object
3 Comments
Answers (1)
KSSV
on 14 Aug 2019
Are you looking for something like this?
dt = delaunayTriangulation(Xm,Ym) ;
t = dt.ConnectivityList ;
x = dt.Points(:,1) ;
y = dt.Points(:,2) ;
F = scatteredInterpolant(Xm,Ym,Zm) ;
z = F(x,y) ;
trisurf(t,x,y,z,'EdgeColor','k')
See Also
Categories
Find more on Smoothing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!