Adding or combining two or more patches (or faces) and creating one new solid 2D patch with new vertices
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello everyone,
I need a help with adding two patches together (such as shown) and generating one new larger patch with known vertices. In other words, I want to create a new 2D patch by overlaying smaller segment patches on top of each other. My goal is to calculate the overall area of the larger patch. Here is an example of two single patches that I would like to combine:
>> x=[0 1 3 2];y=[1 0 2 3];
x1=[0 1 3 2];y1=[2 3 1 0];
A=patch(x,y,[0 0 1]);
B=patch(x1,y1,[0 0 1]);
axis equal

I would like to have all 12 vertices or the area of the combined patch
Thank you
0 commentaires
Voir également
Catégories
En savoir plus sur Polygons dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!