Get boundary of 2d mesh
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Rik
am 23 Aug. 2018
What form of data is your mesh in? You might be able to use something like inpoly.
Antworten (2)
KSSV
am 24 Aug. 2018
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 Kommentare
Aref Hemati
am 24 Aug. 2018
1 Kommentar
Image Analyst
am 24 Aug. 2018
Try different shrink factors. Attach your 2-D data if you need more help.
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
