Get boundary of 2d mesh
2 ビュー (過去 30 日間)
古いコメントを表示
i have a 3d mesh, i delete z axes and so i'll have 2d mesh. my question is how can i get boundary of the 2d mesh?
1 件のコメント
Rik
2018 年 8 月 23 日
What form of data is your mesh in? You might be able to use something like inpoly.
回答 (2 件)
KSSV
2018 年 8 月 24 日
Read about boundary function.
%%Structured data
[X,Y,Z] = peaks(100) ;
idx = boundary(X(:),Y(:)) ;
figure
plot(X,Y,'.r') ;
hold on
plot(X(idx),Y(idx),'.-b')
%%Unstructured data
x = rand(100,1) ; y = rand(100,1) ;
idx = boundary(x,y) ;
figure
plot(x,y,'.r')
hold on
plot(x(idx),y(idx),'.-b')


0 件のコメント
Aref Hemati
2018 年 8 月 24 日
1 件のコメント
Image Analyst
2018 年 8 月 24 日
Try different shrink factors. Attach your 2-D data if you need more help.
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
