Adding or combining two or more patches (or faces) and creating one new solid 2D patch with new vertices
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Ver también
Categorías
Más información sobre Polygons en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!