Is there a way to remove the mesh from an alphaShape plot?

12 vues (au cours des 30 derniers jours)
A LL
A LL le 15 Mar 2022
Réponse apportée : Voss le 15 Mar 2022
I plot shapes with the function alphaShape (see attached figure).
Is there a way to remove the mesh of the alphaShape to plot the same shape but with a uniform color/shading?
I can see the option to change the color of the shape but not to remove the mesh.
I plot my shapes with the following syntax:
shp1 = alphaShape(x1,y1,1);
shp2 = alphaShape(x2,y2,1);
p1 = plot(shp1,'FaceAlpha',0.5);
p2 = plot(shp2,'FaceColor','red','FaceAlpha',0.5);
Thank you

Réponse acceptée

Voss
Voss le 15 Mar 2022
shp1 = alphaShape(x1,y1,1);
shp2 = alphaShape(x2,y2,1);
p1 = plot(shp1,'FaceAlpha',0.5,'EdgeColor','none');
p2 = plot(shp2,'FaceColor','red','FaceAlpha',0.5,'EdgeColor','none');

Plus de réponses (0)

Catégories

En savoir plus sur Bounding Regions dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by