how to fill the interior of a closed surface?
Mostra commenti meno recenti
hi dear community members,
please guide me, i have a closed boundary surface. i want to fill the interior.
i am using for loop but i could not succeed.
regards
Risposta accettata
Più risposte (1)
David Hill
il 5 Feb 2021
Modificato: David Hill
il 5 Feb 2021
Look at polyshape() (assuming your have the coordinates of your surface)
pgon = polyshape([0 0 1 3], [0 3 3 0]);
a=plot(pgon);
a.FaceColor=[0 1 0];
3 Commenti
M.S. Khan
il 5 Feb 2021
David Hill
il 5 Feb 2021
Look at the documentation. Polyshape can handle irregular shapes but the coordinates need to be in order.
doc polyshape
Don't understand your pixel question.
M.S. Khan
il 5 Feb 2021
Categorie
Scopri di più su Polygonal Shapes in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
