필터 지우기
필터 지우기

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

조회 수: 7 (최근 30일)
A LL
A LL 2022년 3월 15일
답변: Voss 2022년 3월 15일
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

채택된 답변

Voss
Voss 2022년 3월 15일
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');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Bounding Regions에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by