How to smooth a surface of 3-d geometry

9 ビュー (過去 30 日間)
VANDANA GUPTA
VANDANA GUPTA 2019 年 8 月 9 日
コメント済み: VANDANA GUPTA 2019 年 8 月 14 日
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 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 8 月 14 日
Can you share output figure?
VANDANA GUPTA
VANDANA GUPTA 2019 年 8 月 14 日
sir this is the output figure of vectors Xm, Ym and Zm using boundary function

サインインしてコメントする。

回答 (1 件)

KSSV
KSSV 2019 年 8 月 14 日
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')
  2 件のコメント
VANDANA GUPTA
VANDANA GUPTA 2019 年 8 月 14 日
sir, i want to smooth the straight edges and angular corners i.e. roughness of geometry which is getting from Xm, Ym and Zm..
VANDANA GUPTA
VANDANA GUPTA 2019 年 8 月 14 日
i searched about smoothness..In matlab, 'smooth', 'smooth3', 'sgolayfilt' and 'smoothdata' functions are used for smoothing the figure.. I cant observe that the which function will be giving the best and how much smoothness in result..

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSmoothing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by