필터 지우기
필터 지우기

Alpha shape multi-color surface

조회 수: 4 (최근 30일)
AM
AM 2018년 4월 10일
댓글: Floor Fasen 2023년 1월 19일
I am plotting an alpha shape as follows:
shp = alphaShape(X,Y,Z)
plot(shp)
I understand that I can modify the FaceColor property of the entire shape; however, I'd like to manually specify the color of each triangle that makes up the surface. Is this possible via the shp structure. If not, what are my options?
I'm exploring the use of alphaTriangulation(shp) output and many trisurf plots with invididual color specs combined. However, I'm not sure of a good way to segment the trisurf plots. Furthermore, using trisurf seems to result in a graph that uses more resources and is very unresponsive.

답변 (2개)

AM
AM 2019년 10월 4일
No luck with the method above.
IIRC, I have had some success using the trisurf function, but then you have to manually create the triangulation to feed to it, and I believe the interactivity was also quite laggy and unresponsive.
I have had some success using the Plotly tools via Python for this (although speed is still an issue for large datasets). They may have similar hooks for using their modules in MATLAB.
This might be of help if you're open to exploring third party tools:
https://plot.ly/python/alpha-shapes/

Vincent Zoutenbier
Vincent Zoutenbier 2019년 10월 4일
Any Luck on this? I'm trying to do the same.
  댓글 수: 2
darova
darova 2019년 10월 4일
Please use comment section
You can use patch() if your have faces and nodes
Floor Fasen
Floor Fasen 2023년 1월 19일
[faces,nodes] = boundaryFacets(shp);

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Object Containers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by